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

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

Issue 2518363003: Refactor InlineBox::calculateBoundaries() (Closed)
Patch Set: Rebase Created 4 years 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, 2009, 2010, 2011 Apple Inc. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 virtual LayoutUnit virtualLogicalHeight() const { 162 virtual LayoutUnit virtualLogicalHeight() const {
163 ASSERT_NOT_REACHED(); 163 ASSERT_NOT_REACHED();
164 return LayoutUnit(); 164 return LayoutUnit();
165 } 165 }
166 166
167 bool isHorizontal() const { return m_bitfields.isHorizontal(); } 167 bool isHorizontal() const { return m_bitfields.isHorizontal(); }
168 void setIsHorizontal(bool isHorizontal) { 168 void setIsHorizontal(bool isHorizontal) {
169 m_bitfields.setIsHorizontal(isHorizontal); 169 m_bitfields.setIsHorizontal(isHorizontal);
170 } 170 }
171 171
172 virtual LayoutRect calculateBoundaries() const {
173 ASSERT_NOT_REACHED();
174 return LayoutRect();
175 }
176
177 bool isConstructed() { return m_bitfields.constructed(); } 172 bool isConstructed() { return m_bitfields.constructed(); }
178 virtual void setConstructed() { m_bitfields.setConstructed(true); } 173 virtual void setConstructed() { m_bitfields.setConstructed(true); }
179 174
180 void setExtracted(bool extracted = true) { 175 void setExtracted(bool extracted = true) {
181 m_bitfields.setExtracted(extracted); 176 m_bitfields.setExtracted(extracted);
182 } 177 }
183 178
184 void setFirstLineStyleBit(bool firstLine) { 179 void setFirstLineStyleBit(bool firstLine) {
185 m_bitfields.setFirstLine(firstLine); 180 m_bitfields.setFirstLine(firstLine);
186 } 181 }
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 571
577 } // namespace blink 572 } // namespace blink
578 573
579 #ifndef NDEBUG 574 #ifndef NDEBUG
580 // Outside the WebCore namespace for ease of invocation from gdb. 575 // Outside the WebCore namespace for ease of invocation from gdb.
581 void showTree(const blink::InlineBox*); 576 void showTree(const blink::InlineBox*);
582 void showLineTree(const blink::InlineBox*); 577 void showLineTree(const blink::InlineBox*);
583 #endif 578 #endif
584 579
585 #endif // InlineBox_h 580 #endif // InlineBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698