| Index: Source/core/rendering/RenderBox.cpp
|
| diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp
|
| index 760eab0aad7d7832b5fed5c1e2a2aff48cfc7088..da5505d0b4f1559a4c52481216ca665d751116b0 100644
|
| --- a/Source/core/rendering/RenderBox.cpp
|
| +++ b/Source/core/rendering/RenderBox.cpp
|
| @@ -286,10 +286,21 @@ void RenderBox::updateFromStyle()
|
| if (!hasOverflowClip()) {
|
| // If we are getting an overflow clip, preemptively erase any overflowing content.
|
| // FIXME: This should probably consult RenderOverflow.
|
| - repaint();
|
| + if (!RuntimeEnabledFeatures::repaintAfterLayoutEnabled())
|
| + repaint();
|
| }
|
| }
|
| }
|
| +
|
| + if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled() && (boxHasOverflowClip != hasOverflowClip())) {
|
| + // FIXME: This shouldn't be required if we tracked the visual overflow
|
| + // generated by positioned children or self painting layers. crbug.com/345403
|
| + for (RenderObject* child = firstChild(); child; child = child->nextSibling()) {
|
| + LayoutRectRecorder childRecorder(*child);
|
| + child->setShouldDoFullRepaintIfSelfPaintingLayer(true);
|
| + }
|
| + }
|
| +
|
| setHasOverflowClip(boxHasOverflowClip);
|
|
|
| setHasTransform(styleToUse->hasTransformRelatedProperty());
|
| @@ -1564,6 +1575,8 @@ void RenderBox::imageChanged(WrappedImagePtr image, const IntRect*)
|
| if (!parent())
|
| return;
|
|
|
| + AllowRepaintScope scoper(frameView());
|
| +
|
| if ((style()->borderImage().image() && style()->borderImage().image()->data() == image) ||
|
| (style()->maskBoxImage().image() && style()->maskBoxImage().image()->data() == image)) {
|
| repaint();
|
|
|