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