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

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: Fix compile error with default switch case. 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..02866addaf5871b8e1c0f90e93c9e161000e1921 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 SimplifiedListStyle {
+ NoneSimpleStyle,
+ SymbolSimpleStyle,
+ LanguageSimpleStyle
+ };
+
+ // Returns the list's style as one of a reduced high level categorical set of styles.
+ SimplifiedListStyle simplifiedListStyle() const;
eae 2015/10/12 06:02:01 listStyleCategory might be a better name as simpli
wkorman 2015/10/14 01:55:30 Done.
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();

Powered by Google App Engine
This is Rietveld 408576698