OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 effect = FEDropShadow::create(this, stdDeviation, stdDeviation, x, y
, dropShadowOperation->color(), 1); | 263 effect = FEDropShadow::create(this, stdDeviation, stdDeviation, x, y
, dropShadowOperation->color(), 1); |
264 break; | 264 break; |
265 } | 265 } |
266 case FilterOperation::CUSTOM: | 266 case FilterOperation::CUSTOM: |
267 // CUSTOM operations are always converted to VALIDATED_CUSTOM before
getting here. | 267 // CUSTOM operations are always converted to VALIDATED_CUSTOM before
getting here. |
268 // The conversion happens in RenderLayer::computeFilterOperations. | 268 // The conversion happens in RenderLayer::computeFilterOperations. |
269 ASSERT_NOT_REACHED(); | 269 ASSERT_NOT_REACHED(); |
270 break; | 270 break; |
271 case FilterOperation::VALIDATED_CUSTOM: { | 271 case FilterOperation::VALIDATED_CUSTOM: { |
272 ValidatedCustomFilterOperation* customFilterOperation = static_cast<
ValidatedCustomFilterOperation*>(filterOperation); | 272 ValidatedCustomFilterOperation* customFilterOperation = static_cast<
ValidatedCustomFilterOperation*>(filterOperation); |
273 Document* document = renderer ? renderer->document() : 0; | 273 Document* document = renderer ? &renderer->document() : 0; |
274 effect = createCustomFilterEffect(this, document, customFilterOperat
ion); | 274 effect = createCustomFilterEffect(this, document, customFilterOperat
ion); |
275 if (effect) | 275 if (effect) |
276 m_hasCustomShaderFilter = true; | 276 m_hasCustomShaderFilter = true; |
277 break; | 277 break; |
278 } | 278 } |
279 default: | 279 default: |
280 break; | 280 break; |
281 } | 281 } |
282 | 282 |
283 if (effect) { | 283 if (effect) { |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 // Get the filtered output and draw it in place. | 436 // Get the filtered output and draw it in place. |
437 m_savedGraphicsContext->drawImageBuffer(filter->output(), filter->outputRect
(), CompositeSourceOver); | 437 m_savedGraphicsContext->drawImageBuffer(filter->output(), filter->outputRect
(), CompositeSourceOver); |
438 | 438 |
439 filter->clearIntermediateResults(); | 439 filter->clearIntermediateResults(); |
440 | 440 |
441 return m_savedGraphicsContext; | 441 return m_savedGraphicsContext; |
442 } | 442 } |
443 | 443 |
444 } // namespace WebCore | 444 } // namespace WebCore |
445 | 445 |
OLD | NEW |