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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.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 old z-index stacking context test 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/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index 20d5a455ef40219487ada936fd63ceec9fa900e9..18eb9afe5fdc9fe3d48c20bcc64f86d2e51a8670 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -1720,6 +1720,11 @@ String Internals::elementLayerTreeAsText(Element* element, unsigned flags, Excep
return layer->compositedLayerMapping()->mainGraphicsLayer()->layerTreeAsText(flags);
}
+bool Internals::isStackingContext(Element* element) const
+{
+ return element->layoutObject()->style()->isStackingContext();
+}
+
String Internals::scrollingStateTreeAsText(Document*) const
{
return String();

Powered by Google App Engine
This is Rietveld 408576698