Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(659)

Unified Diff: Source/core/dom/Element.h

Issue 17094020: Replace static_cast<Element*> with toElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.h
diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
index 81e6dde4bddc8c02306c53fe2a4108e9fbdddd24..b0d65736716bd32dac6cbc37981b523546773397 100644
--- a/Source/core/dom/Element.h
+++ b/Source/core/dom/Element.h
@@ -771,7 +771,7 @@ inline Element* Node::previousElementSibling() const
Node* n = previousSibling();
while (n && !n->isElementNode())
n = n->previousSibling();
- return static_cast<Element*>(n);
+ return toElement(n);
}
inline Element* Node::nextElementSibling() const
@@ -779,7 +779,7 @@ inline Element* Node::nextElementSibling() const
Node* n = nextSibling();
while (n && !n->isElementNode())
n = n->nextSibling();
- return static_cast<Element*>(n);
+ return toElement(n);
}
inline bool Element::fastHasAttribute(const QualifiedName& name) const
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698