Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: third_party/WebKit/Source/core/style/StyleRareInheritedData.cpp

Issue 2825343003: Clean compositing inputs for location APIs for sticky-affected elements. (Closed)
Patch Set: Rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleRareInheritedData.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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, 2009, 2010 Apple Inc. All rights 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
4 * reserved. 4 * 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 text_combine_(ComputedStyle::InitialTextCombine()), 95 text_combine_(ComputedStyle::InitialTextCombine()),
96 text_indent_line_(ComputedStyle::InitialTextIndentLine()), 96 text_indent_line_(ComputedStyle::InitialTextIndentLine()),
97 text_indent_type_(ComputedStyle::InitialTextIndentLine()), 97 text_indent_type_(ComputedStyle::InitialTextIndentLine()),
98 image_rendering_(ComputedStyle::InitialImageRendering()), 98 image_rendering_(ComputedStyle::InitialImageRendering()),
99 text_underline_position_(ComputedStyle::InitialTextUnderlinePosition()), 99 text_underline_position_(ComputedStyle::InitialTextUnderlinePosition()),
100 text_decoration_skip_(ComputedStyle::InitialTextDecorationSkip()), 100 text_decoration_skip_(ComputedStyle::InitialTextDecorationSkip()),
101 ruby_position_(ComputedStyle::InitialRubyPosition()), 101 ruby_position_(ComputedStyle::InitialRubyPosition()),
102 subtree_will_change_contents_(false), 102 subtree_will_change_contents_(false),
103 self_or_ancestor_has_dir_auto_attribute_(false), 103 self_or_ancestor_has_dir_auto_attribute_(false),
104 respect_image_orientation_(false), 104 respect_image_orientation_(false),
105 subtree_is_sticky_(false),
105 hyphenation_limit_before_(-1), 106 hyphenation_limit_before_(-1),
106 hyphenation_limit_after_(-1), 107 hyphenation_limit_after_(-1),
107 hyphenation_limit_lines_(-1), 108 hyphenation_limit_lines_(-1),
108 line_height_step_(0), 109 line_height_step_(0),
109 tap_highlight_color_(ComputedStyle::InitialTapHighlightColor()), 110 tap_highlight_color_(ComputedStyle::InitialTapHighlightColor()),
110 tab_size_(ComputedStyle::InitialTabSize()), 111 tab_size_(ComputedStyle::InitialTabSize()),
111 text_size_adjust_(ComputedStyle::InitialTextSizeAdjust()) {} 112 text_size_adjust_(ComputedStyle::InitialTextSizeAdjust()) {}
112 113
113 StyleRareInheritedData::StyleRareInheritedData(const StyleRareInheritedData& o) 114 StyleRareInheritedData::StyleRareInheritedData(const StyleRareInheritedData& o)
114 : RefCounted<StyleRareInheritedData>(), 115 : RefCounted<StyleRareInheritedData>(),
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 text_indent_line_(o.text_indent_line_), 164 text_indent_line_(o.text_indent_line_),
164 text_indent_type_(o.text_indent_type_), 165 text_indent_type_(o.text_indent_type_),
165 image_rendering_(o.image_rendering_), 166 image_rendering_(o.image_rendering_),
166 text_underline_position_(o.text_underline_position_), 167 text_underline_position_(o.text_underline_position_),
167 text_decoration_skip_(o.text_decoration_skip_), 168 text_decoration_skip_(o.text_decoration_skip_),
168 ruby_position_(o.ruby_position_), 169 ruby_position_(o.ruby_position_),
169 subtree_will_change_contents_(o.subtree_will_change_contents_), 170 subtree_will_change_contents_(o.subtree_will_change_contents_),
170 self_or_ancestor_has_dir_auto_attribute_( 171 self_or_ancestor_has_dir_auto_attribute_(
171 o.self_or_ancestor_has_dir_auto_attribute_), 172 o.self_or_ancestor_has_dir_auto_attribute_),
172 respect_image_orientation_(o.respect_image_orientation_), 173 respect_image_orientation_(o.respect_image_orientation_),
174 subtree_is_sticky_(o.subtree_is_sticky_),
173 hyphenation_string_(o.hyphenation_string_), 175 hyphenation_string_(o.hyphenation_string_),
174 hyphenation_limit_before_(o.hyphenation_limit_before_), 176 hyphenation_limit_before_(o.hyphenation_limit_before_),
175 hyphenation_limit_after_(o.hyphenation_limit_after_), 177 hyphenation_limit_after_(o.hyphenation_limit_after_),
176 hyphenation_limit_lines_(o.hyphenation_limit_lines_), 178 hyphenation_limit_lines_(o.hyphenation_limit_lines_),
177 line_height_step_(o.line_height_step_), 179 line_height_step_(o.line_height_step_),
178 text_emphasis_custom_mark_(o.text_emphasis_custom_mark_), 180 text_emphasis_custom_mark_(o.text_emphasis_custom_mark_),
179 tap_highlight_color_(o.tap_highlight_color_), 181 tap_highlight_color_(o.tap_highlight_color_),
180 applied_text_decorations_(o.applied_text_decorations_), 182 applied_text_decorations_(o.applied_text_decorations_),
181 tab_size_(o.tab_size_), 183 tab_size_(o.tab_size_),
182 variables_(o.variables_), 184 variables_(o.variables_),
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 text_align_last_ == o.text_align_last_ && 233 text_align_last_ == o.text_align_last_ &&
232 text_justify_ == o.text_justify_ && 234 text_justify_ == o.text_justify_ &&
233 text_orientation_ == o.text_orientation_ && 235 text_orientation_ == o.text_orientation_ &&
234 text_combine_ == o.text_combine_ && 236 text_combine_ == o.text_combine_ &&
235 text_indent_line_ == o.text_indent_line_ && 237 text_indent_line_ == o.text_indent_line_ &&
236 text_indent_type_ == o.text_indent_type_ && 238 text_indent_type_ == o.text_indent_type_ &&
237 subtree_will_change_contents_ == o.subtree_will_change_contents_ && 239 subtree_will_change_contents_ == o.subtree_will_change_contents_ &&
238 self_or_ancestor_has_dir_auto_attribute_ == 240 self_or_ancestor_has_dir_auto_attribute_ ==
239 o.self_or_ancestor_has_dir_auto_attribute_ && 241 o.self_or_ancestor_has_dir_auto_attribute_ &&
240 respect_image_orientation_ == o.respect_image_orientation_ && 242 respect_image_orientation_ == o.respect_image_orientation_ &&
243 subtree_is_sticky_ == o.subtree_is_sticky_ &&
241 hyphenation_string_ == o.hyphenation_string_ && 244 hyphenation_string_ == o.hyphenation_string_ &&
242 line_height_step_ == o.line_height_step_ && 245 line_height_step_ == o.line_height_step_ &&
243 text_emphasis_custom_mark_ == o.text_emphasis_custom_mark_ && 246 text_emphasis_custom_mark_ == o.text_emphasis_custom_mark_ &&
244 QuotesDataEquivalent(o) && tab_size_ == o.tab_size_ && 247 QuotesDataEquivalent(o) && tab_size_ == o.tab_size_ &&
245 image_rendering_ == o.image_rendering_ && 248 image_rendering_ == o.image_rendering_ &&
246 text_underline_position_ == o.text_underline_position_ && 249 text_underline_position_ == o.text_underline_position_ &&
247 text_decoration_skip_ == o.text_decoration_skip_ && 250 text_decoration_skip_ == o.text_decoration_skip_ &&
248 ruby_position_ == o.ruby_position_ && 251 ruby_position_ == o.ruby_position_ &&
249 DataEquivalent(list_style_image_, o.list_style_image_) && 252 DataEquivalent(list_style_image_, o.list_style_image_) &&
250 DataEquivalent(applied_text_decorations_, 253 DataEquivalent(applied_text_decorations_,
251 o.applied_text_decorations_) && 254 o.applied_text_decorations_) &&
252 DataEquivalent(variables_, o.variables_) && 255 DataEquivalent(variables_, o.variables_) &&
253 text_size_adjust_ == o.text_size_adjust_; 256 text_size_adjust_ == o.text_size_adjust_;
254 } 257 }
255 258
256 bool StyleRareInheritedData::ShadowDataEquivalent( 259 bool StyleRareInheritedData::ShadowDataEquivalent(
257 const StyleRareInheritedData& o) const { 260 const StyleRareInheritedData& o) const {
258 return DataEquivalent(text_shadow_, o.text_shadow_); 261 return DataEquivalent(text_shadow_, o.text_shadow_);
259 } 262 }
260 263
261 bool StyleRareInheritedData::QuotesDataEquivalent( 264 bool StyleRareInheritedData::QuotesDataEquivalent(
262 const StyleRareInheritedData& o) const { 265 const StyleRareInheritedData& o) const {
263 return DataEquivalent(quotes_, o.quotes_); 266 return DataEquivalent(quotes_, o.quotes_);
264 } 267 }
265 268
266 } // namespace blink 269 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleRareInheritedData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698