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

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

Issue 1815183002: [Layout API] Add LayoutItem.isBR() and use from editing/VisibleUnits (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
« no previous file with comments | « third_party/WebKit/Source/core/editing/VisibleUnits.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 bool isBoxModelObject() const 47 bool isBoxModelObject() const
48 { 48 {
49 return m_layoutObject->isBoxModelObject(); 49 return m_layoutObject->isBoxModelObject();
50 } 50 }
51 51
52 bool isBox() const 52 bool isBox() const
53 { 53 {
54 return m_layoutObject->isBox(); 54 return m_layoutObject->isBox();
55 } 55 }
56 56
57 bool isBR() const
58 {
59 return m_layoutObject->isBR();
60 }
61
57 bool isLayoutBlock() const 62 bool isLayoutBlock() const
58 { 63 {
59 return m_layoutObject->isLayoutBlock(); 64 return m_layoutObject->isLayoutBlock();
60 } 65 }
61 66
62 bool isText() const 67 bool isText() const
63 { 68 {
64 return m_layoutObject->isText(); 69 return m_layoutObject->isText();
65 } 70 }
66 71
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 LayoutObject* layoutObject() { return m_layoutObject; } 183 LayoutObject* layoutObject() { return m_layoutObject; }
179 const LayoutObject* layoutObject() const { return m_layoutObject; } 184 const LayoutObject* layoutObject() const { return m_layoutObject; }
180 185
181 private: 186 private:
182 LayoutObject* m_layoutObject; 187 LayoutObject* m_layoutObject;
183 }; 188 };
184 189
185 } // namespace blink 190 } // namespace blink
186 191
187 #endif // LayoutItem_h 192 #endif // LayoutItem_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/VisibleUnits.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698