| Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| index 7f1179c6d8e2ba12d74c9bceb6276f68d1dfb4fb..42f319d070848646e673bb85ac37d765fba28076 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| @@ -1748,9 +1748,6 @@ void LayoutObject::setStyle(PassRefPtr<ComputedStyle> style) {
|
| setShouldDoFullPaintInvalidationWithoutGeometryChange();
|
| }
|
|
|
| - if (diff.needsVisualRectUpdate())
|
| - setMayNeedPaintInvalidation();
|
| -
|
| // Text nodes share style with their parents but the paint properties don't
|
| // apply to them, hence the !isText() check.
|
| if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled() && !isText() &&
|
| @@ -1772,18 +1769,20 @@ void LayoutObject::setStyle(PassRefPtr<ComputedStyle> style) {
|
| void LayoutObject::styleWillChange(StyleDifference diff,
|
| const ComputedStyle& newStyle) {
|
| if (m_style) {
|
| - bool visibilityChanged = m_style->visibility() != newStyle.visibility();
|
| // If our z-index changes value or our visibility changes,
|
| // we need to dirty our stacking context's z-order list.
|
| - if (visibilityChanged || m_style->zIndex() != newStyle.zIndex() ||
|
| - m_style->isStackingContext() != newStyle.isStackingContext()) {
|
| + bool visibilityChanged =
|
| + m_style->visibility() != newStyle.visibility() ||
|
| + m_style->zIndex() != newStyle.zIndex() ||
|
| + m_style->isStackingContext() != newStyle.isStackingContext();
|
| + if (visibilityChanged) {
|
| document().setAnnotatedRegionsDirty(true);
|
| if (AXObjectCache* cache = document().existingAXObjectCache())
|
| cache->childrenChanged(parent());
|
| }
|
|
|
| // Keep layer hierarchy visibility bits up to date if visibility changes.
|
| - if (visibilityChanged) {
|
| + if (m_style->visibility() != newStyle.visibility()) {
|
| // We might not have an enclosing layer yet because we might not be in the
|
| // tree.
|
| if (PaintLayer* layer = enclosingLayer())
|
|
|