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

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

Issue 1759173002: [Layout API] Create api/LayoutLIItem and use it in html/HTMLLIElement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LayoutItem_h 5 #ifndef LayoutItem_h
6 #define LayoutItem_h 6 #define LayoutItem_h
7 7
8 #include "core/inspector/InspectorTraceEvents.h" 8 #include "core/inspector/InspectorTraceEvents.h"
9 #include "core/layout/LayoutObject.h" 9 #include "core/layout/LayoutObject.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 bool isImage() const 82 bool isImage() const
83 { 83 {
84 return m_layoutObject->isImage(); 84 return m_layoutObject->isImage();
85 } 85 }
86 86
87 bool isLayoutFullScreen() const 87 bool isLayoutFullScreen() const
88 { 88 {
89 return m_layoutObject->isLayoutFullScreen(); 89 return m_layoutObject->isLayoutFullScreen();
90 } 90 }
91 91
92 bool isListItem() const
93 {
94 return m_layoutObject->isListItem();
95 }
96
92 bool needsLayout() 97 bool needsLayout()
93 { 98 {
94 return m_layoutObject->needsLayout(); 99 return m_layoutObject->needsLayout();
95 } 100 }
96 101
97 void layout() 102 void layout()
98 { 103 {
99 m_layoutObject->layout(); 104 m_layoutObject->layout();
100 } 105 }
101 106
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 LayoutObject* layoutObject() { return m_layoutObject; } 153 LayoutObject* layoutObject() { return m_layoutObject; }
149 const LayoutObject* layoutObject() const { return m_layoutObject; } 154 const LayoutObject* layoutObject() const { return m_layoutObject; }
150 155
151 private: 156 private:
152 LayoutObject* m_layoutObject; 157 LayoutObject* m_layoutObject;
153 }; 158 };
154 159
155 } // namespace blink 160 } // namespace blink
156 161
157 #endif // LayoutItem_h 162 #endif // LayoutItem_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLLIElement.cpp ('k') | third_party/WebKit/Source/core/layout/api/LayoutLIItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698