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

Side by Side Diff: cc/layers/layer_impl.cc

Issue 2278273004: Fix CSS reference filters with negative transformed children. (Closed)
Patch Set: SkPoint -> FloatPoint, gfx::PointF as appropriate. Created 4 years, 3 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/layers/layer_impl.h" 5 #include "cc/layers/layer_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 bool LayerImpl::HasAnimationThatInflatesBounds() const { 816 bool LayerImpl::HasAnimationThatInflatesBounds() const {
817 return GetAnimationHost()->HasAnimationThatInflatesBounds(element_id()); 817 return GetAnimationHost()->HasAnimationThatInflatesBounds(element_id());
818 } 818 }
819 819
820 bool LayerImpl::FilterAnimationBoundsForBox(const gfx::BoxF& box, 820 bool LayerImpl::FilterAnimationBoundsForBox(const gfx::BoxF& box,
821 gfx::BoxF* bounds) const { 821 gfx::BoxF* bounds) const {
822 return GetAnimationHost()->FilterAnimationBoundsForBox(element_id(), box, 822 return GetAnimationHost()->FilterAnimationBoundsForBox(element_id(), box,
823 bounds); 823 bounds);
824 } 824 }
825 825
826 void LayerImpl::SetFiltersOrigin(const gfx::PointF& filters_origin) {
827 filters_origin_ = filters_origin;
828 }
829
826 bool LayerImpl::TransformAnimationBoundsForBox(const gfx::BoxF& box, 830 bool LayerImpl::TransformAnimationBoundsForBox(const gfx::BoxF& box,
827 gfx::BoxF* bounds) const { 831 gfx::BoxF* bounds) const {
828 return GetAnimationHost()->TransformAnimationBoundsForBox(element_id(), box, 832 return GetAnimationHost()->TransformAnimationBoundsForBox(element_id(), box,
829 bounds); 833 bounds);
830 } 834 }
831 835
832 void LayerImpl::SetUpdateRect(const gfx::Rect& update_rect) { 836 void LayerImpl::SetUpdateRect(const gfx::Rect& update_rect) {
833 update_rect_ = update_rect; 837 update_rect_ = update_rect;
834 SetNeedsPushProperties(); 838 SetNeedsPushProperties();
835 } 839 }
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 .layer_transforms_should_scale_layer_contents) { 1123 .layer_transforms_should_scale_layer_contents) {
1120 return default_scale; 1124 return default_scale;
1121 } 1125 }
1122 1126
1123 gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents( 1127 gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents(
1124 ScreenSpaceTransform(), default_scale); 1128 ScreenSpaceTransform(), default_scale);
1125 return std::max(transform_scales.x(), transform_scales.y()); 1129 return std::max(transform_scales.x(), transform_scales.y());
1126 } 1130 }
1127 1131
1128 } // namespace cc 1132 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698