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

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: Animation expectation Created 4 years, 6 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 fbac170a82b7d82fb6db7cbd2e9a40d96ab1bbf9..2d733fa1caa6033e485f8158d23883d4804faf01 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

Powered by Google App Engine
This is Rietveld 408576698