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

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

Issue 2047283002: Avoid touching z-index in StyleAdjuster by using an isStackingContext flag instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comments Created 4 years, 5 months 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
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 7cb4edda2987be15d54fa106b4b56ec55a94ce70..80c81b266ea5a8045f5e08536317975f527f100a 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
@@ -683,6 +683,7 @@ PassRefPtr<ComputedStyle> StyleResolver::styleForDocument(Document& document)
documentFontDescription.setLocale(document.contentLanguage());
documentStyle->setFontDescription(documentFontDescription);
documentStyle->setZIndex(0);
+ documentStyle->setIsStackingContext(true);
documentStyle->setUserModify(document.inDesignMode() ? READ_WRITE : READ_ONLY);
// These are designed to match the user-agent stylesheet values for the document element
// so that the common case doesn't need to create a new ComputedStyle in
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698