Home
last modified time | relevance | path

Searched refs:ZeroBasedNumber (Results 1 – 10 of 10) sorted by relevance

/external/webkit/Source/JavaScriptCore/wtf/text/
DTextPosition.h85 class ZeroBasedNumber {
87 …static ZeroBasedNumber fromZeroBasedInt(int zeroBasedInt) { return ZeroBasedNumber(zeroBasedInt); } in fromZeroBasedInt()
89 ZeroBasedNumber() {} in ZeroBasedNumber() function
95 bool operator==(ZeroBasedNumber other) { return m_value == other.m_value; }
96 bool operator!=(ZeroBasedNumber other) { return !((*this) == other); }
98 static ZeroBasedNumber base() { return 0; } in base()
99 static ZeroBasedNumber belowBase() { return -1; } in belowBase()
102 ZeroBasedNumber(int value) : m_value(value) {} in ZeroBasedNumber() function
114ZeroBasedNumber convertToZeroBased() const { return ZeroBasedNumber::fromZeroBasedInt(m_value - 1)… in convertToZeroBased()
127 typedef TextPosition<ZeroBasedNumber> TextPosition0;
[all …]
/external/webkit/Source/WebCore/platform/text/
DSegmentedString.cpp240 WTF::ZeroBasedNumber SegmentedString::currentLine() const in currentLine()
242 return WTF::ZeroBasedNumber::fromZeroBasedInt(m_currentLine); in currentLine()
245 WTF::ZeroBasedNumber SegmentedString::currentColumn() const in currentColumn()
248 return WTF::ZeroBasedNumber::fromZeroBasedInt(zeroBasedColumn); in currentColumn()
251 void SegmentedString::setCurrentPosition(WTF::ZeroBasedNumber line, WTF::ZeroBasedNumber columnAftr… in setCurrentPosition()
DSegmentedString.h228 WTF::ZeroBasedNumber currentColumn() const;
229 WTF::ZeroBasedNumber currentLine() const;
232 …void setCurrentPosition(WTF::ZeroBasedNumber line, WTF::ZeroBasedNumber columnAftreProlog, int pro…
/external/webkit/Source/WebCore/html/parser/
DHTMLInputStream.h150 WTF::ZeroBasedNumber m_line;
151 WTF::ZeroBasedNumber m_column;
DHTMLDocumentParser.cpp476 WTF::ZeroBasedNumber line = currentString.currentLine(); in textPosition()
477 WTF::ZeroBasedNumber column = currentString.currentColumn(); in textPosition()
/external/webkit/Source/WebCore/bindings/v8/
DScriptEventListener.cpp53 TextPosition0 position(WTF::ZeroBasedNumber::fromZeroBasedInt(1), WTF::ZeroBasedNumber::base()); in createAttributeEventListener()
/external/webkit/Source/WebCore/bindings/js/
DScriptDebugServer.cpp307 …F::OneBasedNumber::fromOneBasedInt(lineNumber).convertToZeroBased(), WTF::ZeroBasedNumber::base()); in createCallFrameAndPauseIfNeeded()
318 …F::OneBasedNumber::fromOneBasedInt(lineNumber).convertToZeroBased(), WTF::ZeroBasedNumber::base()); in updateCallFrameAndPauseIfNeeded()
/external/webkit/Source/WebCore/dom/
DXMLDocumentParserQt.cpp244 …return TextPosition0(WTF::ZeroBasedNumber::fromZeroBasedInt(lineNumber()), WTF::ZeroBasedNumber::f… in textPosition()
DXMLDocumentParserLibxml2.cpp1403 return TextPosition0(WTF::ZeroBasedNumber::fromZeroBasedInt(context->input->line), in textPosition()
1404 WTF::ZeroBasedNumber::fromZeroBasedInt(context->input->col)); in textPosition()
/external/webkit/Source/JavaScriptCore/
DChangeLog-2011-02-16477 (WTF::ZeroBasedNumber::convertAsOneBasedInt):
6549 (WTF::ZeroBasedNumber::operator==): Added.
6550 (WTF::ZeroBasedNumber::operator!=): Added.
10470 (WTF::ZeroBasedNumber::fromZeroBasedInt):
10471 (WTF::ZeroBasedNumber::ZeroBasedNumber):
10472 (WTF::ZeroBasedNumber::zeroBasedInt):
10473 (WTF::ZeroBasedNumber::base):
10474 (WTF::ZeroBasedNumber::belowBase):
10484 (WTF::ZeroBasedNumber::convertToOneBased):
11269 (WTF::ZeroBasedNumber::fromZeroBasedInt):
[all …]