Chromium Code Reviews

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 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: Source/core/dom/PseudoElement.h
diff --git a/Source/core/dom/PseudoElement.h b/Source/core/dom/PseudoElement.h
index eac6c788251140213f979b64e3995ef1f2d1c706..5bdeb3782e4fc31819940379e144f4bfc7a197c2 100644
--- a/Source/core/dom/PseudoElement.h
+++ b/Source/core/dom/PseudoElement.h
@@ -67,6 +67,10 @@ inline bool pseudoElementRendererIsNeeded(const ComputedStyle* 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