OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All r ights reserved. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All r ights 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
264 #if ENABLE(ASSERT) | 264 #if ENABLE(ASSERT) |
265 void setHasBadParent(); | 265 void setHasBadParent(); |
266 #endif | 266 #endif |
267 | 267 |
268 int expansion() const { return m_bitfields.expansion(); } | 268 int expansion() const { return m_bitfields.expansion(); } |
269 | 269 |
270 bool visibleToHitTestRequest(const HitTestRequest& request) const { return l ineLayoutItem().visibleToHitTestRequest(request); } | 270 bool visibleToHitTestRequest(const HitTestRequest& request) const { return l ineLayoutItem().visibleToHitTestRequest(request); } |
271 | 271 |
272 EVerticalAlign verticalAlign() const { return lineLayoutItem().isText() ? Co mputedStyle::initialVerticalAlign() : lineLayoutItem().style(m_bitfields.firstLi ne())->verticalAlign(); } | 272 EVerticalAlign verticalAlign() const { return lineLayoutItem().isText() ? Co mputedStyle::initialVerticalAlign() : lineLayoutItem().style(m_bitfields.firstLi ne())->verticalAlign(); } |
273 | 273 |
274 // TODO(pilgrim) remove this | |
leviw_travelin_and_unemployed
2015/08/26 17:54:04
w00t!
| |
275 LayoutBoxModelObject* deprecatedBoxModelObject() const | |
276 { | |
277 if (!lineLayoutItem().isText()) | |
278 return toLayoutBoxModelObject(&layoutObject()); | |
279 return 0; | |
280 } | |
281 | |
282 // Use with caution! The type is not checked! | 274 // Use with caution! The type is not checked! |
283 LineLayoutBoxModel boxModelObject() const | 275 LineLayoutBoxModel boxModelObject() const |
284 { | 276 { |
285 if (!lineLayoutItem().isText()) | 277 if (!lineLayoutItem().isText()) |
286 return LineLayoutBoxModel(toLayoutBoxModelObject(&layoutObject())); | 278 return LineLayoutBoxModel(toLayoutBoxModelObject(&layoutObject())); |
287 return LineLayoutBoxModel(nullptr); | 279 return LineLayoutBoxModel(nullptr); |
288 } | 280 } |
289 | 281 |
290 LayoutPoint locationIncludingFlipping(); | 282 LayoutPoint locationIncludingFlipping(); |
291 | 283 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
448 | 440 |
449 } // namespace blink | 441 } // namespace blink |
450 | 442 |
451 #ifndef NDEBUG | 443 #ifndef NDEBUG |
452 // Outside the WebCore namespace for ease of invocation from gdb. | 444 // Outside the WebCore namespace for ease of invocation from gdb. |
453 void showTree(const blink::InlineBox*); | 445 void showTree(const blink::InlineBox*); |
454 void showLineTree(const blink::InlineBox*); | 446 void showLineTree(const blink::InlineBox*); |
455 #endif | 447 #endif |
456 | 448 |
457 #endif // InlineBox_h | 449 #endif // InlineBox_h |
OLD | NEW |