| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2008 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 24 matching lines...) Expand all Loading... |
| 35 #include "wtf/unicode/Unicode.h" | 35 #include "wtf/unicode/Unicode.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 struct SameSizeAsRootInlineBox : public InlineFlowBox { | 39 struct SameSizeAsRootInlineBox : public InlineFlowBox { |
| 40 unsigned unsignedVariable; | 40 unsigned unsignedVariable; |
| 41 void* pointers[3]; | 41 void* pointers[3]; |
| 42 LayoutUnit layoutVariables[6]; | 42 LayoutUnit layoutVariables[6]; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 COMPILE_ASSERT(sizeof(RootInlineBox) == sizeof(SameSizeAsRootInlineBox), RootInl
ineBox_should_stay_small); | 45 static_assert(sizeof(RootInlineBox) == sizeof(SameSizeAsRootInlineBox), "RootInl
ineBox should stay small"); |
| 46 | 46 |
| 47 typedef WTF::HashMap<const RootInlineBox*, EllipsisBox*> EllipsisBoxMap; | 47 typedef WTF::HashMap<const RootInlineBox*, EllipsisBox*> EllipsisBoxMap; |
| 48 static EllipsisBoxMap* gEllipsisBoxMap = 0; | 48 static EllipsisBoxMap* gEllipsisBoxMap = 0; |
| 49 | 49 |
| 50 RootInlineBox::RootInlineBox(RenderBlockFlow& block) | 50 RootInlineBox::RootInlineBox(RenderBlockFlow& block) |
| 51 : InlineFlowBox(block) | 51 : InlineFlowBox(block) |
| 52 , m_lineBreakPos(0) | 52 , m_lineBreakPos(0) |
| 53 , m_lineBreakObj(0) | 53 , m_lineBreakObj(0) |
| 54 , m_lineTop(0) | 54 , m_lineTop(0) |
| 55 , m_lineBottom(0) | 55 , m_lineBottom(0) |
| (...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 } | 856 } |
| 857 | 857 |
| 858 #ifndef NDEBUG | 858 #ifndef NDEBUG |
| 859 const char* RootInlineBox::boxName() const | 859 const char* RootInlineBox::boxName() const |
| 860 { | 860 { |
| 861 return "RootInlineBox"; | 861 return "RootInlineBox"; |
| 862 } | 862 } |
| 863 #endif | 863 #endif |
| 864 | 864 |
| 865 } // namespace blink | 865 } // namespace blink |
| OLD | NEW |