| 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 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 #include "core/layout/HitTestLocation.h" | 23 #include "core/layout/HitTestLocation.h" |
| 24 #include "core/layout/LayoutBlockFlow.h" | 24 #include "core/layout/LayoutBlockFlow.h" |
| 25 #include "core/layout/LayoutObject.h" | 25 #include "core/layout/LayoutObject.h" |
| 26 #include "core/layout/line/InlineFlowBox.h" | 26 #include "core/layout/line/InlineFlowBox.h" |
| 27 #include "core/layout/line/RootInlineBox.h" | 27 #include "core/layout/line/RootInlineBox.h" |
| 28 #include "core/paint/BlockPainter.h" | 28 #include "core/paint/BlockPainter.h" |
| 29 #include "core/paint/PaintInfo.h" | 29 #include "core/paint/PaintInfo.h" |
| 30 #include "platform/fonts/FontMetrics.h" | 30 #include "platform/fonts/FontMetrics.h" |
| 31 #include "wtf/Partitions.h" | 31 #include "wtf/Partitions.h" |
| 32 #include "wtf/SizeAssertions.h" |
| 32 | 33 |
| 33 #ifndef NDEBUG | 34 #ifndef NDEBUG |
| 34 #include <stdio.h> | 35 #include <stdio.h> |
| 35 #endif | 36 #endif |
| 36 | 37 |
| 37 namespace blink { | 38 namespace blink { |
| 38 | 39 |
| 39 struct SameSizeAsInlineBox { | 40 ASSERT_SIZE(InlineBox, 36, 56); |
| 40 virtual ~SameSizeAsInlineBox() { } | |
| 41 void* a[4]; | |
| 42 LayoutPoint b; | |
| 43 LayoutUnit c; | |
| 44 uint32_t d : 32; | |
| 45 #if ENABLE(ASSERT) | |
| 46 bool f; | |
| 47 #endif | |
| 48 }; | |
| 49 | |
| 50 static_assert(sizeof(InlineBox) == sizeof(SameSizeAsInlineBox), "InlineBox shoul
d stay small"); | |
| 51 | 41 |
| 52 #if ENABLE(ASSERT) | 42 #if ENABLE(ASSERT) |
| 53 | 43 |
| 54 InlineBox::~InlineBox() | 44 InlineBox::~InlineBox() |
| 55 { | 45 { |
| 56 if (!m_hasBadParent && m_parent) | 46 if (!m_hasBadParent && m_parent) |
| 57 m_parent->setHasBadChildList(); | 47 m_parent->setHasBadChildList(); |
| 58 } | 48 } |
| 59 | 49 |
| 60 #endif | 50 #endif |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 | 385 |
| 396 void showLineTree(const blink::InlineBox* b) | 386 void showLineTree(const blink::InlineBox* b) |
| 397 { | 387 { |
| 398 if (b) | 388 if (b) |
| 399 b->showLineTreeForThis(); | 389 b->showLineTreeForThis(); |
| 400 else | 390 else |
| 401 fprintf(stderr, "Cannot showLineTree for (nil) InlineBox.\n"); | 391 fprintf(stderr, "Cannot showLineTree for (nil) InlineBox.\n"); |
| 402 } | 392 } |
| 403 | 393 |
| 404 #endif | 394 #endif |
| OLD | NEW |