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

Unified Diff: Source/core/dom/Element.h

Issue 17654008: Implement the ::backdrop pseudo-element for modal <dialog>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add helper function and descendant selector test Created 7 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: Source/core/dom/Element.h
diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
index 16011f08d06a580349b8c6046a1a61218b7a438c..4c6a1dd0ab45cffcb5d073f0407cb251a5c80d0a 100644
--- a/Source/core/dom/Element.h
+++ b/Source/core/dom/Element.h
@@ -576,7 +576,7 @@ public:
virtual bool isDisabledFormControl() const { return false; }
bool isInert() const;
- virtual bool shouldBeReparentedUnderRenderView(const RenderStyle*) const { return isInTopLayer(); }
+ virtual bool shouldBeReparentedUnderRenderView(const RenderStyle*) const { return pseudoId() == BACKDROP || isInTopLayer(); }
esprehn 2013/07/03 23:44:29 Why isn't the backdrop in the top layer?
virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const;
bool hasPendingResources() const;

Powered by Google App Engine
This is Rietveld 408576698