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

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

Issue 2884153002: Move RareInheritedData (Quotes|Shadow)DataEquivalent to ComputedStyle. (Closed)
Patch Set: 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 text_stroke_width_ == o.text_stroke_width_ && 192 text_stroke_width_ == o.text_stroke_width_ &&
193 text_fill_color_ == o.text_fill_color_ && 193 text_fill_color_ == o.text_fill_color_ &&
194 text_emphasis_color_ == o.text_emphasis_color_ && 194 text_emphasis_color_ == o.text_emphasis_color_ &&
195 caret_color_ == o.caret_color_ && 195 caret_color_ == o.caret_color_ &&
196 visited_link_text_stroke_color_ == o.visited_link_text_stroke_color_ && 196 visited_link_text_stroke_color_ == o.visited_link_text_stroke_color_ &&
197 visited_link_text_fill_color_ == o.visited_link_text_fill_color_ && 197 visited_link_text_fill_color_ == o.visited_link_text_fill_color_ &&
198 visited_link_text_emphasis_color_ == 198 visited_link_text_emphasis_color_ ==
199 o.visited_link_text_emphasis_color_ && 199 o.visited_link_text_emphasis_color_ &&
200 visited_link_caret_color_ == o.visited_link_caret_color_ && 200 visited_link_caret_color_ == o.visited_link_caret_color_ &&
201 tap_highlight_color_ == o.tap_highlight_color_ && 201 tap_highlight_color_ == o.tap_highlight_color_ &&
202 ShadowDataEquivalent(o) && highlight_ == o.highlight_ && 202 DataEquivalent(text_shadow_, o.text_shadow_) &&
203 highlight_ == o.highlight_ &&
203 DataEquivalent(cursor_data_, o.cursor_data_) && 204 DataEquivalent(cursor_data_, o.cursor_data_) &&
204 text_indent_ == o.text_indent_ && 205 text_indent_ == o.text_indent_ &&
205 effective_zoom_ == o.effective_zoom_ && widows_ == o.widows_ && 206 effective_zoom_ == o.effective_zoom_ && widows_ == o.widows_ &&
206 orphans_ == o.orphans_ && 207 orphans_ == o.orphans_ &&
207 text_stroke_color_is_current_color_ == 208 text_stroke_color_is_current_color_ ==
208 o.text_stroke_color_is_current_color_ && 209 o.text_stroke_color_is_current_color_ &&
209 text_fill_color_is_current_color_ == 210 text_fill_color_is_current_color_ ==
210 o.text_fill_color_is_current_color_ && 211 o.text_fill_color_is_current_color_ &&
211 text_emphasis_color_is_current_color_ == 212 text_emphasis_color_is_current_color_ ==
212 o.text_emphasis_color_is_current_color_ && 213 o.text_emphasis_color_is_current_color_ &&
(...skipping 26 matching lines...) Expand all
239 text_indent_line_ == o.text_indent_line_ && 240 text_indent_line_ == o.text_indent_line_ &&
240 text_indent_type_ == o.text_indent_type_ && 241 text_indent_type_ == o.text_indent_type_ &&
241 subtree_will_change_contents_ == o.subtree_will_change_contents_ && 242 subtree_will_change_contents_ == o.subtree_will_change_contents_ &&
242 self_or_ancestor_has_dir_auto_attribute_ == 243 self_or_ancestor_has_dir_auto_attribute_ ==
243 o.self_or_ancestor_has_dir_auto_attribute_ && 244 o.self_or_ancestor_has_dir_auto_attribute_ &&
244 respect_image_orientation_ == o.respect_image_orientation_ && 245 respect_image_orientation_ == o.respect_image_orientation_ &&
245 subtree_is_sticky_ == o.subtree_is_sticky_ && 246 subtree_is_sticky_ == o.subtree_is_sticky_ &&
246 hyphenation_string_ == o.hyphenation_string_ && 247 hyphenation_string_ == o.hyphenation_string_ &&
247 line_height_step_ == o.line_height_step_ && 248 line_height_step_ == o.line_height_step_ &&
248 text_emphasis_custom_mark_ == o.text_emphasis_custom_mark_ && 249 text_emphasis_custom_mark_ == o.text_emphasis_custom_mark_ &&
249 QuotesDataEquivalent(o) && tab_size_ == o.tab_size_ && 250 DataEquivalent(quotes_, o.quotes_) && tab_size_ == o.tab_size_ &&
250 image_rendering_ == o.image_rendering_ && 251 image_rendering_ == o.image_rendering_ &&
251 text_underline_position_ == o.text_underline_position_ && 252 text_underline_position_ == o.text_underline_position_ &&
252 text_decoration_skip_ == o.text_decoration_skip_ && 253 text_decoration_skip_ == o.text_decoration_skip_ &&
253 ruby_position_ == o.ruby_position_ && 254 ruby_position_ == o.ruby_position_ &&
254 DataEquivalent(list_style_image_, o.list_style_image_) && 255 DataEquivalent(list_style_image_, o.list_style_image_) &&
255 DataEquivalent(applied_text_decorations_, 256 DataEquivalent(applied_text_decorations_,
256 o.applied_text_decorations_) && 257 o.applied_text_decorations_) &&
257 DataEquivalent(variables_, o.variables_) && 258 DataEquivalent(variables_, o.variables_) &&
258 text_size_adjust_ == o.text_size_adjust_; 259 text_size_adjust_ == o.text_size_adjust_;
259 } 260 }
260 261
261 bool StyleRareInheritedData::ShadowDataEquivalent(
262 const StyleRareInheritedData& o) const {
263 return DataEquivalent(text_shadow_, o.text_shadow_);
264 }
265
266 bool StyleRareInheritedData::QuotesDataEquivalent(
267 const StyleRareInheritedData& o) const {
268 return DataEquivalent(quotes_, o.quotes_);
269 }
270
271 } // namespace blink 262 } // 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