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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutListMarker.h

Issue 2553793003: Establish a list marker's offset before floats have been added to its line (Closed)
Patch Set: bug 548616 Created 4 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: third_party/WebKit/Source/core/layout/LayoutListMarker.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutListMarker.h b/third_party/WebKit/Source/core/layout/LayoutListMarker.h
index fe87eddec6e60bf5a3bdd8239745f49e198111ec..47057d9f42c8b650795c81c2ae86bf216dd5bac7 100644
--- a/third_party/WebKit/Source/core/layout/LayoutListMarker.h
+++ b/third_party/WebKit/Source/core/layout/LayoutListMarker.h
@@ -62,6 +62,8 @@ class LayoutListMarker final : public LayoutBox {
const char* name() const override { return "LayoutListMarker"; }
+ LayoutUnit lineOffset() const { return m_lineOffset; }
+
protected:
void willBeDestroyed() override;
@@ -112,6 +114,7 @@ class LayoutListMarker final : public LayoutBox {
String m_text;
Persistent<StyleImage> m_image;
LayoutListItem* m_listItem;
+ LayoutUnit m_lineOffset;
};
DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutListMarker, isListMarker());
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutListItem.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutListMarker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698