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

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

Issue 2887293002: Move StyleRareNonInheritedData::has* methods 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/StyleRareNonInheritedData.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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 331
332 bool StyleRareNonInheritedData::TransitionDataEquivalent( 332 bool StyleRareNonInheritedData::TransitionDataEquivalent(
333 const StyleRareNonInheritedData& o) const { 333 const StyleRareNonInheritedData& o) const {
334 if (!transitions_ && !o.transitions_) 334 if (!transitions_ && !o.transitions_)
335 return true; 335 return true;
336 if (!transitions_ || !o.transitions_) 336 if (!transitions_ || !o.transitions_)
337 return false; 337 return false;
338 return transitions_->TransitionsMatchForStyleRecalc(*o.transitions_); 338 return transitions_->TransitionsMatchForStyleRecalc(*o.transitions_);
339 } 339 }
340 340
341 bool StyleRareNonInheritedData::HasFilters() const {
342 return filter_.Get() && !filter_->operations_.IsEmpty();
343 }
344
345 bool StyleRareNonInheritedData::HasBackdropFilters() const {
346 return backdrop_filter_.Get() && !backdrop_filter_->operations_.IsEmpty();
347 }
348
349 bool StyleRareNonInheritedData::ShapeOutsideDataEquivalent( 341 bool StyleRareNonInheritedData::ShapeOutsideDataEquivalent(
350 const StyleRareNonInheritedData& o) const { 342 const StyleRareNonInheritedData& o) const {
351 return DataEquivalent(shape_outside_, o.shape_outside_); 343 return DataEquivalent(shape_outside_, o.shape_outside_);
352 } 344 }
353 345
354 bool StyleRareNonInheritedData::ClipPathDataEquivalent( 346 bool StyleRareNonInheritedData::ClipPathDataEquivalent(
355 const StyleRareNonInheritedData& o) const { 347 const StyleRareNonInheritedData& o) const {
356 return DataEquivalent(clip_path_, o.clip_path_); 348 return DataEquivalent(clip_path_, o.clip_path_);
357 } 349 }
358 350
359 } // namespace blink 351 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleRareNonInheritedData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698