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

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

Issue 2513893002: Make ifdefs consistent in WebKit/Source/core/ (Closed)
Patch Set: Limited fix to /core/ only. 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 LineLayoutBox_h 5 #ifndef LineLayoutBox_h
6 #define LineLayoutBox_h 6 #define LineLayoutBox_h
7 7
8 #include "core/layout/LayoutBlockFlow.h" 8 #include "core/layout/LayoutBlockFlow.h"
9 #include "core/layout/LayoutBox.h" 9 #include "core/layout/LayoutBox.h"
10 #include "core/layout/api/LineLayoutBoxModel.h" 10 #include "core/layout/api/LineLayoutBoxModel.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 } 95 }
96 96
97 InlineBox* createInlineBox() { return toBox()->createInlineBox(); } 97 InlineBox* createInlineBox() { return toBox()->createInlineBox(); }
98 98
99 InlineBox* inlineBoxWrapper() const { return toBox()->inlineBoxWrapper(); } 99 InlineBox* inlineBoxWrapper() const { return toBox()->inlineBoxWrapper(); }
100 100
101 void setInlineBoxWrapper(InlineBox* box) { 101 void setInlineBoxWrapper(InlineBox* box) {
102 return toBox()->setInlineBoxWrapper(box); 102 return toBox()->setInlineBoxWrapper(box);
103 } 103 }
104 104
105 #ifndef NDEBUG 105 #if DCHECK_IS_ON()
106 106
107 void showLineTreeAndMark(const InlineBox* markedBox1, 107 void showLineTreeAndMark(const InlineBox* markedBox1,
108 const char* markedLabel1) const { 108 const char* markedLabel1) const {
109 if (layoutObject()->isLayoutBlockFlow()) 109 if (layoutObject()->isLayoutBlockFlow())
110 toLayoutBlockFlow(layoutObject()) 110 toLayoutBlockFlow(layoutObject())
111 ->showLineTreeAndMark(markedBox1, markedLabel1); 111 ->showLineTreeAndMark(markedBox1, markedLabel1);
112 } 112 }
113 113
114 #endif 114 #endif
115 115
116 private: 116 private:
117 LayoutBox* toBox() { return toLayoutBox(layoutObject()); } 117 LayoutBox* toBox() { return toLayoutBox(layoutObject()); }
118 118
119 const LayoutBox* toBox() const { return toLayoutBox(layoutObject()); } 119 const LayoutBox* toBox() const { return toLayoutBox(layoutObject()); }
120 }; 120 };
121 121
122 inline LineLayoutBox LineLayoutItem::containingBlock() const { 122 inline LineLayoutBox LineLayoutItem::containingBlock() const {
123 return LineLayoutBox(layoutObject()->containingBlock()); 123 return LineLayoutBox(layoutObject()->containingBlock());
124 } 124 }
125 125
126 } // namespace blink 126 } // namespace blink
127 127
128 #endif // LineLayoutBox_h 128 #endif // LineLayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698