| 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 8528d71253edfe1745b63b60d47b2ffeede3521e..3e2b4cd23642ac21536d0a0cf6f98fdfbe693099 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -4862,4 +4862,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
|
|
|