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

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

Issue 778003003: List marker pseudo elements. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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.h
diff --git a/Source/core/dom/PseudoElement.h b/Source/core/dom/PseudoElement.h
index 14c7cf9a2d06ca4e63d0017d5f07a0a2f7ebb09a..4d4a854b1dc866017550bfa8a3097c4e91605002 100644
--- a/Source/core/dom/PseudoElement.h
+++ b/Source/core/dom/PseudoElement.h
@@ -65,6 +65,10 @@ inline bool pseudoElementRendererIsNeeded(const RenderStyle* style)
return false;
if (style->display() == NONE)
return false;
+
+ if (style->styleType() == MARKER)
+ return style->listStyleType() != NoneListStyle;
+
if (style->styleType() == FIRST_LETTER || style->styleType() == BACKDROP)
return true;
return style->contentData();

Powered by Google App Engine
This is Rietveld 408576698