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, 2006, 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2006, 2007 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 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 { | 1069 { |
1070 if (!m_rareData) | 1070 if (!m_rareData) |
1071 m_rareData = wrapUnique(new LayoutBoxRareData()); | 1071 m_rareData = wrapUnique(new LayoutBoxRareData()); |
1072 return *m_rareData.get(); | 1072 return *m_rareData.get(); |
1073 } | 1073 } |
1074 | 1074 |
1075 bool logicalHeightComputesAsNone(SizeType) const; | 1075 bool logicalHeightComputesAsNone(SizeType) const; |
1076 | 1076 |
1077 bool isBox() const = delete; // This will catch anyone doing an unnecessary
check. | 1077 bool isBox() const = delete; // This will catch anyone doing an unnecessary
check. |
1078 | 1078 |
1079 void frameRectChanged() | 1079 void frameRectChanged(); |
1080 { | |
1081 // The frame rect may change because of layout of other objects. | |
1082 // Should check this object for paint invalidation. | |
1083 if (!needsLayout()) | |
1084 setMayNeedPaintInvalidation(); | |
1085 } | |
1086 | 1080 |
1087 virtual bool isInSelfHitTestingPhase(HitTestAction hitTestAction) const { re
turn hitTestAction == HitTestForeground; } | 1081 virtual bool isInSelfHitTestingPhase(HitTestAction hitTestAction) const { re
turn hitTestAction == HitTestForeground; } |
1088 | 1082 |
1089 void updateBackgroundAttachmentFixedStatusAfterStyleChange(); | 1083 void updateBackgroundAttachmentFixedStatusAfterStyleChange(); |
1090 | 1084 |
1091 // The CSS border box rect for this box. | 1085 // The CSS border box rect for this box. |
1092 // | 1086 // |
1093 // The rectangle is in this box's physical coordinates but with a | 1087 // The rectangle is in this box's physical coordinates but with a |
1094 // flipped block-flow direction (see the COORDINATE SYSTEMS section | 1088 // flipped block-flow direction (see the COORDINATE SYSTEMS section |
1095 // in LayoutBoxModelObject). The location is the distance from this | 1089 // in LayoutBoxModelObject). The location is the distance from this |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1220 || breakValue == BreakLeft | 1214 || breakValue == BreakLeft |
1221 || breakValue == BreakPage | 1215 || breakValue == BreakPage |
1222 || breakValue == BreakRecto | 1216 || breakValue == BreakRecto |
1223 || breakValue == BreakRight | 1217 || breakValue == BreakRight |
1224 || breakValue == BreakVerso; | 1218 || breakValue == BreakVerso; |
1225 } | 1219 } |
1226 | 1220 |
1227 } // namespace blink | 1221 } // namespace blink |
1228 | 1222 |
1229 #endif // LayoutBox_h | 1223 #endif // LayoutBox_h |
OLD | NEW |