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

Unified Diff: Source/core/dom/PseudoElement.cpp

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/PseudoElement.cpp
diff --git a/Source/core/dom/PseudoElement.cpp b/Source/core/dom/PseudoElement.cpp
index 468883b63cc6996a0e213fcab5ba42a1f867b522..519fe880dc94600ebb0dfa5da56e5c9e9be5dfad 100644
--- a/Source/core/dom/PseudoElement.cpp
+++ b/Source/core/dom/PseudoElement.cpp
@@ -81,7 +81,7 @@ void PseudoElement::attach(const AttachContext& context)
Element::attach(context);
RenderObject* renderer = this->renderer();
- if (!renderer || !renderer->style()->regionThread().isEmpty())
+ if (!renderer || !renderer->style()->regionThread().isEmpty() || renderer->style()->styleType() == BACKDROP)
esprehn 2013/07/03 23:44:29 Lets remove this and just add an early return belo
falken 2013/07/04 08:20:12 Done. Good idea. But we need the !style->regionThr
return;
RenderStyle* style = renderer->style();

Powered by Google App Engine
This is Rietveld 408576698