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

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

Issue 197283038: Add RenderObject::needsResizeLayout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rename internal setNeedsResizeLayout 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.h
diff --git a/Source/core/rendering/RenderBox.h b/Source/core/rendering/RenderBox.h
index d546a06a66bc5e72f18b50919096123a69aa30e0..b30ca38b5eb2653b66e9c5b281eb9bf7f92822ba 100644
--- a/Source/core/rendering/RenderBox.h
+++ b/Source/core/rendering/RenderBox.h
@@ -530,6 +530,21 @@ public:
return true;
}
+ bool tryLayoutDoingResizeOnly()
esprehn 2014/03/24 22:40:04 This should not be inline in the header. Move it t
Xianzhu 2014/03/24 23:53:24 Done.
+ {
+ // FIXME: For now this is for RenderView only. Needs more verifications before applied to generic objects.
+ ASSERT(isRenderView());
+
+ LayoutRectRecorder recorder(*this);
+ LayoutUnit oldWidth = width();
+ updateLogicalWidth();
+ // If we shrink to fit our width may have changed, so we still need full layout.
+ if (oldWidth != width())
+ return false;
+ updateLogicalHeight();
+ return true;
+ }
+
LayoutRect maskClipRect();
virtual PositionWithAffinity positionForPoint(const LayoutPoint&) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698