| OLD | NEW |
| 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 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r
ights 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #include "config.h" | 29 #include "config.h" |
| 30 #include "core/css/RuleSet.h" | 30 #include "core/css/RuleSet.h" |
| 31 | 31 |
| 32 #include "HTMLNames.h" | 32 #include "HTMLNames.h" |
| 33 #include "RuntimeEnabledFeatures.h" | 33 #include "RuntimeEnabledFeatures.h" |
| 34 #include "core/css/CSSFontSelector.h" | 34 #include "core/css/CSSFontSelector.h" |
| 35 #include "core/css/CSSSelector.h" | 35 #include "core/css/CSSSelector.h" |
| 36 #include "core/css/CSSSelectorList.h" | 36 #include "core/css/CSSSelectorList.h" |
| 37 #include "core/css/SelectorChecker.h" | 37 #include "core/css/SelectorChecker.h" |
| 38 #include "core/css/SelectorCheckerFastPath.h" | |
| 39 #include "core/css/SelectorFilter.h" | 38 #include "core/css/SelectorFilter.h" |
| 40 #include "core/css/StyleRuleImport.h" | 39 #include "core/css/StyleRuleImport.h" |
| 41 #include "core/css/StyleSheetContents.h" | 40 #include "core/css/StyleSheetContents.h" |
| 42 #include "core/html/track/TextTrackCue.h" | 41 #include "core/html/track/TextTrackCue.h" |
| 43 #include "heap/HeapTerminatedArrayBuilder.h" | 42 #include "heap/HeapTerminatedArrayBuilder.h" |
| 44 #include "platform/TraceEvent.h" | 43 #include "platform/TraceEvent.h" |
| 45 #include "platform/weborigin/SecurityOrigin.h" | 44 #include "platform/weborigin/SecurityOrigin.h" |
| 46 | 45 |
| 47 #include "wtf/TerminatedArrayBuilder.h" | 46 #include "wtf/TerminatedArrayBuilder.h" |
| 48 | 47 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 return PropertyWhitelistCue; | 119 return PropertyWhitelistCue; |
| 121 } | 120 } |
| 122 return PropertyWhitelistNone; | 121 return PropertyWhitelistNone; |
| 123 } | 122 } |
| 124 | 123 |
| 125 RuleData::RuleData(StyleRule* rule, unsigned selectorIndex, unsigned position, A
ddRuleFlags addRuleFlags) | 124 RuleData::RuleData(StyleRule* rule, unsigned selectorIndex, unsigned position, A
ddRuleFlags addRuleFlags) |
| 126 : m_rule(rule) | 125 : m_rule(rule) |
| 127 , m_selectorIndex(selectorIndex) | 126 , m_selectorIndex(selectorIndex) |
| 128 , m_isLastInArray(false) | 127 , m_isLastInArray(false) |
| 129 , m_position(position) | 128 , m_position(position) |
| 130 , m_hasFastCheckableSelector((addRuleFlags & RuleCanUseFastCheckSelector) &&
SelectorCheckerFastPath::canUse(selector())) | |
| 131 , m_specificity(selector().specificity()) | 129 , m_specificity(selector().specificity()) |
| 132 , m_hasMultipartSelector(!!selector().tagHistory()) | 130 , m_hasMultipartSelector(!!selector().tagHistory()) |
| 133 , m_hasRightmostSelectorMatchingHTMLBasedOnRuleHash(isSelectorMatchingHTMLBa
sedOnRuleHash(selector())) | 131 , m_hasRightmostSelectorMatchingHTMLBasedOnRuleHash(isSelectorMatchingHTMLBa
sedOnRuleHash(selector())) |
| 134 , m_containsUncommonAttributeSelector(WebCore::containsUncommonAttributeSele
ctor(selector())) | 132 , m_containsUncommonAttributeSelector(WebCore::containsUncommonAttributeSele
ctor(selector())) |
| 135 , m_linkMatchType(SelectorChecker::determineLinkMatchType(selector())) | 133 , m_linkMatchType(SelectorChecker::determineLinkMatchType(selector())) |
| 136 , m_hasDocumentSecurityOrigin(addRuleFlags & RuleHasDocumentSecurityOrigin) | 134 , m_hasDocumentSecurityOrigin(addRuleFlags & RuleHasDocumentSecurityOrigin) |
| 137 , m_propertyWhitelistType(determinePropertyWhitelistType(addRuleFlags, selec
tor())) | 135 , m_propertyWhitelistType(determinePropertyWhitelistType(addRuleFlags, selec
tor())) |
| 138 { | 136 { |
| 139 ASSERT(m_position == position); | 137 ASSERT(m_position == position); |
| 140 ASSERT(m_selectorIndex == selectorIndex); | 138 ASSERT(m_selectorIndex == selectorIndex); |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 | 406 |
| 409 #ifndef NDEBUG | 407 #ifndef NDEBUG |
| 410 void RuleSet::show() | 408 void RuleSet::show() |
| 411 { | 409 { |
| 412 for (WillBeHeapVector<RuleData>::const_iterator it = m_allRules.begin(); it
!= m_allRules.end(); ++it) | 410 for (WillBeHeapVector<RuleData>::const_iterator it = m_allRules.begin(); it
!= m_allRules.end(); ++it) |
| 413 it->selector().show(); | 411 it->selector().show(); |
| 414 } | 412 } |
| 415 #endif | 413 #endif |
| 416 | 414 |
| 417 } // namespace WebCore | 415 } // namespace WebCore |
| OLD | NEW |