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

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

Issue 1403643002: Rework list marker spacing for better web compatibility. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@472084_use_list_item_painter
Patch Set: More updated expectations. Created 5 years, 2 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
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 b670812362ea94e0c25ebff080d534835c1fd67e..d96806fa50577480bb4dbe23e02238224fb54052 100644
--- a/third_party/WebKit/Source/core/layout/LayoutListMarker.h
+++ b/third_party/WebKit/Source/core/layout/LayoutListMarker.h
@@ -40,6 +40,16 @@ public:
const String& text() const { return m_text; }
+ // A reduced set of list style categories allowing for more concise expression
+ // of list style specific logic.
+ enum ListStyleCategory {
+ NoneListCategory,
+ SymbolListCategory,
+ LanguageListCategory
+ };
+
+ // Returns the list's style as one of a reduced high level categorical set of styles.
+ ListStyleCategory listStyleCategory() const;
bool isInside() const;
void updateMarginsAndContent();
@@ -83,6 +93,7 @@ private:
LayoutRect selectionRectForPaintInvalidation(const LayoutBoxModelObject* paintInvalidationContainer) const override;
bool canBeSelectionLeaf() const override { return true; }
+ LayoutUnit getWidthOfTextWithSuffix(UChar* suffix, int suffixLength) const;
void updateMargins();
void updateContent();
« 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