| Index: Source/core/css/resolver/StyleResolverState.h
|
| diff --git a/Source/core/css/resolver/StyleResolverState.h b/Source/core/css/resolver/StyleResolverState.h
|
| index fd88ffc036d9cff8b849e5f56640a0eec3a0f413..20e157a3bc8a5cfdf2e94a84790788c2212d6f68 100644
|
| --- a/Source/core/css/resolver/StyleResolverState.h
|
| +++ b/Source/core/css/resolver/StyleResolverState.h
|
| @@ -39,6 +39,7 @@ namespace WebCore {
|
|
|
| class FontDescription;
|
| class RenderRegion;
|
| +class StyleRule;
|
|
|
| class StyleResolverState {
|
| WTF_MAKE_NONCOPYABLE(StyleResolverState);
|
| @@ -73,6 +74,9 @@ public:
|
|
|
| const RenderRegion* regionForStyling() const { return m_regionForStyling; }
|
|
|
| + void setCurrentRule(StyleRule* currentRule) { m_currentRule = currentRule; }
|
| + const StyleRule* currentRule() const { return m_currentRule; }
|
| +
|
| // FIXME: These are effectively side-channel "out parameters" for the various
|
| // map functions. When we map from CSS to style objects we use this state object
|
| // to track various meta-data about that mapping (e.g. if it's cache-able).
|
| @@ -162,6 +166,8 @@ private:
|
| // a back-pointer to this object.
|
| CSSToStyleMap m_styleMap;
|
| Vector<AtomicString> m_contentAttrValues;
|
| +
|
| + StyleRule* m_currentRule;
|
| };
|
|
|
| } // namespace WebCore
|
|
|