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

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: use element directly Created 7 years, 5 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
« no previous file with comments | « Source/core/dom/PseudoElement.h ('k') | Source/core/rendering/RenderTheme.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/PseudoElement.cpp
diff --git a/Source/core/dom/PseudoElement.cpp b/Source/core/dom/PseudoElement.cpp
index 468883b63cc6996a0e213fcab5ba42a1f867b522..ebcc4553f96ddf07d0c1fdb040eaf71c7cd822c4 100644
--- a/Source/core/dom/PseudoElement.cpp
+++ b/Source/core/dom/PseudoElement.cpp
@@ -81,10 +81,13 @@ void PseudoElement::attach(const AttachContext& context)
Element::attach(context);
RenderObject* renderer = this->renderer();
- if (!renderer || !renderer->style()->regionThread().isEmpty())
+ if (!renderer)
return;
-
RenderStyle* style = renderer->style();
+ if (!style->regionThread().isEmpty())
+ return;
+ if (style->styleType() != BEFORE && style->styleType() != AFTER)
+ return;
ASSERT(style->contentData());
for (const ContentData* content = style->contentData(); content; content = content->next()) {
« no previous file with comments | « Source/core/dom/PseudoElement.h ('k') | Source/core/rendering/RenderTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698