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

Side by Side Diff: third_party/WebKit/Source/core/layout/line/InlineBox.cpp

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 /* 1 /*
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 String InlineBox::debugName() const { 95 String InlineBox::debugName() const {
96 return boxName(); 96 return boxName();
97 } 97 }
98 98
99 LayoutRect InlineBox::visualRect() const { 99 LayoutRect InlineBox::visualRect() const {
100 // TODO(chrishtr): tighten these bounds. 100 // TODO(chrishtr): tighten these bounds.
101 return getLineLayoutItem().visualRect(); 101 return getLineLayoutItem().visualRect();
102 } 102 }
103 103
104 #ifndef NDEBUG 104 #if DCHECK_IS_ON()
105 void InlineBox::showTreeForThis() const { 105 void InlineBox::showTreeForThis() const {
106 getLineLayoutItem().showTreeForThis(); 106 getLineLayoutItem().showTreeForThis();
107 } 107 }
108 108
109 void InlineBox::showLineTreeForThis() const { 109 void InlineBox::showLineTreeForThis() const {
110 getLineLayoutItem().containingBlock().showLineTreeAndMark(this, "*"); 110 getLineLayoutItem().containingBlock().showLineTreeAndMark(this, "*");
111 } 111 }
112 112
113 void InlineBox::showLineTreeAndMark(const InlineBox* markedBox1, 113 void InlineBox::showLineTreeAndMark(const InlineBox* markedBox1,
114 const char* markedLabel1, 114 const char* markedLabel1,
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 } 419 }
420 420
421 void showLineTree(const blink::InlineBox* b) { 421 void showLineTree(const blink::InlineBox* b) {
422 if (b) 422 if (b)
423 b->showLineTreeForThis(); 423 b->showLineTreeForThis();
424 else 424 else
425 fprintf(stderr, "Cannot showLineTree for (nil) InlineBox.\n"); 425 fprintf(stderr, "Cannot showLineTree for (nil) InlineBox.\n");
426 } 426 }
427 427
428 #endif 428 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698