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

Unified Diff: Source/core/css/RuleSet.cpp

Issue 843143002: Remove unused RuleSet flags. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: isLastInArray() is in use. Created 5 years, 11 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/css/RuleSet.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/RuleSet.cpp
diff --git a/Source/core/css/RuleSet.cpp b/Source/core/css/RuleSet.cpp
index e2aa8b92ac822f283c2205a5001b28557f0bda08..bba861424d89101e4de04db0181be05f71b04473 100644
--- a/Source/core/css/RuleSet.cpp
+++ b/Source/core/css/RuleSet.cpp
@@ -51,21 +51,6 @@ using namespace HTMLNames;
// -----------------------------------------------------------------
-static inline bool isSelectorMatchingHTMLBasedOnRuleHash(const CSSSelector& selector)
-{
- if (selector.match() == CSSSelector::Tag) {
- const AtomicString& selectorNamespace = selector.tagQName().namespaceURI();
- if (selectorNamespace != starAtom && selectorNamespace != xhtmlNamespaceURI)
- return false;
- if (selector.relation() == CSSSelector::SubSelector && selector.tagHistory())
- return isSelectorMatchingHTMLBasedOnRuleHash(*selector.tagHistory());
- return true;
- }
- if (SelectorChecker::isCommonPseudoClassSelector(selector))
- return true;
- return selector.match() == CSSSelector::Id || selector.match() == CSSSelector::Class;
-}
-
static inline bool selectorListContainsUncommonAttributeSelector(const CSSSelector* selector)
{
const CSSSelectorList* selectorList = selector->selectorList();
@@ -127,8 +112,6 @@ RuleData::RuleData(StyleRule* rule, unsigned selectorIndex, unsigned position, A
, m_isLastInArray(false)
, m_position(position)
, m_specificity(selector().specificity())
- , m_hasMultipartSelector(!!selector().tagHistory())
- , m_hasRightmostSelectorMatchingHTMLBasedOnRuleHash(isSelectorMatchingHTMLBasedOnRuleHash(selector()))
, m_containsUncommonAttributeSelector(blink::containsUncommonAttributeSelector(selector()))
, m_linkMatchType(SelectorChecker::determineLinkMatchType(selector()))
, m_hasDocumentSecurityOrigin(addRuleFlags & RuleHasDocumentSecurityOrigin)
« no previous file with comments | « Source/core/css/RuleSet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698