| 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 551f8655f41e1eba24f7d16e2adea5d399990d5a..bb9eb0ea9d9fd927f44b756ad3b2879672bcff85 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| @@ -998,4 +998,17 @@ ScrollResult LayoutView::scroll(ScrollGranularity granularity, const FloatSize&
|
| return frameView()->getScrollableArea()->userScroll(granularity, delta);
|
| }
|
|
|
| +LayoutRect LayoutView::debugRect() const
|
| +{
|
| + LayoutRect rect;
|
| + LayoutBlock* block = containingBlock();
|
| + if (block)
|
| + block->adjustChildDebugRect(rect);
|
| +
|
| + rect.setWidth(LayoutUnit(viewWidth(IncludeScrollbars)));
|
| + rect.setHeight(LayoutUnit(viewHeight(IncludeScrollbars)));
|
| +
|
| + return rect;
|
| +}
|
| +
|
| } // namespace blink
|
|
|