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

Unified Diff: Source/core/html/shadow/HTMLContentElement.cpp

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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 | « Source/core/html/shadow/DateTimeFieldElement.cpp ('k') | Source/core/html/shadow/HTMLShadowElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/shadow/HTMLContentElement.cpp
diff --git a/Source/core/html/shadow/HTMLContentElement.cpp b/Source/core/html/shadow/HTMLContentElement.cpp
index 5f5554b82a2f16c71271802bf1664721ed3d2e98..f1f8c413b61248dd25771a17ea4055955e029cfa 100644
--- a/Source/core/html/shadow/HTMLContentElement.cpp
+++ b/Source/core/html/shadow/HTMLContentElement.cpp
@@ -67,7 +67,7 @@ void HTMLContentElement::parseSelect()
{
ASSERT(m_shouldParseSelect);
- CSSParser parser(document());
+ CSSParser parser(&document());
parser.parseSelector(m_select, m_selectorList);
m_shouldParseSelect = false;
m_isValidSelector = validateSelect();
@@ -109,7 +109,7 @@ bool HTMLContentElement::validateSelect() const
static inline bool checkOneSelector(const CSSSelector* selector, const Vector<Node*>& siblings, int nth)
{
Element* element = toElement(siblings[nth]);
- SelectorChecker selectorChecker(element->document(), SelectorChecker::CollectingRules);
+ SelectorChecker selectorChecker(&element->document(), SelectorChecker::CollectingRules);
SelectorChecker::SelectorCheckingContext context(selector, element, SelectorChecker::VisitedMatchEnabled);
ShadowDOMSiblingTraversalStrategy strategy(siblings, nth);
PseudoId ignoreDynamicPseudo = NOPSEUDO;
« no previous file with comments | « Source/core/html/shadow/DateTimeFieldElement.cpp ('k') | Source/core/html/shadow/HTMLShadowElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698