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 19 matching lines...) Expand all Loading... |
30 #include "wtf/allocator/Partitions.h" | 30 #include "wtf/allocator/Partitions.h" |
31 | 31 |
32 #ifndef NDEBUG | 32 #ifndef NDEBUG |
33 #include <stdio.h> | 33 #include <stdio.h> |
34 #endif | 34 #endif |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 class LayoutObject; | 38 class LayoutObject; |
39 | 39 |
40 struct SameSizeAsInlineBox { | 40 struct SameSizeAsInlineBox : DisplayItemClient { |
41 virtual ~SameSizeAsInlineBox() { } | 41 virtual ~SameSizeAsInlineBox() { } |
| 42 uint32_t bitfields; |
42 void* a[4]; | 43 void* a[4]; |
43 LayoutPoint b; | 44 LayoutPoint b; |
44 LayoutUnit c; | 45 LayoutUnit c; |
45 uint32_t d : 32; | |
46 DisplayItemCacheGeneration cacheGeneration; | |
47 #if ENABLE(ASSERT) | 46 #if ENABLE(ASSERT) |
48 bool f; | 47 bool f; |
49 #endif | 48 #endif |
50 }; | 49 }; |
51 | 50 |
52 static_assert(sizeof(InlineBox) == sizeof(SameSizeAsInlineBox), "InlineBox shoul
d stay small"); | 51 static_assert(sizeof(InlineBox) == sizeof(SameSizeAsInlineBox), "InlineBox shoul
d stay small"); |
53 | 52 |
54 #if ENABLE(ASSERT) | 53 #if ENABLE(ASSERT) |
55 | 54 |
56 InlineBox::~InlineBox() | 55 InlineBox::~InlineBox() |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 | 423 |
425 void showLineTree(const blink::InlineBox* b) | 424 void showLineTree(const blink::InlineBox* b) |
426 { | 425 { |
427 if (b) | 426 if (b) |
428 b->showLineTreeForThis(); | 427 b->showLineTreeForThis(); |
429 else | 428 else |
430 fprintf(stderr, "Cannot showLineTree for (nil) InlineBox.\n"); | 429 fprintf(stderr, "Cannot showLineTree for (nil) InlineBox.\n"); |
431 } | 430 } |
432 | 431 |
433 #endif | 432 #endif |
OLD | NEW |