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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 StyleSelfAlignmentData self_alignment_data[4]; | 64 StyleSelfAlignmentData self_alignment_data[4]; |
65 | 65 |
66 unsigned bit_fields_[2]; | 66 unsigned bit_fields_[2]; |
67 }; | 67 }; |
68 | 68 |
69 static_assert(sizeof(StyleRareNonInheritedData) == | 69 static_assert(sizeof(StyleRareNonInheritedData) == |
70 sizeof(SameSizeStyleRareNonInheritedData), | 70 sizeof(SameSizeStyleRareNonInheritedData), |
71 "StyleRareNonInheritedData_should_stay_small"); | 71 "StyleRareNonInheritedData_should_stay_small"); |
72 | 72 |
73 StyleRareNonInheritedData::StyleRareNonInheritedData() | 73 StyleRareNonInheritedData::StyleRareNonInheritedData() |
74 : opacity(ComputedStyle::InitialOpacity()), | 74 : opacity_(ComputedStyle::InitialOpacity()), |
75 perspective_(ComputedStyle::InitialPerspective()), | 75 perspective_(ComputedStyle::InitialPerspective()), |
76 shape_image_threshold_(ComputedStyle::InitialShapeImageThreshold()), | 76 shape_image_threshold_(ComputedStyle::InitialShapeImageThreshold()), |
77 order_(ComputedStyle::InitialOrder()), | 77 order_(ComputedStyle::InitialOrder()), |
78 perspective_origin_(ComputedStyle::InitialPerspectiveOrigin()), | 78 perspective_origin_(ComputedStyle::InitialPerspectiveOrigin()), |
79 object_position_(ComputedStyle::InitialObjectPosition()), | 79 object_position_(ComputedStyle::InitialObjectPosition()), |
80 line_clamp(ComputedStyle::InitialLineClamp()), | 80 line_clamp_(ComputedStyle::InitialLineClamp()), |
81 draggable_region_mode_(static_cast<unsigned>(kDraggableRegionNone)), | 81 draggable_region_mode_(static_cast<unsigned>(kDraggableRegionNone)), |
82 shape_outside_(ComputedStyle::InitialShapeOutside()), | 82 shape_outside_(ComputedStyle::InitialShapeOutside()), |
83 clip_path_(ComputedStyle::InitialClipPath()), | 83 clip_path_(ComputedStyle::InitialClipPath()), |
84 mask_(kMaskFillLayer, true), | 84 mask_(kMaskFillLayer, true), |
85 mask_box_image_(NinePieceImage::MaskDefaults()), | 85 mask_box_image_(NinePieceImage::MaskDefaults()), |
86 page_size_(), | 86 page_size_(), |
87 shape_margin_(ComputedStyle::InitialShapeMargin()), | 87 shape_margin_(ComputedStyle::InitialShapeMargin()), |
88 text_decoration_color_(StyleColor::CurrentColor()), | 88 text_decoration_color_(StyleColor::CurrentColor()), |
89 visited_link_text_decoration_color_(StyleColor::CurrentColor()), | 89 visited_link_text_decoration_color_(StyleColor::CurrentColor()), |
90 visited_link_background_color_(ComputedStyle::InitialBackgroundColor()), | 90 visited_link_background_color_(ComputedStyle::InitialBackgroundColor()), |
91 visited_link_outline_color_(StyleColor::CurrentColor()), | 91 visited_link_outline_color_(StyleColor::CurrentColor()), |
92 visited_link_border_left_color_(StyleColor::CurrentColor()), | 92 visited_link_border_left_color_(StyleColor::CurrentColor()), |
93 visited_link_border_right_color_(StyleColor::CurrentColor()), | 93 visited_link_border_right_color_(StyleColor::CurrentColor()), |
94 visited_link_border_top_color_(StyleColor::CurrentColor()), | 94 visited_link_border_top_color_(StyleColor::CurrentColor()), |
95 visited_link_border_bottom_color_(StyleColor::CurrentColor()), | 95 visited_link_border_bottom_color_(StyleColor::CurrentColor()), |
96 variables_(ComputedStyle::InitialNonInheritedVariables()), | 96 variables_(ComputedStyle::InitialNonInheritedVariables()), |
97 align_content_(ComputedStyle::InitialContentAlignment()), | 97 align_content_(ComputedStyle::InitialContentAlignment()), |
98 align_items_(ComputedStyle::InitialDefaultAlignment()), | 98 align_items_(ComputedStyle::InitialDefaultAlignment()), |
99 align_self_(ComputedStyle::InitialSelfAlignment()), | 99 align_self_(ComputedStyle::InitialSelfAlignment()), |
100 justify_content_(ComputedStyle::InitialContentAlignment()), | 100 justify_content_(ComputedStyle::InitialContentAlignment()), |
101 justify_items_(ComputedStyle::InitialSelfAlignment()), | 101 justify_items_(ComputedStyle::InitialSelfAlignment()), |
102 justify_self_(ComputedStyle::InitialSelfAlignment()), | 102 justify_self_(ComputedStyle::InitialSelfAlignment()), |
103 page_size_type_(static_cast<unsigned>(PageSizeType::kAuto)), | 103 page_size_type_(static_cast<unsigned>(PageSizeType::kAuto)), |
104 transform_style3d_(ComputedStyle::InitialTransformStyle3D()), | 104 transform_style_3d_(ComputedStyle::InitialTransformStyle3D()), |
105 backface_visibility_(ComputedStyle::InitialBackfaceVisibility()), | 105 backface_visibility_(ComputedStyle::InitialBackfaceVisibility()), |
106 user_drag(ComputedStyle::InitialUserDrag()), | 106 user_drag_(ComputedStyle::InitialUserDrag()), |
107 text_overflow(ComputedStyle::InitialTextOverflow()), | 107 text_overflow_(ComputedStyle::InitialTextOverflow()), |
108 margin_before_collapse(kMarginCollapseCollapse), | 108 margin_before_collapse_(kMarginCollapseCollapse), |
109 margin_after_collapse(kMarginCollapseCollapse), | 109 margin_after_collapse_(kMarginCollapseCollapse), |
110 appearance_(ComputedStyle::InitialAppearance()), | 110 appearance_(ComputedStyle::InitialAppearance()), |
111 text_decoration_style_(ComputedStyle::InitialTextDecorationStyle()), | 111 text_decoration_style_(ComputedStyle::InitialTextDecorationStyle()), |
112 has_current_opacity_animation_(false), | 112 has_current_opacity_animation_(false), |
113 has_current_transform_animation_(false), | 113 has_current_transform_animation_(false), |
114 has_current_filter_animation_(false), | 114 has_current_filter_animation_(false), |
115 has_current_backdrop_filter_animation_(false), | 115 has_current_backdrop_filter_animation_(false), |
116 running_opacity_animation_on_compositor_(false), | 116 running_opacity_animation_on_compositor_(false), |
117 running_transform_animation_on_compositor_(false), | 117 running_transform_animation_on_compositor_(false), |
118 running_filter_animation_on_compositor_(false), | 118 running_filter_animation_on_compositor_(false), |
119 running_backdrop_filter_animation_on_compositor_(false), | 119 running_backdrop_filter_animation_on_compositor_(false), |
120 is_stacking_context_(false), | 120 is_stacking_context_(false), |
121 effective_blend_mode_(ComputedStyle::InitialBlendMode()), | 121 effective_blend_mode_(ComputedStyle::InitialBlendMode()), |
122 touch_action_(ComputedStyle::InitialTouchAction()), | 122 touch_action_(ComputedStyle::InitialTouchAction()), |
123 object_fit_(ComputedStyle::InitialObjectFit()), | 123 object_fit_(ComputedStyle::InitialObjectFit()), |
124 isolation_(ComputedStyle::InitialIsolation()), | 124 isolation_(ComputedStyle::InitialIsolation()), |
125 contain_(ComputedStyle::InitialContain()), | 125 contain_(ComputedStyle::InitialContain()), |
126 scroll_behavior_(ComputedStyle::InitialScrollBehavior()), | 126 scroll_behavior_(ComputedStyle::InitialScrollBehavior()), |
127 scroll_snap_type_(ComputedStyle::InitialScrollSnapType()), | 127 scroll_snap_type_(ComputedStyle::InitialScrollSnapType()), |
128 requires_accelerated_compositing_for_external_reasons_(false), | 128 requires_accelerated_compositing_for_external_reasons_(false), |
129 has_inline_transform_(false), | 129 has_inline_transform_(false), |
130 resize_(ComputedStyle::InitialResize()), | 130 resize_(ComputedStyle::InitialResize()), |
131 has_compositor_proxy_(false), | 131 has_compositor_proxy_(false), |
132 has_author_background_(false), | 132 has_author_background_(false), |
133 has_author_border_(false) {} | 133 has_author_border_(false) {} |
134 | 134 |
135 StyleRareNonInheritedData::StyleRareNonInheritedData( | 135 StyleRareNonInheritedData::StyleRareNonInheritedData( |
136 const StyleRareNonInheritedData& o) | 136 const StyleRareNonInheritedData& o) |
137 : RefCounted<StyleRareNonInheritedData>(), | 137 : RefCounted<StyleRareNonInheritedData>(), |
138 opacity(o.opacity), | 138 opacity_(o.opacity_), |
139 perspective_(o.perspective_), | 139 perspective_(o.perspective_), |
140 shape_image_threshold_(o.shape_image_threshold_), | 140 shape_image_threshold_(o.shape_image_threshold_), |
141 order_(o.order_), | 141 order_(o.order_), |
142 perspective_origin_(o.perspective_origin_), | 142 perspective_origin_(o.perspective_origin_), |
143 object_position_(o.object_position_), | 143 object_position_(o.object_position_), |
144 line_clamp(o.line_clamp), | 144 line_clamp_(o.line_clamp_), |
145 draggable_region_mode_(o.draggable_region_mode_), | 145 draggable_region_mode_(o.draggable_region_mode_), |
146 deprecated_flexible_box_(o.deprecated_flexible_box_), | 146 deprecated_flexible_box_(o.deprecated_flexible_box_), |
147 flexible_box_(o.flexible_box_), | 147 flexible_box_(o.flexible_box_), |
148 multi_col_(o.multi_col_), | 148 multi_col_(o.multi_col_), |
149 transform_(o.transform_), | 149 transform_(o.transform_), |
150 will_change_(o.will_change_), | 150 will_change_(o.will_change_), |
151 filter_(o.filter_), | 151 filter_(o.filter_), |
152 backdrop_filter_(o.backdrop_filter_), | 152 backdrop_filter_(o.backdrop_filter_), |
153 grid_(o.grid_), | 153 grid_(o.grid_), |
154 grid_item_(o.grid_item_), | 154 grid_item_(o.grid_item_), |
(...skipping 22 matching lines...) Expand all Loading... |
177 visited_link_border_top_color_(o.visited_link_border_top_color_), | 177 visited_link_border_top_color_(o.visited_link_border_top_color_), |
178 visited_link_border_bottom_color_(o.visited_link_border_bottom_color_), | 178 visited_link_border_bottom_color_(o.visited_link_border_bottom_color_), |
179 variables_(o.variables_ ? o.variables_->Clone() : nullptr), | 179 variables_(o.variables_ ? o.variables_->Clone() : nullptr), |
180 align_content_(o.align_content_), | 180 align_content_(o.align_content_), |
181 align_items_(o.align_items_), | 181 align_items_(o.align_items_), |
182 align_self_(o.align_self_), | 182 align_self_(o.align_self_), |
183 justify_content_(o.justify_content_), | 183 justify_content_(o.justify_content_), |
184 justify_items_(o.justify_items_), | 184 justify_items_(o.justify_items_), |
185 justify_self_(o.justify_self_), | 185 justify_self_(o.justify_self_), |
186 page_size_type_(o.page_size_type_), | 186 page_size_type_(o.page_size_type_), |
187 transform_style3d_(o.transform_style3d_), | 187 transform_style_3d_(o.transform_style_3d_), |
188 backface_visibility_(o.backface_visibility_), | 188 backface_visibility_(o.backface_visibility_), |
189 user_drag(o.user_drag), | 189 user_drag_(o.user_drag_), |
190 text_overflow(o.text_overflow), | 190 text_overflow_(o.text_overflow_), |
191 margin_before_collapse(o.margin_before_collapse), | 191 margin_before_collapse_(o.margin_before_collapse_), |
192 margin_after_collapse(o.margin_after_collapse), | 192 margin_after_collapse_(o.margin_after_collapse_), |
193 appearance_(o.appearance_), | 193 appearance_(o.appearance_), |
194 text_decoration_style_(o.text_decoration_style_), | 194 text_decoration_style_(o.text_decoration_style_), |
195 has_current_opacity_animation_(o.has_current_opacity_animation_), | 195 has_current_opacity_animation_(o.has_current_opacity_animation_), |
196 has_current_transform_animation_(o.has_current_transform_animation_), | 196 has_current_transform_animation_(o.has_current_transform_animation_), |
197 has_current_filter_animation_(o.has_current_filter_animation_), | 197 has_current_filter_animation_(o.has_current_filter_animation_), |
198 has_current_backdrop_filter_animation_( | 198 has_current_backdrop_filter_animation_( |
199 o.has_current_backdrop_filter_animation_), | 199 o.has_current_backdrop_filter_animation_), |
200 running_opacity_animation_on_compositor_( | 200 running_opacity_animation_on_compositor_( |
201 o.running_opacity_animation_on_compositor_), | 201 o.running_opacity_animation_on_compositor_), |
202 running_transform_animation_on_compositor_( | 202 running_transform_animation_on_compositor_( |
(...skipping 15 matching lines...) Expand all Loading... |
218 has_inline_transform_(o.has_inline_transform_), | 218 has_inline_transform_(o.has_inline_transform_), |
219 resize_(o.resize_), | 219 resize_(o.resize_), |
220 has_compositor_proxy_(o.has_compositor_proxy_), | 220 has_compositor_proxy_(o.has_compositor_proxy_), |
221 has_author_background_(o.has_author_background_), | 221 has_author_background_(o.has_author_background_), |
222 has_author_border_(o.has_author_border_) {} | 222 has_author_border_(o.has_author_border_) {} |
223 | 223 |
224 StyleRareNonInheritedData::~StyleRareNonInheritedData() {} | 224 StyleRareNonInheritedData::~StyleRareNonInheritedData() {} |
225 | 225 |
226 bool StyleRareNonInheritedData::operator==( | 226 bool StyleRareNonInheritedData::operator==( |
227 const StyleRareNonInheritedData& o) const { | 227 const StyleRareNonInheritedData& o) const { |
228 return opacity == o.opacity && perspective_ == o.perspective_ && | 228 return opacity_ == o.opacity_ && perspective_ == o.perspective_ && |
229 shape_image_threshold_ == o.shape_image_threshold_ && | 229 shape_image_threshold_ == o.shape_image_threshold_ && |
230 order_ == o.order_ && perspective_origin_ == o.perspective_origin_ && | 230 order_ == o.order_ && perspective_origin_ == o.perspective_origin_ && |
231 object_position_ == o.object_position_ && line_clamp == o.line_clamp && | 231 object_position_ == o.object_position_ && |
| 232 line_clamp_ == o.line_clamp_ && |
232 draggable_region_mode_ == o.draggable_region_mode_ && | 233 draggable_region_mode_ == o.draggable_region_mode_ && |
233 deprecated_flexible_box_ == o.deprecated_flexible_box_ && | 234 deprecated_flexible_box_ == o.deprecated_flexible_box_ && |
234 flexible_box_ == o.flexible_box_ && multi_col_ == o.multi_col_ && | 235 flexible_box_ == o.flexible_box_ && multi_col_ == o.multi_col_ && |
235 transform_ == o.transform_ && will_change_ == o.will_change_ && | 236 transform_ == o.transform_ && will_change_ == o.will_change_ && |
236 filter_ == o.filter_ && backdrop_filter_ == o.backdrop_filter_ && | 237 filter_ == o.filter_ && backdrop_filter_ == o.backdrop_filter_ && |
237 grid_ == o.grid_ && grid_item_ == o.grid_item_ && | 238 grid_ == o.grid_ && grid_item_ == o.grid_item_ && |
238 scroll_snap_ == o.scroll_snap_ && | 239 scroll_snap_ == o.scroll_snap_ && |
239 DataEquivalent(content_, o.content_) && | 240 DataEquivalent(content_, o.content_) && |
240 DataEquivalent(counter_directives_, o.counter_directives_) && | 241 DataEquivalent(counter_directives_, o.counter_directives_) && |
241 DataEquivalent(box_shadow_, o.box_shadow_) && | 242 DataEquivalent(box_shadow_, o.box_shadow_) && |
(...skipping 16 matching lines...) Expand all Loading... |
258 visited_link_border_bottom_color_ == | 259 visited_link_border_bottom_color_ == |
259 o.visited_link_border_bottom_color_ && | 260 o.visited_link_border_bottom_color_ && |
260 callback_selectors_ == o.callback_selectors_ && | 261 callback_selectors_ == o.callback_selectors_ && |
261 DataEquivalent(variables_, o.variables_) && | 262 DataEquivalent(variables_, o.variables_) && |
262 align_content_ == o.align_content_ && align_items_ == o.align_items_ && | 263 align_content_ == o.align_content_ && align_items_ == o.align_items_ && |
263 align_self_ == o.align_self_ && | 264 align_self_ == o.align_self_ && |
264 justify_content_ == o.justify_content_ && | 265 justify_content_ == o.justify_content_ && |
265 justify_items_ == o.justify_items_ && | 266 justify_items_ == o.justify_items_ && |
266 justify_self_ == o.justify_self_ && | 267 justify_self_ == o.justify_self_ && |
267 page_size_type_ == o.page_size_type_ && | 268 page_size_type_ == o.page_size_type_ && |
268 transform_style3d_ == o.transform_style3d_ && | 269 transform_style_3d_ == o.transform_style_3d_ && |
269 backface_visibility_ == o.backface_visibility_ && | 270 backface_visibility_ == o.backface_visibility_ && |
270 user_drag == o.user_drag && text_overflow == o.text_overflow && | 271 user_drag_ == o.user_drag_ && text_overflow_ == o.text_overflow_ && |
271 margin_before_collapse == o.margin_before_collapse && | 272 margin_before_collapse_ == o.margin_before_collapse_ && |
272 margin_after_collapse == o.margin_after_collapse && | 273 margin_after_collapse_ == o.margin_after_collapse_ && |
273 appearance_ == o.appearance_ && | 274 appearance_ == o.appearance_ && |
274 text_decoration_style_ == o.text_decoration_style_ && | 275 text_decoration_style_ == o.text_decoration_style_ && |
275 has_current_opacity_animation_ == o.has_current_opacity_animation_ && | 276 has_current_opacity_animation_ == o.has_current_opacity_animation_ && |
276 has_current_transform_animation_ == | 277 has_current_transform_animation_ == |
277 o.has_current_transform_animation_ && | 278 o.has_current_transform_animation_ && |
278 has_current_filter_animation_ == o.has_current_filter_animation_ && | 279 has_current_filter_animation_ == o.has_current_filter_animation_ && |
279 has_current_backdrop_filter_animation_ == | 280 has_current_backdrop_filter_animation_ == |
280 o.has_current_backdrop_filter_animation_ && | 281 o.has_current_backdrop_filter_animation_ && |
281 is_stacking_context_ == o.is_stacking_context_ && | 282 is_stacking_context_ == o.is_stacking_context_ && |
282 effective_blend_mode_ == o.effective_blend_mode_ && | 283 effective_blend_mode_ == o.effective_blend_mode_ && |
283 touch_action_ == o.touch_action_ && object_fit_ == o.object_fit_ && | 284 touch_action_ == o.touch_action_ && object_fit_ == o.object_fit_ && |
284 isolation_ == o.isolation_ && contain_ == o.contain_ && | 285 isolation_ == o.isolation_ && contain_ == o.contain_ && |
285 scroll_behavior_ == o.scroll_behavior_ && | 286 scroll_behavior_ == o.scroll_behavior_ && |
286 scroll_snap_type_ == o.scroll_snap_type_ && | 287 scroll_snap_type_ == o.scroll_snap_type_ && |
287 requires_accelerated_compositing_for_external_reasons_ == | 288 requires_accelerated_compositing_for_external_reasons_ == |
288 o.requires_accelerated_compositing_for_external_reasons_ && | 289 o.requires_accelerated_compositing_for_external_reasons_ && |
289 has_inline_transform_ == o.has_inline_transform_ && | 290 has_inline_transform_ == o.has_inline_transform_ && |
290 resize_ == o.resize_ && | 291 resize_ == o.resize_ && |
291 has_compositor_proxy_ == o.has_compositor_proxy_ && | 292 has_compositor_proxy_ == o.has_compositor_proxy_ && |
292 has_author_background_ == o.has_author_background_ && | 293 has_author_background_ == o.has_author_background_ && |
293 has_author_border_ == o.has_author_border_; | 294 has_author_border_ == o.has_author_border_; |
294 } | 295 } |
295 | 296 |
296 } // namespace blink | 297 } // namespace blink |
OLD | NEW |