Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: Source/core/rendering/style/RenderStyle.cpp

Issue 348493003: Don't force full invalidation on box-sizing change (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/style/RenderStyle.cpp
diff --git a/Source/core/rendering/style/RenderStyle.cpp b/Source/core/rendering/style/RenderStyle.cpp
index f093dbdc13f55e9f0199912fc0d01cea3e532401..4ed7a4b8f72524eeb950ef68f0ce9b836b4d629e 100644
--- a/Source/core/rendering/style/RenderStyle.cpp
+++ b/Source/core/rendering/style/RenderStyle.cpp
@@ -424,11 +424,6 @@ bool RenderStyle::diffNeedsFullLayoutAndRepaint(const RenderStyle& other) const
// - or the renderer knows how to exactly repaint caused by the layout change
// instead of forced full repaint.
- if (m_box.get() != other.m_box.get()) {
- if (m_box->boxSizing() != other.m_box->boxSizing())
- return true;
- }
-
if (surround.get() != other.surround.get()) {
if (surround->margin != other.surround->margin)
return true;
@@ -615,6 +610,9 @@ bool RenderStyle::diffNeedsFullLayout(const RenderStyle& other) const
if (m_box->verticalAlign() != other.m_box->verticalAlign())
return true;
+
+ if (m_box->boxSizing() != other.m_box->boxSizing())
+ return true;
}
if (noninherited_flags._vertical_align != other.noninherited_flags._vertical_align)

Powered by Google App Engine
This is Rietveld 408576698