| OLD | NEW |
| 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 Loading... |
| 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 2376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2660 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { | 2665 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { |
| 2661 name = "Scrolling Contents Layer"; | 2666 name = "Scrolling Contents Layer"; |
| 2662 } else { | 2667 } else { |
| 2663 ASSERT_NOT_REACHED(); | 2668 ASSERT_NOT_REACHED(); |
| 2664 } | 2669 } |
| 2665 | 2670 |
| 2666 return name; | 2671 return name; |
| 2667 } | 2672 } |
| 2668 | 2673 |
| 2669 } // namespace blink | 2674 } // namespace blink |
| OLD | NEW |