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

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

Issue 2458003002: Remove ASSERT_WITH_SECURITY_IMPLICATION. (Closed)
Patch Set: Minor formatting fix Created 4 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 LineLayoutBoxModel_h 5 #ifndef LineLayoutBoxModel_h
6 #define LineLayoutBoxModel_h 6 #define LineLayoutBoxModel_h
7 7
8 #include "core/layout/LayoutBoxModelObject.h" 8 #include "core/layout/LayoutBoxModelObject.h"
9 #include "core/layout/api/LineLayoutItem.h" 9 #include "core/layout/api/LineLayoutItem.h"
10 #include "platform/LayoutUnit.h" 10 #include "platform/LayoutUnit.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class LayoutBoxModelObject; 14 class LayoutBoxModelObject;
15 15
16 class LineLayoutBoxModel : public LineLayoutItem { 16 class LineLayoutBoxModel : public LineLayoutItem {
17 public: 17 public:
18 explicit LineLayoutBoxModel(LayoutBoxModelObject* layoutBox) 18 explicit LineLayoutBoxModel(LayoutBoxModelObject* layoutBox)
19 : LineLayoutItem(layoutBox) {} 19 : LineLayoutItem(layoutBox) {}
20 20
21 explicit LineLayoutBoxModel(const LineLayoutItem& item) 21 explicit LineLayoutBoxModel(const LineLayoutItem& item)
22 : LineLayoutItem(item) { 22 : LineLayoutItem(item) {
23 ASSERT_WITH_SECURITY_IMPLICATION(!item || item.isBoxModelObject()); 23 SECURITY_DCHECK(!item || item.isBoxModelObject());
24 } 24 }
25 25
26 explicit LineLayoutBoxModel(std::nullptr_t) : LineLayoutItem(nullptr) {} 26 explicit LineLayoutBoxModel(std::nullptr_t) : LineLayoutItem(nullptr) {}
27 27
28 LineLayoutBoxModel() {} 28 LineLayoutBoxModel() {}
29 29
30 // TODO(dgrogan) Remove. Implement API methods that proxy to the PaintLayer. 30 // TODO(dgrogan) Remove. Implement API methods that proxy to the PaintLayer.
31 PaintLayer* layer() const { return toBoxModel()->layer(); } 31 PaintLayer* layer() const { return toBoxModel()->layer(); }
32 32
33 LayoutUnit lineHeight( 33 LayoutUnit lineHeight(
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 } 135 }
136 }; 136 };
137 137
138 inline LineLayoutBoxModel LineLayoutItem::enclosingBoxModelObject() const { 138 inline LineLayoutBoxModel LineLayoutItem::enclosingBoxModelObject() const {
139 return LineLayoutBoxModel(layoutObject()->enclosingBoxModelObject()); 139 return LineLayoutBoxModel(layoutObject()->enclosingBoxModelObject());
140 } 140 }
141 141
142 } // namespace blink 142 } // namespace blink
143 143
144 #endif // LineLayoutBoxModel_h 144 #endif // LineLayoutBoxModel_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698