| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> |
| 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
| 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 filterData->savedContext = context; | 330 filterData->savedContext = context; |
| 331 | 331 |
| 332 context = sourceGraphicContext; | 332 context = sourceGraphicContext; |
| 333 | 333 |
| 334 ASSERT(!m_filter.contains(object)); | 334 ASSERT(!m_filter.contains(object)); |
| 335 m_filter.set(object, filterData.release()); | 335 m_filter.set(object, filterData.release()); |
| 336 | 336 |
| 337 return true; | 337 return true; |
| 338 } | 338 } |
| 339 | 339 |
| 340 void RenderSVGResourceFilter::postApplyResource(RenderObject* object, GraphicsCo
ntext*& context, unsigned short resourceMode, const Path*, const RenderSVGShape*
) | 340 void RenderSVGResourceFilter::postApplyResource(RenderObject* object, GraphicsCo
ntext*& context) |
| 341 { | 341 { |
| 342 ASSERT(object); | 342 ASSERT(object); |
| 343 ASSERT(context); | 343 ASSERT(context); |
| 344 ASSERT_UNUSED(resourceMode, resourceMode == ApplyToDefaultMode); | |
| 345 | 344 |
| 346 FilterData* filterData = m_filter.get(object); | 345 FilterData* filterData = m_filter.get(object); |
| 347 if (!filterData) | 346 if (!filterData) |
| 348 return; | 347 return; |
| 349 | 348 |
| 350 bool deferredFiltersEnabled = object->document().settings()->deferredFilters
Enabled(); | 349 bool deferredFiltersEnabled = object->document().settings()->deferredFilters
Enabled(); |
| 351 | 350 |
| 352 switch (filterData->state) { | 351 switch (filterData->state) { |
| 353 case FilterData::MarkedForRemoval: | 352 case FilterData::MarkedForRemoval: |
| 354 m_filter.remove(object); | 353 m_filter.remove(object); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 markAllClientLayersForInvalidation(); | 446 markAllClientLayersForInvalidation(); |
| 448 } | 447 } |
| 449 | 448 |
| 450 FloatRect RenderSVGResourceFilter::drawingRegion(RenderObject* object) const | 449 FloatRect RenderSVGResourceFilter::drawingRegion(RenderObject* object) const |
| 451 { | 450 { |
| 452 FilterData* filterData = m_filter.get(object); | 451 FilterData* filterData = m_filter.get(object); |
| 453 return filterData ? filterData->drawingRegion : FloatRect(); | 452 return filterData ? filterData->drawingRegion : FloatRect(); |
| 454 } | 453 } |
| 455 | 454 |
| 456 } | 455 } |
| OLD | NEW |