Home
last modified time | relevance | path

Searched refs:lineEndings (Results 1 – 11 of 11) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/wtf/text/
DTextPosition.cpp33 PassOwnPtr<Vector<unsigned> > lineEndings(const String& text) in lineEndings() function
56 …sition TextPosition::fromOffsetAndLineEndings(unsigned offset, const Vector<unsigned>& lineEndings) in fromOffsetAndLineEndings() argument
58 …* foundLineEnding = approximateBinarySearch<unsigned, unsigned>(lineEndings, lineEndings.size(), o… in fromOffsetAndLineEndings()
59 int lineIndex = foundLineEnding - &lineEndings.at(0); in fromOffsetAndLineEndings()
62 unsigned lineStartOffset = lineIndex > 0 ? lineEndings.at(lineIndex - 1) + 1 : 0; in fromOffsetAndLineEndings()
DTextPosition.h85 WTF_EXPORT PassOwnPtr<Vector<unsigned> > lineEndings(const String&);
93 using WTF::lineEndings;
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/
DContentProvider.js83 var lineEndings = content.lineEndings();
84 for (var i = 0; i < lineEndings.length; ++i) {
85 var lineStart = i > 0 ? lineEndings[i - 1] + 1 : 0;
86 var lineEnd = lineEndings[i];
DScriptFormatter.js55 WebInspector.Formatter.locationToPosition = function(lineEndings, lineNumber, columnNumber) argument
57 var position = lineNumber ? lineEndings[lineNumber - 1] + 1 : 0;
66 WebInspector.Formatter.positionToLocation = function(lineEndings, position) argument
68 var lineNumber = lineEndings.upperBound(position - 1);
72 var columnNumber = position - lineEndings[lineNumber - 1] - 1;
117 …ebInspector.FormatterSourceMappingImpl(originalContent.lineEndings(), formattedContent.lineEndings
DCSSFormatter.js63 var lineEndings = [];
66 lineEndings.push(i);
69 lineEndings.push(text.length);
70 return lineEndings;
DBreakpointsSidebarPane.js114 var lineEndings = content.lineEndings();
115 if (uiLocation.lineNumber < lineEndings.length)
116 …snippetElement.textContent = content.substring(lineEndings[uiLocation.lineNumber - 1], lineEndings
Dutilities.js73 String.prototype.lineEndings = function() method in String
/external/chromium_org/third_party/WebKit/Source/core/inspector/
DInspectorStyleSheet.cpp440 …::CSS::SourceRange> buildSourceRangeObject(const SourceRange& range, Vector<unsigned>* lineEndings) in buildSourceRangeObject() argument
442 if (!lineEndings) in buildSourceRangeObject()
444 TextPosition start = TextPosition::fromOffsetAndLineEndings(range.start, *lineEndings); in buildSourceRangeObject()
445 TextPosition end = TextPosition::fromOffsetAndLineEndings(range.end, *lineEndings); in buildSourceRangeObject()
513 …tRange(buildSourceRangeObject(sourceData->ruleBodyRange, m_parentStyleSheet->lineEndings().get())); in buildObjectForStyle()
695 …OwnPtr<Vector<unsigned> > lineEndings(m_parentStyleSheet ? m_parentStyleSheet->lineEndings() : Pas… in styleWithProperties() local
730 property->setRange(buildSourceRangeObject(absolutePropertyRange, lineEndings.get())); in styleWithProperties()
1234 simpleSelector->setRange(buildSourceRangeObject(range, lineEndings().get())); in selectorsFromSource()
1404 return buildSourceRangeObject(sourceData->ruleHeaderRange, lineEndings().get()); in ruleHeaderSourceRange()
1509 PassOwnPtr<Vector<unsigned> > InspectorStyleSheet::lineEndings() const in lineEndings() function in WebCore::InspectorStyleSheet
[all …]
DInspectorStyleSheet.h224 virtual PassOwnPtr<Vector<unsigned> > lineEndings() const;
279 virtual PassOwnPtr<Vector<unsigned> > lineEndings() const;
DContentSearchUtils.cpp66 OwnPtr<Vector<unsigned> > endings(lineEndings(text)); in getScriptRegexpMatchesByLines()
/external/chromium_org/third_party/WebKit/Source/core/css/
DCSSParser-in.cpp9401 m_lineEndings = lineEndings(*m_source); in ensureLineEndings()