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

Unified Diff: Source/core/layout/LayoutListItem.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/inspector/InspectorTraceEvents.cpp ('k') | Source/core/layout/LayoutListItem.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutListItem.h
diff --git a/Source/core/layout/LayoutListItem.h b/Source/core/layout/LayoutListItem.h
index 919f30a6e9d2c65ca1af394cb1425f5eaf5b296e..65658de749344bce73e6c4be509d5c70da6b8804 100644
--- a/Source/core/layout/LayoutListItem.h
+++ b/Source/core/layout/LayoutListItem.h
@@ -60,6 +60,9 @@ public:
bool isEmpty() const;
+ void setMarker(LayoutListMarker* marker) { m_marker = marker; }
+ LayoutListMarker* marker() const { return m_marker; }
+
virtual const char* name() const override { return "LayoutListItem"; }
private:
@@ -70,6 +73,8 @@ private:
virtual void insertedIntoTree() override;
virtual void willBeRemovedFromTree() override;
+ virtual void subtreeDidChange() override;
+
virtual void paint(const PaintInfo&, const LayoutPoint&) override;
virtual void layout() override;
@@ -78,7 +83,7 @@ private:
bool updateMarkerLocation();
void updateMarkerLocationAndInvalidateWidth();
- void positionListMarker();
+ void positionListMarker(LayoutListMarker*);
virtual void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
@@ -89,7 +94,7 @@ private:
void explicitValueChanged();
int m_explicitValue;
- LayoutListMarker* m_marker;
+ LayoutListMarker* m_marker; // Not owned when using listMarkerPseudoElements.
mutable int m_value;
bool m_hasExplicitValue : 1;
« no previous file with comments | « Source/core/inspector/InspectorTraceEvents.cpp ('k') | Source/core/layout/LayoutListItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698