Chromium Code Reviews| Index: Source/core/rendering/style/RenderStyle.cpp |
| diff --git a/Source/core/rendering/style/RenderStyle.cpp b/Source/core/rendering/style/RenderStyle.cpp |
| index 8accb94d73609b0186a0da53fcf963a1286545f0..3db5b5d2f7e975148cf920a7930111634f32a388 100644 |
| --- a/Source/core/rendering/style/RenderStyle.cpp |
| +++ b/Source/core/rendering/style/RenderStyle.cpp |
| @@ -600,9 +600,12 @@ StyleDifference RenderStyle::visualInvalidationDiff(const RenderStyle& other, un |
| StyleDifference RenderStyle::repaintOnlyDiff(const RenderStyle& other, unsigned& changedContextSensitiveProperties) const |
| { |
| - if (position() != StaticPosition && (m_box->zIndex() != other.m_box->zIndex() || m_box->hasAutoZIndex() != other.m_box->hasAutoZIndex() |
| - || visual->clip != other.visual->clip || visual->hasClip != other.visual->hasClip)) |
| - return StyleDifferenceRepaintLayer; |
| + if (position() != StaticPosition) { |
|
ojan
2014/04/18 01:46:23
This isn't the fault of your patch, but now that I
Xianzhu
2014/04/18 16:05:41
My understanding about the code is that it forces
ojan
2014/04/18 17:20:03
I think you're right. In either case, that should
|
| + if (m_box->zIndex() != other.m_box->zIndex() || m_box->hasAutoZIndex() != other.m_box->hasAutoZIndex()) |
| + changedContextSensitiveProperties |= ContextSensitivePropertyZIndex; |
| + if (visual->clip != other.visual->clip || visual->hasClip != other.visual->hasClip) |
| + return StyleDifferenceRepaintLayer; |
| + } |
| if (RuntimeEnabledFeatures::cssCompositingEnabled() && (rareNonInheritedData->m_effectiveBlendMode != other.rareNonInheritedData->m_effectiveBlendMode |
| || rareNonInheritedData->m_isolation != other.rareNonInheritedData->m_isolation)) |