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

Side by Side Diff: Source/core/rendering/RenderListMarker.h

Issue 644073002: Avoid layout when list color changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderListItem.cpp ('k') | Source/core/rendering/RenderListMarker.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009 Apple Inc. All rights reserv ed. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009 Apple Inc. All rights reserv ed.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 void updateMarginsAndContent(); 48 void updateMarginsAndContent();
49 49
50 IntRect getRelativeMarkerRect(); 50 IntRect getRelativeMarkerRect();
51 LayoutRect localSelectionRect(); 51 LayoutRect localSelectionRect();
52 virtual bool isImage() const override; 52 virtual bool isImage() const override;
53 const StyleImage* image() { return m_image.get(); } 53 const StyleImage* image() { return m_image.get(); }
54 const RenderListItem* listItem() { return m_listItem.get(); } 54 const RenderListItem* listItem() { return m_listItem.get(); }
55 55
56 static UChar listMarkerSuffix(EListStyleType, int value); 56 static UChar listMarkerSuffix(EListStyleType, int value);
57 57
58 void listItemStyleDidChange();
59
58 private: 60 private:
59 RenderListMarker(RenderListItem*); 61 RenderListMarker(RenderListItem*);
60 62
61 virtual const char* renderName() const override { return "RenderListMarker"; } 63 virtual const char* renderName() const override { return "RenderListMarker"; }
62 virtual void computePreferredLogicalWidths() override; 64 virtual void computePreferredLogicalWidths() override;
63 65
64 virtual bool isListMarker() const override { return true; } 66 virtual bool isListMarker() const override { return true; }
65 67
66 virtual void paint(PaintInfo&, const LayoutPoint&) override; 68 virtual void paint(PaintInfo&, const LayoutPoint&) override;
67 69
(...skipping 21 matching lines...) Expand all
89 String m_text; 91 String m_text;
90 RefPtr<StyleImage> m_image; 92 RefPtr<StyleImage> m_image;
91 RawPtrWillBeMember<RenderListItem> m_listItem; 93 RawPtrWillBeMember<RenderListItem> m_listItem;
92 }; 94 };
93 95
94 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderListMarker, isListMarker()); 96 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderListMarker, isListMarker());
95 97
96 } // namespace blink 98 } // namespace blink
97 99
98 #endif // RenderListMarker_h 100 #endif // RenderListMarker_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderListItem.cpp ('k') | Source/core/rendering/RenderListMarker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698