OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. |
3 * All rights reserved. | 3 * All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 */ | 19 */ |
20 | 20 |
21 #include "core/layout/line/InlineFlowBox.h" | 21 #include "core/layout/line/InlineFlowBox.h" |
22 | 22 |
| 23 #include <math.h> |
| 24 #include <algorithm> |
23 #include "core/CSSPropertyNames.h" | 25 #include "core/CSSPropertyNames.h" |
24 #include "core/dom/Document.h" | 26 #include "core/dom/Document.h" |
25 #include "core/layout/HitTestResult.h" | 27 #include "core/layout/HitTestResult.h" |
26 #include "core/layout/api/LineLayoutAPIShim.h" | 28 #include "core/layout/api/LineLayoutAPIShim.h" |
27 #include "core/layout/api/LineLayoutBox.h" | 29 #include "core/layout/api/LineLayoutBox.h" |
28 #include "core/layout/api/LineLayoutInline.h" | 30 #include "core/layout/api/LineLayoutInline.h" |
29 #include "core/layout/api/LineLayoutListMarker.h" | 31 #include "core/layout/api/LineLayoutListMarker.h" |
30 #include "core/layout/api/LineLayoutRubyBase.h" | 32 #include "core/layout/api/LineLayoutRubyBase.h" |
31 #include "core/layout/api/LineLayoutRubyRun.h" | 33 #include "core/layout/api/LineLayoutRubyRun.h" |
32 #include "core/layout/api/LineLayoutRubyText.h" | 34 #include "core/layout/api/LineLayoutRubyText.h" |
33 #include "core/layout/line/GlyphOverflow.h" | 35 #include "core/layout/line/GlyphOverflow.h" |
34 #include "core/layout/line/InlineTextBox.h" | 36 #include "core/layout/line/InlineTextBox.h" |
35 #include "core/layout/line/RootInlineBox.h" | 37 #include "core/layout/line/RootInlineBox.h" |
36 #include "core/paint/BoxPainter.h" | 38 #include "core/paint/BoxPainter.h" |
37 #include "core/paint/InlineFlowBoxPainter.h" | 39 #include "core/paint/InlineFlowBoxPainter.h" |
38 #include "core/style/ShadowList.h" | 40 #include "core/style/ShadowList.h" |
39 #include "platform/fonts/Font.h" | 41 #include "platform/fonts/Font.h" |
40 #include "wtf/PtrUtil.h" | 42 #include "wtf/PtrUtil.h" |
41 #include <algorithm> | |
42 #include <math.h> | |
43 | 43 |
44 namespace blink { | 44 namespace blink { |
45 | 45 |
46 struct SameSizeAsInlineFlowBox : public InlineBox { | 46 struct SameSizeAsInlineFlowBox : public InlineBox { |
47 void* pointers[5]; | 47 void* pointers[5]; |
48 uint32_t bitfields : 23; | 48 uint32_t bitfields : 23; |
49 }; | 49 }; |
50 | 50 |
51 static_assert(sizeof(InlineFlowBox) == sizeof(SameSizeAsInlineFlowBox), | 51 static_assert(sizeof(InlineFlowBox) == sizeof(SameSizeAsInlineFlowBox), |
52 "InlineFlowBox should stay small"); | 52 "InlineFlowBox should stay small"); |
(...skipping 1636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1689 ASSERT(child->prevOnLine() == prev); | 1689 ASSERT(child->prevOnLine() == prev); |
1690 prev = child; | 1690 prev = child; |
1691 } | 1691 } |
1692 ASSERT(prev == m_lastChild); | 1692 ASSERT(prev == m_lastChild); |
1693 #endif | 1693 #endif |
1694 } | 1694 } |
1695 | 1695 |
1696 #endif | 1696 #endif |
1697 | 1697 |
1698 } // namespace blink | 1698 } // namespace blink |
OLD | NEW |