Index: Source/WebCore/css/CSSStyleSelector.cpp |
=================================================================== |
--- Source/WebCore/css/CSSStyleSelector.cpp (revision 98492) |
+++ Source/WebCore/css/CSSStyleSelector.cpp (working copy) |
@@ -889,9 +889,6 @@ |
if (style->transitions() || style->animations()) |
return false; |
- if (style->affectedByDirectAdjacentRules()) |
- return false; |
- |
#if USE(ACCELERATED_COMPOSITING) |
// Turn off style sharing for elements that can gain layers for reasons outside of the style system. |
// See comments in RenderObject::setStyle(). |
@@ -931,7 +928,8 @@ |
{ |
return parentStyle->childrenAffectedByPositionalRules() |
|| parentStyle->childrenAffectedByFirstChildRules() |
- || parentStyle->childrenAffectedByLastChildRules(); |
+ || parentStyle->childrenAffectedByLastChildRules() |
+ || parentStyle->childrenAffectedByDirectAdjacentRules(); |
} |
RenderStyle* CSSStyleSelector::locateSharedStyle() |