| Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| index 48925626d7d27e253620d5c424a23370aae3b42b..62aa7701b68f991692f5c8e2634ccff7d04594be 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -4851,4 +4851,15 @@ SnapAreaSet* LayoutBox::snapAreas() const
|
| return m_rareData ? m_rareData->m_snapAreas.get() : nullptr;
|
| }
|
|
|
| +LayoutRect LayoutBox::debugRect() const
|
| +{
|
| + LayoutRect rect = frameRect();
|
| +
|
| + LayoutBlock* block = containingBlock();
|
| + if (block)
|
| + block->adjustChildDebugRect(rect);
|
| +
|
| + return rect;
|
| +}
|
| +
|
| } // namespace blink
|
|
|