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

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

Issue 166033009: *** FOR PROTOTYPE PURPOSES ONLY! NOT INTENDED FOR COMMIT! *** (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual bool isListItem() const OVERRIDE { return true; } 60 virtual bool isListItem() const OVERRIDE { return true; }
61 61
62 virtual void willBeDestroyed() OVERRIDE; 62 virtual void willBeDestroyed() OVERRIDE;
63 63
64 virtual void insertedIntoTree() OVERRIDE; 64 virtual void insertedIntoTree() OVERRIDE;
65 virtual void willBeRemovedFromTree() OVERRIDE; 65 virtual void willBeRemovedFromTree() OVERRIDE;
66 66
67 virtual bool isEmpty() const OVERRIDE; 67 virtual bool isEmpty() const OVERRIDE;
68 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; 68 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE;
69 69
70 // This class represents a bit more complexity in switching to non-recursive
71 // layout. This is a subclass of RenderBlockFlow so it needs to hook in, bu t
72 // preserve some of its own pre/post operations.
70 virtual void layout() OVERRIDE; 73 virtual void layout() OVERRIDE;
74 virtual void preLayout() OVERRIDE;
75 virtual void postLayout() OVERRIDE;
76 void internalLayout(bool);
71 77
72 virtual bool supportsPartialLayout() const OVERRIDE { return false; } 78 virtual bool supportsPartialLayout() const OVERRIDE { return false; }
73 79
74 void positionListMarker(); 80 void positionListMarker();
75 81
76 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE; 82 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE;
77 83
78 virtual void addOverflowFromChildren() OVERRIDE; 84 virtual void addOverflowFromChildren() OVERRIDE;
79 85
80 inline int calcValue() const; 86 inline int calcValue() const;
81 void updateValueNow() const; 87 void updateValueNow() const;
82 void explicitValueChanged(); 88 void explicitValueChanged();
83 89
84 int m_explicitValue; 90 int m_explicitValue;
85 RenderListMarker* m_marker; 91 RenderListMarker* m_marker;
86 mutable int m_value; 92 mutable int m_value;
87 93
88 bool m_hasExplicitValue : 1; 94 bool m_hasExplicitValue : 1;
89 mutable bool m_isValueUpToDate : 1; 95 mutable bool m_isValueUpToDate : 1;
90 bool m_notInList : 1; 96 bool m_notInList : 1;
91 }; 97 };
92 98
93 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderListItem, isListItem()); 99 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderListItem, isListItem());
94 100
95 } // namespace WebCore 101 } // namespace WebCore
96 102
97 #endif // RenderListItem_h 103 #endif // RenderListItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698