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

Unified Diff: Source/core/rendering/RenderBox.cpp

Issue 197283038: Add RenderObject::needsResizeLayout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Not to touch RenderView for now Created 6 years, 9 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/RenderBox.cpp
diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp
index d3b5e1fbda84ec716b46b55258130dfe6e50614f..c1348543a81a8d95180a9aca70acf582bce98eb7 100644
--- a/Source/core/rendering/RenderBox.cpp
+++ b/Source/core/rendering/RenderBox.cpp
@@ -1475,6 +1475,18 @@ void RenderBox::paintMaskImages(const PaintInfo& paintInfo, const LayoutRect& pa
paintInfo.context->endLayer();
}
+bool RenderBox::tryLayoutDoingResizeOnly()
+{
+ LayoutRectRecorder recorder(*this);
+ LayoutUnit oldLogicalWidth = logicalWidth();
+ updateLogicalWidth();
+ // If logical width changed, we still need full layout.
+ if (oldLogicalWidth != logicalWidth())
+ return false;
+ updateLogicalHeight();
+ return true;
+}
+
LayoutRect RenderBox::maskClipRect()
{
const NinePieceImage& maskBoxImage = style()->maskBoxImage();

Powered by Google App Engine
This is Rietveld 408576698