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

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

Issue 704963002: Make some arguments of FocusController functions references. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | Source/core/page/FocusController.h » ('j') | 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 c77f7ed27ccf08aa26365ac1e8f861f131ad7163..62e268b042e585e0e0fbcfd0654aef5a2dc85f86 100644
--- a/Source/core/dom/Element.h
+++ b/Source/core/dom/Element.h
@@ -826,11 +826,21 @@ inline bool isShadowHost(const Node* node)
return node && node->isElementNode() && toElement(node)->shadow();
}
+inline bool isShadowHost(const Node& node)
+{
+ return node.isElementNode() && toElement(node).shadow();
+}
+
inline bool isShadowHost(const Element* element)
{
return element && element->shadow();
}
+inline bool isShadowHost(const Element& element)
+{
+ return element.shadow();
+}
+
inline bool isAtShadowBoundary(const Element* element)
{
if (!element)
« no previous file with comments | « no previous file | Source/core/page/FocusController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698