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; |