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

Side by Side Diff: third_party/WebKit/Source/core/layout/api/LineLayoutSVGInline.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 LineLayoutSVGInline_h 5 #ifndef LineLayoutSVGInline_h
6 #define LineLayoutSVGInline_h 6 #define LineLayoutSVGInline_h
7 7
8 #include "core/layout/api/LineLayoutInline.h" 8 #include "core/layout/api/LineLayoutInline.h"
9 #include "core/layout/svg/LayoutSVGInline.h" 9 #include "core/layout/svg/LayoutSVGInline.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class LineLayoutSVGInline : public LineLayoutInline { 13 class LineLayoutSVGInline : public LineLayoutInline {
14 public: 14 public:
15 explicit LineLayoutSVGInline(LayoutSVGInline* layoutSVGInline) 15 explicit LineLayoutSVGInline(LayoutSVGInline* layoutSVGInline)
16 : LineLayoutInline(layoutSVGInline) {} 16 : LineLayoutInline(layoutSVGInline) {}
17 17
18 explicit LineLayoutSVGInline(const LineLayoutItem& item) 18 explicit LineLayoutSVGInline(const LineLayoutItem& item)
19 : LineLayoutInline(item) { 19 : LineLayoutInline(item) {
20 ASSERT_WITH_SECURITY_IMPLICATION(!item || item.isSVGInline()); 20 SECURITY_DCHECK(!item || item.isSVGInline());
21 } 21 }
22 22
23 explicit LineLayoutSVGInline(std::nullptr_t) : LineLayoutInline(nullptr) {} 23 explicit LineLayoutSVGInline(std::nullptr_t) : LineLayoutInline(nullptr) {}
24 24
25 LineLayoutSVGInline() {} 25 LineLayoutSVGInline() {}
26 26
27 private: 27 private:
28 LayoutSVGInline* toSVGInline() { return toLayoutSVGInline(layoutObject()); } 28 LayoutSVGInline* toSVGInline() { return toLayoutSVGInline(layoutObject()); }
29 29
30 const LayoutSVGInline* toSVGInline() const { 30 const LayoutSVGInline* toSVGInline() const {
31 return toLayoutSVGInline(layoutObject()); 31 return toLayoutSVGInline(layoutObject());
32 } 32 }
33 }; 33 };
34 34
35 } // namespace blink 35 } // namespace blink
36 36
37 #endif // LineLayoutSVGInline_h 37 #endif // LineLayoutSVGInline_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698