Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp

Issue 2571893003: Set overflow: auto in StyleResolver::styleForDocument. (Closed)
Patch Set: resolve merge conflict with r438458 Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
index 9d38a76f4e3c47728d7d4510f83dc997ba90f958..663da08ffdbcac0c18e408cbde4752e30d0589fe 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
@@ -622,6 +622,12 @@ PassRefPtr<ComputedStyle> StyleResolver::styleForDocument(Document& document) {
documentStyle->setDisplay(EDisplay::Block);
documentStyle->setPosition(AbsolutePosition);
+ // Document::inheritHtmlAndBodyElementStyles will set the final overflow
+ // style values, but they should initially be auto to avoid premature
+ // scrollbar removal in PaintLayerScrollableArea::updateAfterStyleChange.
+ documentStyle->setOverflowX(EOverflow::Auto);
+ documentStyle->setOverflowY(EOverflow::Auto);
+
document.setupFontBuilder(*documentStyle);
return documentStyle.release();
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698