| 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 72e6a3c10617a0eaf403e76936f53357afc908c2..63a0192f2a5eddf535334fc37a0251e17ced2728 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -4856,4 +4856,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
|
|
|