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

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

Issue 2886893007: Replace CSSAnimationData::Create(CSSAnimation) with clone method. (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/animation/css/CSSAnimationData.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 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 transform_(o.transform_), 150 transform_(o.transform_),
151 will_change_(o.will_change_), 151 will_change_(o.will_change_),
152 filter_(o.filter_), 152 filter_(o.filter_),
153 backdrop_filter_(o.backdrop_filter_), 153 backdrop_filter_(o.backdrop_filter_),
154 grid_(o.grid_), 154 grid_(o.grid_),
155 grid_item_(o.grid_item_), 155 grid_item_(o.grid_item_),
156 scroll_snap_(o.scroll_snap_), 156 scroll_snap_(o.scroll_snap_),
157 content_(o.content_ ? o.content_->Clone() : nullptr), 157 content_(o.content_ ? o.content_->Clone() : nullptr),
158 counter_directives_(o.counter_directives_ ? Clone(*o.counter_directives_) 158 counter_directives_(o.counter_directives_ ? Clone(*o.counter_directives_)
159 : nullptr), 159 : nullptr),
160 animations_(o.animations_ ? CSSAnimationData::Create(*o.animations_) 160 animations_(o.animations_ ? o.animations_->Clone() : nullptr),
161 : nullptr),
162 transitions_(o.transitions_ ? o.transitions_->Clone() : nullptr), 161 transitions_(o.transitions_ ? o.transitions_->Clone() : nullptr),
163 box_shadow_(o.box_shadow_), 162 box_shadow_(o.box_shadow_),
164 box_reflect_(o.box_reflect_), 163 box_reflect_(o.box_reflect_),
165 shape_outside_(o.shape_outside_), 164 shape_outside_(o.shape_outside_),
166 clip_path_(o.clip_path_), 165 clip_path_(o.clip_path_),
167 mask_(o.mask_), 166 mask_(o.mask_),
168 mask_box_image_(o.mask_box_image_), 167 mask_box_image_(o.mask_box_image_),
169 page_size_(o.page_size_), 168 page_size_(o.page_size_),
170 shape_margin_(o.shape_margin_), 169 shape_margin_(o.shape_margin_),
171 outline_(o.outline_), 170 outline_(o.outline_),
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 const StyleRareNonInheritedData& o) const { 348 const StyleRareNonInheritedData& o) const {
350 return DataEquivalent(shape_outside_, o.shape_outside_); 349 return DataEquivalent(shape_outside_, o.shape_outside_);
351 } 350 }
352 351
353 bool StyleRareNonInheritedData::ClipPathDataEquivalent( 352 bool StyleRareNonInheritedData::ClipPathDataEquivalent(
354 const StyleRareNonInheritedData& o) const { 353 const StyleRareNonInheritedData& o) const {
355 return DataEquivalent(clip_path_, o.clip_path_); 354 return DataEquivalent(clip_path_, o.clip_path_);
356 } 355 }
357 356
358 } // namespace blink 357 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/css/CSSAnimationData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698