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

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

Issue 2280153002: Refactoring out the code in LayoutTreeAsText::writeLayoutObject. (Closed)
Patch Set: Codereview update Created 4 years, 3 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/LayoutView.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
index 0112d60920e2ca0e9e34354409954356702caf16..c77ab9bb11707f8eaeaff0423c3f8c1710ebb041 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -996,4 +996,17 @@ ScrollResult LayoutView::scroll(ScrollGranularity granularity, const FloatSize&
return frameView()->getScrollableArea()->userScroll(granularity, delta);
}
+LayoutRect LayoutView::debugRect() const
+{
+ LayoutRect r;
+ LayoutBlock* cb = containingBlock();
+ if (cb)
+ cb->adjustForTableCells(r);
+
+ r.setWidth(LayoutUnit(viewWidth(IncludeScrollbars)));
+ r.setHeight(LayoutUnit(viewHeight(IncludeScrollbars)));
+
+ return r;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698