| Index: Source/core/css/resolver/StyleResolver.h
|
| diff --git a/Source/core/css/resolver/StyleResolver.h b/Source/core/css/resolver/StyleResolver.h
|
| index 494525a5e20cbfef2a81719870ed801a0665a14d..db5443c4aeed9e4dcca72c2c740d46623ce9567b 100644
|
| --- a/Source/core/css/resolver/StyleResolver.h
|
| +++ b/Source/core/css/resolver/StyleResolver.h
|
| @@ -160,7 +160,12 @@ public:
|
| void popParentShadowRoot(const ShadowRoot*);
|
|
|
| PassRefPtr<RenderStyle> styleForElement(Element*, RenderStyle* parentStyle = 0, StyleSharingBehavior = AllowStyleSharing,
|
| - RuleMatchingBehavior = MatchAllRules, RenderRegion* regionForStyling = 0);
|
| + RuleMatchingBehavior = MatchAllRules, RenderRegion* regionForStyling = 0, int childIndex = 0);
|
| +
|
| + PassRefPtr<RenderStyle> styleForElement(Element* element, int childIndex)
|
| + {
|
| + return styleForElement(element, 0, AllowStyleSharing, MatchAllRules, 0, childIndex);
|
| + }
|
|
|
| void keyframeStylesForAnimation(Element*, const RenderStyle*, KeyframeList&);
|
|
|
| @@ -198,7 +203,7 @@ public:
|
| }
|
|
|
| private:
|
| - void initElement(Element*);
|
| + void initElement(Element*, int childIndex = 0);
|
| RenderStyle* locateSharedStyle();
|
| bool styleSharingCandidateMatchesRuleSet(RuleSet*);
|
| Node* locateCousinList(Element* parent, unsigned& visitedNodeCount) const;
|
|
|