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

Side by Side Diff: Source/core/css/SelectorChecker.cpp

Issue 596953002: Remove SelectorChecker::m_documentIsHTML (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « Source/core/css/SelectorChecker.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #include "core/rendering/style/RenderStyle.h" 56 #include "core/rendering/style/RenderStyle.h"
57 #include "platform/scroll/ScrollableArea.h" 57 #include "platform/scroll/ScrollableArea.h"
58 #include "platform/scroll/ScrollbarTheme.h" 58 #include "platform/scroll/ScrollbarTheme.h"
59 59
60 namespace blink { 60 namespace blink {
61 61
62 using namespace HTMLNames; 62 using namespace HTMLNames;
63 63
64 SelectorChecker::SelectorChecker(Document& document, Mode mode) 64 SelectorChecker::SelectorChecker(Document& document, Mode mode)
65 : m_strictParsing(!document.inQuirksMode()) 65 : m_strictParsing(!document.inQuirksMode())
66 , m_documentIsHTML(document.isHTMLDocument())
67 , m_mode(mode) 66 , m_mode(mode)
68 { 67 {
69 } 68 }
70 69
71 static bool matchesCustomPseudoElement(const Element* element, const CSSSelector & selector) 70 static bool matchesCustomPseudoElement(const Element* element, const CSSSelector & selector)
72 { 71 {
73 ShadowRoot* root = element->containingShadowRoot(); 72 ShadowRoot* root = element->containingShadowRoot();
74 if (!root || root->type() != ShadowRoot::UserAgentShadowRoot) 73 if (!root || root->type() != ShadowRoot::UserAgentShadowRoot)
75 return false; 74 return false;
76 75
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 return isHTMLSelectElement(element) && !toHTMLSelectElement(element).usesMen uList(); 1132 return isHTMLSelectElement(element) && !toHTMLSelectElement(element).usesMen uList();
1134 } 1133 }
1135 1134
1136 template 1135 template
1137 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co nst DOMSiblingTraversalStrategy&, MatchResult*) const; 1136 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co nst DOMSiblingTraversalStrategy&, MatchResult*) const;
1138 1137
1139 template 1138 template
1140 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co nst ShadowDOMSiblingTraversalStrategy&, MatchResult*) const; 1139 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co nst ShadowDOMSiblingTraversalStrategy&, MatchResult*) const;
1141 1140
1142 } 1141 }
OLDNEW
« no previous file with comments | « Source/core/css/SelectorChecker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698