Index: Source/WebCore/dom/Element.cpp |
=================================================================== |
--- Source/WebCore/dom/Element.cpp (revision 141894) |
+++ Source/WebCore/dom/Element.cpp (working copy) |
@@ -1997,6 +1997,20 @@ |
rareData->setChildIndex(index); |
} |
+bool Element::hasFlagsSetDuringStylingOfChildren() const |
+{ |
+ if (!hasRareData()) |
+ return false; |
+ return rareDataChildrenAffectedByHover() |
+ || rareDataChildrenAffectedByActive() |
+ || rareDataChildrenAffectedByDrag() |
+ || rareDataChildrenAffectedByFirstChildRules() |
+ || rareDataChildrenAffectedByLastChildRules() |
+ || rareDataChildrenAffectedByDirectAdjacentRules() |
+ || rareDataChildrenAffectedByForwardPositionalRules() |
+ || rareDataChildrenAffectedByBackwardPositionalRules(); |
+} |
+ |
bool Element::rareDataStyleAffectedByEmpty() const |
{ |
ASSERT(hasRareData()); |