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

Unified Diff: Source/core/css/StyleResolver.cpp

Issue 14467003: Remove ENABLE_DIALOG_ELEMENT (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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: Source/core/css/StyleResolver.cpp
diff --git a/Source/core/css/StyleResolver.cpp b/Source/core/css/StyleResolver.cpp
index 8eb5b510dcf6d9a1d61f9c95b9c9a182a20ce0d9..2f6114bfae29e56e61f201c02956e8a373e598b3 100644
--- a/Source/core/css/StyleResolver.cpp
+++ b/Source/core/css/StyleResolver.cpp
@@ -1417,13 +1417,11 @@ void StyleResolver::adjustRenderStyle(RenderStyle* style, RenderStyle* parentSty
style->setDisplay(equivalentBlockDisplay(style->display(), style->isFloating(), !document()->inQuirksMode()));
}
-#if ENABLE(DIALOG_ELEMENT)
// Per the spec, position 'static' and 'relative' in the top layer compute to 'absolute'.
if (e && e->isInTopLayer() && (style->position() == StaticPosition || style->position() == RelativePosition)) {
style->setPosition(AbsolutePosition);
style->setDisplay(BLOCK);
}
-#endif
}
// Make sure our z-index value is only applied if the object is positioned.
@@ -1447,9 +1445,7 @@ void StyleResolver::adjustRenderStyle(RenderStyle* style, RenderStyle* parentSty
// Touch overflow scrolling creates a stacking context.
|| ((style->overflowX() != OHIDDEN || style->overflowY() != OHIDDEN) && style->useTouchOverflowScrolling())
#endif
-#if ENABLE(DIALOG_ELEMENT)
|| (e && e->isInTopLayer())
-#endif
))
style->setZIndex(0);

Powered by Google App Engine
This is Rietveld 408576698