Chromium Code Reviews| Index: Source/core/rendering/style/RenderStyle.h |
| diff --git a/Source/core/rendering/style/RenderStyle.h b/Source/core/rendering/style/RenderStyle.h |
| index a8fbae49e3b1169570b43afa4fda82d059a119c7..132d1b28d0d3064cb9983d59071befcd79ace52e 100644 |
| --- a/Source/core/rendering/style/RenderStyle.h |
| +++ b/Source/core/rendering/style/RenderStyle.h |
| @@ -437,6 +437,7 @@ public: |
| bool hasPseudoStyle(PseudoId pseudo) const; |
| void setHasPseudoStyle(PseudoId pseudo); |
| bool hasUniquePseudoStyle() const; |
| + bool hasContentPseudoStyle() const; |
| // attribute getter methods |
| @@ -1890,6 +1891,11 @@ inline void RenderStyle::setHasPseudoStyle(PseudoId pseudo) |
| noninherited_flags._pseudoBits |= 1 << (pseudo - 1); |
| } |
| +inline bool RenderStyle::hasContentPseudoStyle() const |
| +{ |
| + return noninherited_flags._pseudoBits & CONTENT_PSEUDOID_MASK; |
|
esprehn
2014/01/24 22:53:49
CONTENT is confusing since we have ::content which
rune
2014/01/25 00:00:38
Done.
|
| +} |
| + |
| } // namespace WebCore |
| #endif // RenderStyle_h |