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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutListItem.h

Issue 1405693002: LayoutListItem: shorten refs, use nullptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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 18 matching lines...) Expand all
29 29
30 class HTMLOListElement; 30 class HTMLOListElement;
31 class LayoutListMarker; 31 class LayoutListMarker;
32 32
33 class LayoutListItem final : public LayoutBlockFlow { 33 class LayoutListItem final : public LayoutBlockFlow {
34 public: 34 public:
35 explicit LayoutListItem(Element*); 35 explicit LayoutListItem(Element*);
36 36
37 int value() const 37 int value() const
38 { 38 {
39 if (!m_isValueUpToDate) { 39 if (!m_isValueUpToDate)
40 updateValueNow(); 40 updateValueNow();
41 }
42 return m_value; 41 return m_value;
43 } 42 }
44 void updateValue(); 43 void updateValue();
45 44
46 bool hasExplicitValue() const { return m_hasExplicitValue; } 45 bool hasExplicitValue() const { return m_hasExplicitValue; }
47 int explicitValue() const { return m_explicitValue; } 46 int explicitValue() const { return m_explicitValue; }
48 void setExplicitValue(int); 47 void setExplicitValue(int);
49 void clearExplicitValue(); 48 void clearExplicitValue();
50 49
51 void setNotInList(bool); 50 void setNotInList(bool);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 bool m_hasExplicitValue : 1; 95 bool m_hasExplicitValue : 1;
97 mutable bool m_isValueUpToDate : 1; 96 mutable bool m_isValueUpToDate : 1;
98 bool m_notInList : 1; 97 bool m_notInList : 1;
99 }; 98 };
100 99
101 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutListItem, isListItem()); 100 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutListItem, isListItem());
102 101
103 } // namespace blink 102 } // namespace blink
104 103
105 #endif // LayoutListItem_h 104 #endif // LayoutListItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698