| Index: Source/core/rendering/style/RenderStyle.cpp
|
| diff --git a/Source/core/rendering/style/RenderStyle.cpp b/Source/core/rendering/style/RenderStyle.cpp
|
| index 43fedd29bc3bc2361fad3db8cb6022937664b6d5..3862be58f61ec13e57923a7ba47e39b18bb7ff28 100644
|
| --- a/Source/core/rendering/style/RenderStyle.cpp
|
| +++ b/Source/core/rendering/style/RenderStyle.cpp
|
| @@ -423,12 +423,6 @@ bool RenderStyle::diffNeedsFullLayoutAndRepaint(const RenderStyle& other) const
|
| // instead of forced full repaint.
|
|
|
| if (surround.get() != other.surround.get()) {
|
| - if (surround->margin != other.surround->margin)
|
| - return true;
|
| -
|
| - if (surround->padding != other.surround->padding)
|
| - return true;
|
| -
|
| // If our border widths change, then we need to layout. Other changes to borders only necessitate a repaint.
|
| if (borderLeftWidth() != other.borderLeftWidth()
|
| || borderTopWidth() != other.borderTopWidth()
|
| @@ -616,6 +610,14 @@ bool RenderStyle::diffNeedsFullLayout(const RenderStyle& other) const
|
| if (noninherited_flags._vertical_align != other.noninherited_flags._vertical_align)
|
| return true;
|
|
|
| + if (surround.get() != other.surround.get()) {
|
| + if (surround->margin != other.surround->margin)
|
| + return true;
|
| +
|
| + if (surround->padding != other.surround->padding)
|
| + return true;
|
| + }
|
| +
|
| return false;
|
| }
|
|
|
|
|