Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/Document.cpp |
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
| index 681c3f1294106099e26e9b5e690e39038250a3bb..cf1b982bfa3c8925148f5f467cd30a10d4c49c6d 100644 |
| --- a/third_party/WebKit/Source/core/dom/Document.cpp |
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp |
| @@ -1637,6 +1637,12 @@ void Document::inheritHtmlAndBodyElementStyles(StyleRecalcChange change) |
| } else { |
| ASSERT(element == documentElement()); |
| overflowStyle = documentElementStyle.get(); |
| + |
| + // The body element has it's own scrolling box, independent from the viewport. |
|
skobes
2016/01/22 00:03:24
it's -> its
|
| + // This is a bit of a weird edge case in the CSS spec that we might want to try to |
| + // eliminate some day (eg. for ScrollTopLeftInterop - see http://crbug.com/157855). |
| + if (bodyStyle && !bodyStyle->isOverflowVisible()) |
| + UseCounter::count(*this, UseCounter::BodyScrollsInAdditionToViewport); |
| } |
| } |