| Index: Source/core/css/resolver/StyleResolver.h
 | 
| diff --git a/Source/core/css/resolver/StyleResolver.h b/Source/core/css/resolver/StyleResolver.h
 | 
| index 5263b0f74e7f68b505717f3a97e71f76aa84f359..e161949fcfa27e8c1189a927e4ae2fe8c4dd9f5b 100644
 | 
| --- a/Source/core/css/resolver/StyleResolver.h
 | 
| +++ b/Source/core/css/resolver/StyleResolver.h
 | 
| @@ -183,7 +183,13 @@ 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);
 | 
| +
 | 
| +    // childIndex's origin is 1, and avoids unnecessary tree walks to resolve nth/nth-last selectors.
 | 
| +    PassRefPtr<RenderStyle> styleForElement(Element* element, int childIndex)
 | 
| +    {
 | 
| +        return styleForElement(element, 0, AllowStyleSharing, MatchAllRules, 0, childIndex);
 | 
| +    }
 | 
|  
 | 
|      void keyframeStylesForAnimation(Element*, const RenderStyle*, KeyframeList&);
 | 
|  
 | 
| 
 |