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

Side by Side Diff: third_party/WebKit/Source/core/layout/api/LineLayoutRubyRun.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 LineLayoutRubyRun_h 5 #ifndef LineLayoutRubyRun_h
6 #define LineLayoutRubyRun_h 6 #define LineLayoutRubyRun_h
7 7
8 #include "core/layout/LayoutRubyRun.h" 8 #include "core/layout/LayoutRubyRun.h"
9 #include "core/layout/api/LineLayoutBlockFlow.h" 9 #include "core/layout/api/LineLayoutBlockFlow.h"
10 #include "core/layout/api/LineLayoutRubyBase.h" 10 #include "core/layout/api/LineLayoutRubyBase.h"
11 #include "core/layout/api/LineLayoutRubyText.h" 11 #include "core/layout/api/LineLayoutRubyText.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class LineLayoutRubyRun : public LineLayoutBlockFlow { 15 class LineLayoutRubyRun : public LineLayoutBlockFlow {
16 public: 16 public:
17 explicit LineLayoutRubyRun(LayoutRubyRun* layoutRubyRun) 17 explicit LineLayoutRubyRun(LayoutRubyRun* layoutRubyRun)
18 : LineLayoutBlockFlow(layoutRubyRun) {} 18 : LineLayoutBlockFlow(layoutRubyRun) {}
19 19
20 explicit LineLayoutRubyRun(const LineLayoutItem& item) 20 explicit LineLayoutRubyRun(const LineLayoutItem& item)
21 : LineLayoutBlockFlow(item) { 21 : LineLayoutBlockFlow(item) {
22 ASSERT_WITH_SECURITY_IMPLICATION(!item || item.isRubyRun()); 22 SECURITY_DCHECK(!item || item.isRubyRun());
23 } 23 }
24 24
25 explicit LineLayoutRubyRun(std::nullptr_t) : LineLayoutBlockFlow(nullptr) {} 25 explicit LineLayoutRubyRun(std::nullptr_t) : LineLayoutBlockFlow(nullptr) {}
26 26
27 LineLayoutRubyRun() {} 27 LineLayoutRubyRun() {}
28 28
29 void getOverhang(bool firstLine, 29 void getOverhang(bool firstLine,
30 LineLayoutItem startLayoutItem, 30 LineLayoutItem startLayoutItem,
31 LineLayoutItem endLayoutItem, 31 LineLayoutItem endLayoutItem,
32 int& startOverhang, 32 int& startOverhang,
(...skipping 19 matching lines...) Expand all
52 LayoutRubyRun* toRubyRun() { return toLayoutRubyRun(layoutObject()); } 52 LayoutRubyRun* toRubyRun() { return toLayoutRubyRun(layoutObject()); }
53 53
54 const LayoutRubyRun* toRubyRun() const { 54 const LayoutRubyRun* toRubyRun() const {
55 return toLayoutRubyRun(layoutObject()); 55 return toLayoutRubyRun(layoutObject());
56 } 56 }
57 }; 57 };
58 58
59 } // namespace blink 59 } // namespace blink
60 60
61 #endif // LineLayoutRubyRun_h 61 #endif // LineLayoutRubyRun_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698