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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 2232013002: CSS filters: fix filtered parent with animated transform child. Base URL: https://chromium.googlesource.com/chromium/src.git@filter-bounds-transformed-composited-child
Patch Set: Update to ToT Created 4 years, 4 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/CompositorAnimations.cpp ('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) 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 style.applyTransform(t, LayoutSize(toLayoutBox(layoutObject())->pixelSna ppedSize()), ComputedStyle::ExcludeTransformOrigin, ComputedStyle::IncludeMotion Path, ComputedStyle::IncludeIndependentTransformProperties); 264 style.applyTransform(t, LayoutSize(toLayoutBox(layoutObject())->pixelSna ppedSize()), ComputedStyle::ExcludeTransformOrigin, ComputedStyle::IncludeMotion Path, ComputedStyle::IncludeIndependentTransformProperties);
265 makeMatrixRenderable(t, compositor()->hasAcceleratedCompositing()); 265 makeMatrixRenderable(t, compositor()->hasAcceleratedCompositing());
266 } 266 }
267 267
268 m_graphicsLayer->setTransform(t); 268 m_graphicsLayer->setTransform(t);
269 } 269 }
270 270
271 void CompositedLayerMapping::updateFilters(const ComputedStyle& style) 271 void CompositedLayerMapping::updateFilters(const ComputedStyle& style)
272 { 272 {
273 m_graphicsLayer->setFilters(owningLayer().computeFilterOperations(style)); 273 m_graphicsLayer->setFilters(owningLayer().computeFilterOperations(style));
274 for (PaintLayer* layer = owningLayer().parent(); layer; layer = layer->paren t()) {
275 if (layer->layoutObject() && layer->graphicsLayerBacking() && layer->lay outObject()->style()) {
276 layer->graphicsLayerBacking()->setFilters(layer->computeFilterOperat ions(*layer->layoutObject()->style()));
277 }
278 }
274 } 279 }
275 280
276 void CompositedLayerMapping::updateBackdropFilters(const ComputedStyle& style) 281 void CompositedLayerMapping::updateBackdropFilters(const ComputedStyle& style)
277 { 282 {
278 m_graphicsLayer->setBackdropFilters(owningLayer().computeBackdropFilterOpera tions(style)); 283 m_graphicsLayer->setBackdropFilters(owningLayer().computeBackdropFilterOpera tions(style));
279 } 284 }
280 285
281 void CompositedLayerMapping::updateLayerBlendMode(const ComputedStyle& style) 286 void CompositedLayerMapping::updateLayerBlendMode(const ComputedStyle& style)
282 { 287 {
283 setBlendMode(style.blendMode()); 288 setBlendMode(style.blendMode());
(...skipping 2425 matching lines...) Expand 10 before | Expand all | Expand 10 after
2709 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { 2714 } else if (graphicsLayer == m_scrollingContentsLayer.get()) {
2710 name = "Scrolling Contents Layer"; 2715 name = "Scrolling Contents Layer";
2711 } else { 2716 } else {
2712 ASSERT_NOT_REACHED(); 2717 ASSERT_NOT_REACHED();
2713 } 2718 }
2714 2719
2715 return name; 2720 return name;
2716 } 2721 }
2717 2722
2718 } // namespace blink 2723 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/CompositorAnimations.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698