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

Unified Diff: Source/core/layout/LayoutListMarker.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. 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/layout/LayoutListItem.cpp ('k') | Source/core/layout/LayoutListMarker.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutListMarker.h
diff --git a/Source/core/layout/LayoutListMarker.h b/Source/core/layout/LayoutListMarker.h
index de8ce914b4b39342dce905f22ab86799c908b610..8967ad318ebf4df0dd821d8b9839aac9c5a2ccec 100644
--- a/Source/core/layout/LayoutListMarker.h
+++ b/Source/core/layout/LayoutListMarker.h
@@ -31,11 +31,12 @@ class LayoutListItem;
String listMarkerText(EListStyleType, int value);
-// Used to render the list item's marker.
+// Used to layout the list item's marker.
// The LayoutListMarker always has to be a child of a LayoutListItem.
class LayoutListMarker final : public LayoutBox {
public:
static LayoutListMarker* createAnonymous(LayoutListItem*);
+ LayoutListMarker(Element*, LayoutListItem*);
virtual ~LayoutListMarker();
virtual void destroy() override;
@@ -50,7 +51,8 @@ public:
LayoutRect localSelectionRect();
virtual bool isImage() const override;
const StyleImage* image() { return m_image.get(); }
- const LayoutListItem* listItem() { return m_listItem; }
+ const LayoutListItem* listItem() const { return m_listItem; }
+ LayoutListItem* mutableListItem() const { return m_listItem; }
static UChar listMarkerSuffix(EListStyleType, int value);
« no previous file with comments | « Source/core/layout/LayoutListItem.cpp ('k') | Source/core/layout/LayoutListMarker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698