OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) | 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. 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, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 FloatSize floatSize; | 50 FloatSize floatSize; |
51 Length lengths; | 51 Length lengths; |
52 | 52 |
53 StyleColor styleColors[8]; | 53 StyleColor styleColors[8]; |
54 | 54 |
55 Vector<String> m_callbackSelectors; | 55 Vector<String> m_callbackSelectors; |
56 | 56 |
57 StyleContentAlignmentData contentAlignmentData[2]; | 57 StyleContentAlignmentData contentAlignmentData[2]; |
58 StyleSelfAlignmentData selfAlignmentData[4]; | 58 StyleSelfAlignmentData selfAlignmentData[4]; |
59 | 59 |
60 unsigned m_bitFields[2]; | 60 unsigned m_bitFields[3]; |
61 }; | 61 }; |
62 | 62 |
63 static_assert(sizeof(StyleRareNonInheritedData) == sizeof(SameSizeStyleRareNonIn
heritedData), "StyleRareNonInheritedData_should_stay_small"); | 63 static_assert(sizeof(StyleRareNonInheritedData) == sizeof(SameSizeStyleRareNonIn
heritedData), "StyleRareNonInheritedData_should_stay_small"); |
64 | 64 |
65 StyleRareNonInheritedData::StyleRareNonInheritedData() | 65 StyleRareNonInheritedData::StyleRareNonInheritedData() |
66 : opacity(ComputedStyle::initialOpacity()) | 66 : opacity(ComputedStyle::initialOpacity()) |
67 , m_perspective(ComputedStyle::initialPerspective()) | 67 , m_perspective(ComputedStyle::initialPerspective()) |
68 , m_shapeImageThreshold(ComputedStyle::initialShapeImageThreshold()) | 68 , m_shapeImageThreshold(ComputedStyle::initialShapeImageThreshold()) |
69 , m_order(ComputedStyle::initialOrder()) | 69 , m_order(ComputedStyle::initialOrder()) |
70 , m_perspectiveOrigin(ComputedStyle::initialPerspectiveOrigin()) | 70 , m_perspectiveOrigin(ComputedStyle::initialPerspectiveOrigin()) |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 , m_isolation(ComputedStyle::initialIsolation()) | 115 , m_isolation(ComputedStyle::initialIsolation()) |
116 , m_contain(ComputedStyle::initialContain()) | 116 , m_contain(ComputedStyle::initialContain()) |
117 , m_scrollBehavior(ComputedStyle::initialScrollBehavior()) | 117 , m_scrollBehavior(ComputedStyle::initialScrollBehavior()) |
118 , m_scrollSnapType(ComputedStyle::initialScrollSnapType()) | 118 , m_scrollSnapType(ComputedStyle::initialScrollSnapType()) |
119 , m_requiresAcceleratedCompositingForExternalReasons(false) | 119 , m_requiresAcceleratedCompositingForExternalReasons(false) |
120 , m_hasInlineTransform(false) | 120 , m_hasInlineTransform(false) |
121 , m_resize(ComputedStyle::initialResize()) | 121 , m_resize(ComputedStyle::initialResize()) |
122 , m_hasCompositorProxy(false) | 122 , m_hasCompositorProxy(false) |
123 , m_hasAuthorBackground(false) | 123 , m_hasAuthorBackground(false) |
124 , m_hasAuthorBorder(false) | 124 , m_hasAuthorBorder(false) |
| 125 , m_snapWidth(0) |
125 { | 126 { |
126 m_maskBoxImage.setMaskDefaults(); | 127 m_maskBoxImage.setMaskDefaults(); |
127 } | 128 } |
128 | 129 |
129 StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInherited
Data& o) | 130 StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInherited
Data& o) |
130 : RefCounted<StyleRareNonInheritedData>() | 131 : RefCounted<StyleRareNonInheritedData>() |
131 , opacity(o.opacity) | 132 , opacity(o.opacity) |
132 , m_perspective(o.m_perspective) | 133 , m_perspective(o.m_perspective) |
133 , m_shapeImageThreshold(o.m_shapeImageThreshold) | 134 , m_shapeImageThreshold(o.m_shapeImageThreshold) |
134 , m_order(o.m_order) | 135 , m_order(o.m_order) |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 , m_isolation(o.m_isolation) | 198 , m_isolation(o.m_isolation) |
198 , m_contain(o.m_contain) | 199 , m_contain(o.m_contain) |
199 , m_scrollBehavior(o.m_scrollBehavior) | 200 , m_scrollBehavior(o.m_scrollBehavior) |
200 , m_scrollSnapType(o.m_scrollSnapType) | 201 , m_scrollSnapType(o.m_scrollSnapType) |
201 , m_requiresAcceleratedCompositingForExternalReasons(o.m_requiresAccelerated
CompositingForExternalReasons) | 202 , m_requiresAcceleratedCompositingForExternalReasons(o.m_requiresAccelerated
CompositingForExternalReasons) |
202 , m_hasInlineTransform(o.m_hasInlineTransform) | 203 , m_hasInlineTransform(o.m_hasInlineTransform) |
203 , m_resize(o.m_resize) | 204 , m_resize(o.m_resize) |
204 , m_hasCompositorProxy(o.m_hasCompositorProxy) | 205 , m_hasCompositorProxy(o.m_hasCompositorProxy) |
205 , m_hasAuthorBackground(o.m_hasAuthorBackground) | 206 , m_hasAuthorBackground(o.m_hasAuthorBackground) |
206 , m_hasAuthorBorder(o.m_hasAuthorBorder) | 207 , m_hasAuthorBorder(o.m_hasAuthorBorder) |
| 208 , m_snapWidth(o.m_snapWidth) |
207 { | 209 { |
208 } | 210 } |
209 | 211 |
210 StyleRareNonInheritedData::~StyleRareNonInheritedData() | 212 StyleRareNonInheritedData::~StyleRareNonInheritedData() |
211 { | 213 { |
212 } | 214 } |
213 | 215 |
214 bool StyleRareNonInheritedData::operator==(const StyleRareNonInheritedData& o) c
onst | 216 bool StyleRareNonInheritedData::operator==(const StyleRareNonInheritedData& o) c
onst |
215 { | 217 { |
216 return opacity == o.opacity | 218 return opacity == o.opacity |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 && m_objectFit == o.m_objectFit | 280 && m_objectFit == o.m_objectFit |
279 && m_isolation == o.m_isolation | 281 && m_isolation == o.m_isolation |
280 && m_contain == o.m_contain | 282 && m_contain == o.m_contain |
281 && m_scrollBehavior == o.m_scrollBehavior | 283 && m_scrollBehavior == o.m_scrollBehavior |
282 && m_scrollSnapType == o.m_scrollSnapType | 284 && m_scrollSnapType == o.m_scrollSnapType |
283 && m_requiresAcceleratedCompositingForExternalReasons == o.m_requiresAcc
eleratedCompositingForExternalReasons | 285 && m_requiresAcceleratedCompositingForExternalReasons == o.m_requiresAcc
eleratedCompositingForExternalReasons |
284 && m_hasInlineTransform == o.m_hasInlineTransform | 286 && m_hasInlineTransform == o.m_hasInlineTransform |
285 && m_resize == o.m_resize | 287 && m_resize == o.m_resize |
286 && m_hasCompositorProxy == o.m_hasCompositorProxy | 288 && m_hasCompositorProxy == o.m_hasCompositorProxy |
287 && m_hasAuthorBackground == o.m_hasAuthorBackground | 289 && m_hasAuthorBackground == o.m_hasAuthorBackground |
288 && m_hasAuthorBorder == o.m_hasAuthorBorder; | 290 && m_hasAuthorBorder == o.m_hasAuthorBorder |
| 291 && m_snapWidth == o.m_snapWidth; |
289 } | 292 } |
290 | 293 |
291 bool StyleRareNonInheritedData::contentDataEquivalent(const StyleRareNonInherite
dData& o) const | 294 bool StyleRareNonInheritedData::contentDataEquivalent(const StyleRareNonInherite
dData& o) const |
292 { | 295 { |
293 ContentData* a = m_content.get(); | 296 ContentData* a = m_content.get(); |
294 ContentData* b = o.m_content.get(); | 297 ContentData* b = o.m_content.get(); |
295 | 298 |
296 while (a && b && *a == *b) { | 299 while (a && b && *a == *b) { |
297 a = a->next(); | 300 a = a->next(); |
298 b = b->next(); | 301 b = b->next(); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 { | 351 { |
349 return dataEquivalent(m_shapeOutside, o.m_shapeOutside); | 352 return dataEquivalent(m_shapeOutside, o.m_shapeOutside); |
350 } | 353 } |
351 | 354 |
352 bool StyleRareNonInheritedData::clipPathDataEquivalent(const StyleRareNonInherit
edData& o) const | 355 bool StyleRareNonInheritedData::clipPathDataEquivalent(const StyleRareNonInherit
edData& o) const |
353 { | 356 { |
354 return dataEquivalent(m_clipPath, o.m_clipPath); | 357 return dataEquivalent(m_clipPath, o.m_clipPath); |
355 } | 358 } |
356 | 359 |
357 } // namespace blink | 360 } // namespace blink |
OLD | NEW |