OLD | NEW |
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 22 matching lines...) Expand all Loading... |
33 #endif | 33 #endif |
34 | 34 |
35 namespace WebCore { | 35 namespace WebCore { |
36 | 36 |
37 struct SameSizeAsInlineBox { | 37 struct SameSizeAsInlineBox { |
38 virtual ~SameSizeAsInlineBox() { } | 38 virtual ~SameSizeAsInlineBox() { } |
39 void* a[4]; | 39 void* a[4]; |
40 FloatPoint b; | 40 FloatPoint b; |
41 float c; | 41 float c; |
42 uint32_t d : 32; | 42 uint32_t d : 32; |
43 #ifndef NDEBUG | 43 #if ENABLE(ASSERT) |
44 bool f; | 44 bool f; |
45 #endif | 45 #endif |
46 }; | 46 }; |
47 | 47 |
48 COMPILE_ASSERT(sizeof(InlineBox) == sizeof(SameSizeAsInlineBox), InlineBox_size_
guard); | 48 COMPILE_ASSERT(sizeof(InlineBox) == sizeof(SameSizeAsInlineBox), InlineBox_size_
guard); |
49 | 49 |
50 #ifndef NDEBUG | 50 #if ENABLE(ASSERT) |
51 | 51 |
52 InlineBox::~InlineBox() | 52 InlineBox::~InlineBox() |
53 { | 53 { |
54 if (!m_hasBadParent && m_parent) | 54 if (!m_hasBadParent && m_parent) |
55 m_parent->setHasBadChildList(); | 55 m_parent->setHasBadChildList(); |
56 } | 56 } |
57 | 57 |
58 #endif | 58 #endif |
59 | 59 |
60 void InlineBox::remove(MarkLineBoxes markLineBoxes) | 60 void InlineBox::remove(MarkLineBoxes markLineBoxes) |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 b->showTreeForThis(); | 361 b->showTreeForThis(); |
362 } | 362 } |
363 | 363 |
364 void showLineTree(const WebCore::InlineBox* b) | 364 void showLineTree(const WebCore::InlineBox* b) |
365 { | 365 { |
366 if (b) | 366 if (b) |
367 b->showLineTreeForThis(); | 367 b->showLineTreeForThis(); |
368 } | 368 } |
369 | 369 |
370 #endif | 370 #endif |
OLD | NEW |