| 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 21 matching lines...) Expand all Loading... |
| 32 #include "core/rendering/RenderInline.h" | 32 #include "core/rendering/RenderInline.h" |
| 33 #include "core/rendering/RenderView.h" | 33 #include "core/rendering/RenderView.h" |
| 34 #include "core/rendering/VerticalPositionCache.h" | 34 #include "core/rendering/VerticalPositionCache.h" |
| 35 #include "platform/text/BidiResolver.h" | 35 #include "platform/text/BidiResolver.h" |
| 36 #include "wtf/unicode/Unicode.h" | 36 #include "wtf/unicode/Unicode.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 struct SameSizeAsRootInlineBox : public InlineFlowBox { | 40 struct SameSizeAsRootInlineBox : public InlineFlowBox { |
| 41 unsigned unsignedVariable; | 41 unsigned unsignedVariable; |
| 42 void* pointers[4]; | 42 void* pointers[3]; |
| 43 LayoutUnit layoutVariables[5]; | 43 LayoutUnit layoutVariables[7]; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 COMPILE_ASSERT(sizeof(RootInlineBox) == sizeof(SameSizeAsRootInlineBox), RootInl
ineBox_should_stay_small); | 46 COMPILE_ASSERT(sizeof(RootInlineBox) == sizeof(SameSizeAsRootInlineBox), RootInl
ineBox_should_stay_small); |
| 47 | 47 |
| 48 typedef WTF::HashMap<const RootInlineBox*, EllipsisBox*> EllipsisBoxMap; | 48 typedef WTF::HashMap<const RootInlineBox*, EllipsisBox*> EllipsisBoxMap; |
| 49 static EllipsisBoxMap* gEllipsisBoxMap = 0; | 49 static EllipsisBoxMap* gEllipsisBoxMap = 0; |
| 50 | 50 |
| 51 RootInlineBox::RootInlineBox(RenderBlockFlow& block) | 51 RootInlineBox::RootInlineBox(RenderBlockFlow& block) |
| 52 : InlineFlowBox(block) | 52 : InlineFlowBox(block) |
| 53 , m_lineBreakPos(0) | 53 , m_lineBreakPos(0) |
| 54 , m_lineBreakObj(0) | 54 , m_lineBreakObj(0) |
| 55 , m_lineTop(0) | 55 , m_lineTop(0) |
| 56 , m_lineBottom(0) | 56 , m_lineBottom(0) |
| 57 , m_lineTopWithLeading(0) | 57 , m_lineTopWithLeading(0) |
| 58 , m_lineBottomWithLeading(0) | 58 , m_lineBottomWithLeading(0) |
| 59 , m_selectionBottom(0) | 59 , m_selectionBottom(0) |
| 60 , m_paginationStrut(0) |
| 61 , m_paginatedLineWidth(0) |
| 60 { | 62 { |
| 61 setIsHorizontal(block.isHorizontalWritingMode()); | 63 setIsHorizontal(block.isHorizontalWritingMode()); |
| 62 } | 64 } |
| 63 | 65 |
| 64 | 66 |
| 65 void RootInlineBox::destroy() | 67 void RootInlineBox::destroy() |
| 66 { | 68 { |
| 67 detachEllipsisBox(); | 69 detachEllipsisBox(); |
| 68 InlineFlowBox::destroy(); | 70 InlineFlowBox::destroy(); |
| 69 } | 71 } |
| (...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 858 } | 860 } |
| 859 | 861 |
| 860 #ifndef NDEBUG | 862 #ifndef NDEBUG |
| 861 const char* RootInlineBox::boxName() const | 863 const char* RootInlineBox::boxName() const |
| 862 { | 864 { |
| 863 return "RootInlineBox"; | 865 return "RootInlineBox"; |
| 864 } | 866 } |
| 865 #endif | 867 #endif |
| 866 | 868 |
| 867 } // namespace blink | 869 } // namespace blink |
| OLD | NEW |