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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2280153002: Refactoring out the code in LayoutTreeAsText::writeLayoutObject. (Closed)
Patch Set: Initial commit Created 4 years, 4 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: third_party/WebKit/Source/core/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 5039f4bcc8dd294fffed8b9fe8257cdef27623d3..b8360a2d2c6ba826129affb43b3da08c829866dd 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -77,6 +77,7 @@
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/TracedValue.h"
#include "platform/geometry/TransformState.h"
+#include "platform/scroll/ScrollableArea.h"
#include "wtf/allocator/Partitions.h"
#include "wtf/text/StringBuilder.h"
#include "wtf/text/WTFString.h"
@@ -3200,6 +3201,14 @@ ObjectPaintProperties& LayoutObject::ensureObjectPaintProperties()
return *addResult.storedValue->value;
}
+void LayoutObject::setLayoutRectDimForLayoutView(LayoutRect& rect) const
+{
+ if (isLayoutView()) {
benjhayden 2016/08/29 20:45:27 Should this be moved to a virtual method so that L
lunalu1 2016/08/30 20:35:30 Could you please clarify on this? So to create a v
+ rect.setWidth(LayoutUnit(toLayoutView(this)->viewWidth(IncludeScrollbars)));
+ rect.setHeight(LayoutUnit(toLayoutView(this)->viewHeight(IncludeScrollbars)));
+ }
+}
+
} // namespace blink
#ifndef NDEBUG

Powered by Google App Engine
This is Rietveld 408576698