OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "core/layout/api/LineLayoutBoxModel.h" | 35 #include "core/layout/api/LineLayoutBoxModel.h" |
36 #include "core/layout/line/InlineTextBox.h" | 36 #include "core/layout/line/InlineTextBox.h" |
37 #include "core/paint/BoxPainter.h" | 37 #include "core/paint/BoxPainter.h" |
38 #include "core/paint/DeprecatedPaintLayer.h" | 38 #include "core/paint/DeprecatedPaintLayer.h" |
39 #include "core/paint/InlinePainter.h" | 39 #include "core/paint/InlinePainter.h" |
40 #include "core/paint/ObjectPainter.h" | 40 #include "core/paint/ObjectPainter.h" |
41 #include "core/style/StyleInheritedData.h" | 41 #include "core/style/StyleInheritedData.h" |
42 #include "platform/geometry/FloatQuad.h" | 42 #include "platform/geometry/FloatQuad.h" |
43 #include "platform/geometry/Region.h" | 43 #include "platform/geometry/Region.h" |
44 #include "platform/geometry/TransformState.h" | 44 #include "platform/geometry/TransformState.h" |
| 45 #include "wtf/SizeAssertions.h" |
45 | 46 |
46 namespace blink { | 47 namespace blink { |
47 | 48 |
48 struct SameSizeAsLayoutInline : public LayoutBoxModelObject { | 49 ASSERT_SIZE(LayoutInline, sizeof(LayoutBoxModelObject) + 16, sizeof(LayoutBoxMod
elObject) + 32); |
49 virtual ~SameSizeAsLayoutInline() { } | |
50 LayoutObjectChildList m_children; | |
51 LineBoxList m_lineBoxes; | |
52 }; | |
53 | |
54 static_assert(sizeof(LayoutInline) == sizeof(SameSizeAsLayoutInline), "LayoutInl
ine should stay small"); | |
55 | 50 |
56 LayoutInline::LayoutInline(Element* element) | 51 LayoutInline::LayoutInline(Element* element) |
57 : LayoutBoxModelObject(element) | 52 : LayoutBoxModelObject(element) |
58 { | 53 { |
59 setChildrenInline(true); | 54 setChildrenInline(true); |
60 } | 55 } |
61 | 56 |
62 LayoutInline* LayoutInline::createAnonymous(Document* document) | 57 LayoutInline* LayoutInline::createAnonymous(Document* document) |
63 { | 58 { |
64 LayoutInline* layoutObject = new LayoutInline(nullptr); | 59 LayoutInline* layoutObject = new LayoutInline(nullptr); |
(...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1415 } | 1410 } |
1416 | 1411 |
1417 void LayoutInline::invalidateDisplayItemClients(const LayoutBoxModelObject& pain
tInvalidationContainer) const | 1412 void LayoutInline::invalidateDisplayItemClients(const LayoutBoxModelObject& pain
tInvalidationContainer) const |
1418 { | 1413 { |
1419 LayoutBoxModelObject::invalidateDisplayItemClients(paintInvalidationContaine
r); | 1414 LayoutBoxModelObject::invalidateDisplayItemClients(paintInvalidationContaine
r); |
1420 for (InlineFlowBox* box = firstLineBox(); box; box = box->nextLineBox()) | 1415 for (InlineFlowBox* box = firstLineBox(); box; box = box->nextLineBox()) |
1421 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*box); | 1416 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*box); |
1422 } | 1417 } |
1423 | 1418 |
1424 } // namespace blink | 1419 } // namespace blink |
OLD | NEW |