OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:behaviorAtBoundary
(Results
1 - 4
of
4
) sorted by null
/external/chromium_org/third_party/WebKit/Source/core/css/resolver/
ScopedStyleResolver.cpp
134
unsigned
behaviorAtBoundary
= SelectorChecker::DoesNotCrossBoundary;
137
behaviorAtBoundary
|= SelectorChecker::ScopeContainsLastMatchedElement;
141
behaviorAtBoundary
|= SelectorChecker::ScopeIsShadowHost;
147
collector.collectMatchingRules(matchRequest, ruleRange, static_cast<SelectorChecker::
BehaviorAtBoundary
>(
behaviorAtBoundary
), cascadeScope, cascadeOrder);
148
collector.collectMatchingRulesForRegion(matchRequest, ruleRange, static_cast<SelectorChecker::
BehaviorAtBoundary
>(
behaviorAtBoundary
), cascadeScope, cascadeOrder);
/external/chromium_org/third_party/WebKit/Source/core/css/
ElementRuleCollector.cpp
120
static bool rulesApplicableInCurrentTreeScope(const Element* element, const ContainerNode* scopingNode, SelectorChecker::
BehaviorAtBoundary
behaviorAtBoundary
, bool elementApplyAuthorStyles)
132
if (element->isInShadowTree() && (
behaviorAtBoundary
& SelectorChecker::ScopeIsShadowHost) && scopingNode == element->containingShadowRoot()->host())
135
if ((
behaviorAtBoundary
& SelectorChecker::BoundaryBehaviorMask) == SelectorChecker::CrossesBoundary)
140
void ElementRuleCollector::collectMatchingRules(const MatchRequest& matchRequest, RuleRange& ruleRange, SelectorChecker::
BehaviorAtBoundary
behaviorAtBoundary
, CascadeScope cascadeScope, CascadeOrder cascadeOrder)
149
collectMatchingRulesForList(matchRequest.ruleSet->shadowPseudoElementRules(pseudoId.impl()),
behaviorAtBoundary
, ignoreCascadeScope, cascadeOrder, matchRequest, ruleRange);
153
collectMatchingRulesForList(matchRequest.ruleSet->cuePseudoRules(),
behaviorAtBoundary
, cascadeScope, cascadeOrder, matchRequest, ruleRange);
161
if (!m_matchingUARules && !rulesApplicableInCurrentTreeScope(&element, matchRequest.scope,
behaviorAtBoundary
, matchRequest.elementApplyAuthorStyles))
167
collectMatchingRulesForList(matchRequest.ruleSet->idRules(element.idForStyleResolution().impl()),
behaviorAtBoundary
, cascadeScope, cascadeOrder, matchRequest, ruleRange)
[
all
...]
SelectorChecker.cpp
86
if ((context.
behaviorAtBoundary
& SelectorChecker::BoundaryBehaviorMask) == SelectorChecker::CrossesBoundary)
90
if (!(context.
behaviorAtBoundary
& SelectorChecker::ScopeIsShadowHost))
93
// If
behaviorAtBoundary
is StaysWithInTreeScope, we cannot walk up from a shadow root to its shadow host.
94
return (context.
behaviorAtBoundary
& SelectorChecker::BoundaryBehaviorMask) != SelectorChecker::StaysWithinTreeScope ? context.element->parentOrShadowHostElement() : context.element->parentElement();
99
if (!(context.
behaviorAtBoundary
& SelectorChecker::ScopeContainsLastMatchedElement))
103
// If
behaviorAtBoundary
is not ScopeIsShadowHost, we can use "contains".
104
if (!(context.
behaviorAtBoundary
& SelectorChecker::ScopeIsShadowHost))
121
return context.element == context.scope && (context.
behaviorAtBoundary
& SelectorChecker::BoundaryBehaviorMask) != SelectorChecker::StaysWithinTreeScope;
298
if (context.scope && context.scope->treeScope() == context.element->treeScope() && (context.
behaviorAtBoundary
& BoundaryBehaviorMask) != StaysWithinTreeScope)
339
BehaviorAtBoundary
behaviorAtBoundary = nextContext.behaviorAtBoundary
[
all
...]
SelectorChecker.h
50
enum
BehaviorAtBoundary
{
81
,
behaviorAtBoundary
(DoesNotCrossBoundary)
95
BehaviorAtBoundary
behaviorAtBoundary
;
125
static bool isHostInItsShadowTree(const Element&,
BehaviorAtBoundary
, const ContainerNode* scope);
181
inline bool SelectorChecker::isHostInItsShadowTree(const Element& element,
BehaviorAtBoundary
behaviorAtBoundary
, const ContainerNode* scope)
183
return (
behaviorAtBoundary
& (ScopeIsShadowHost | TreatShadowHostAsNormalScope)) == ScopeIsShadowHost && scope == element;
Completed in 506 milliseconds