Commit eae4bf9e authored by eroman@chromium.org's avatar eroman@chromium.org

Use "unsigned" rather than "unsigned long" for C++ code interacting with WebIDL's "unsigned long".

(WebIDL's "unsigned long" is a 32-bit type)

BUG=267360

Review URL: https://codereview.chromium.org/722893002

git-svn-id: svn://svn.chromium.org/blink/trunk@185261 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent abcb44a6
...@@ -173,7 +173,7 @@ bool XPathResult::invalidIteratorState() const ...@@ -173,7 +173,7 @@ bool XPathResult::invalidIteratorState() const
return m_document->domTreeVersion() != m_domTreeVersion; return m_document->domTreeVersion() != m_domTreeVersion;
} }
unsigned long XPathResult::snapshotLength(ExceptionState& exceptionState) const unsigned XPathResult::snapshotLength(ExceptionState& exceptionState) const
{ {
if (resultType() != UNORDERED_NODE_SNAPSHOT_TYPE && resultType() != ORDERED_NODE_SNAPSHOT_TYPE) { if (resultType() != UNORDERED_NODE_SNAPSHOT_TYPE && resultType() != ORDERED_NODE_SNAPSHOT_TYPE) {
exceptionState.throwTypeError("The result type is not a snapshot."); exceptionState.throwTypeError("The result type is not a snapshot.");
...@@ -205,7 +205,7 @@ Node* XPathResult::iterateNext(ExceptionState& exceptionState) ...@@ -205,7 +205,7 @@ Node* XPathResult::iterateNext(ExceptionState& exceptionState)
return node; return node;
} }
Node* XPathResult::snapshotItem(unsigned long index, ExceptionState& exceptionState) Node* XPathResult::snapshotItem(unsigned index, ExceptionState& exceptionState)
{ {
if (resultType() != UNORDERED_NODE_SNAPSHOT_TYPE && resultType() != ORDERED_NODE_SNAPSHOT_TYPE) { if (resultType() != UNORDERED_NODE_SNAPSHOT_TYPE && resultType() != ORDERED_NODE_SNAPSHOT_TYPE) {
exceptionState.throwTypeError("The result type is not a snapshot."); exceptionState.throwTypeError("The result type is not a snapshot.");
......
...@@ -75,9 +75,9 @@ public: ...@@ -75,9 +75,9 @@ public:
Node* singleNodeValue(ExceptionState&) const; Node* singleNodeValue(ExceptionState&) const;
bool invalidIteratorState() const; bool invalidIteratorState() const;
unsigned long snapshotLength(ExceptionState&) const; unsigned snapshotLength(ExceptionState&) const;
Node* iterateNext(ExceptionState&); Node* iterateNext(ExceptionState&);
Node* snapshotItem(unsigned long index, ExceptionState&); Node* snapshotItem(unsigned index, ExceptionState&);
const XPath::Value& value() const { return m_value; } const XPath::Value& value() const { return m_value; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment