| OLD | NEW |
| 1 /** | 1 /** |
| 2 * Copyright (C) 2007 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007 Rob Buis <buis@kde.org> |
| 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
| 5 * Copyright (C) 2009 Google, Inc. All rights reserved. | 5 * Copyright (C) 2009 Google, Inc. All rights reserved. |
| 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 7 * Copyright (C) 2012 Zoltan Herczeg <zherczeg@webkit.org>. | 7 * Copyright (C) 2012 Zoltan Herczeg <zherczeg@webkit.org>. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 : TransformRecorder(context, object, transform) | 54 : TransformRecorder(context, object, transform) |
| 55 { | 55 { |
| 56 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { | 56 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { |
| 57 const auto* objectProperties = object.objectPaintProperties(); | 57 const auto* objectProperties = object.objectPaintProperties(); |
| 58 if (!objectProperties) | 58 if (!objectProperties) |
| 59 return; | 59 return; |
| 60 if (object.isSVGRoot()) { | 60 if (object.isSVGRoot()) { |
| 61 // If a transform exists, we can rely on a layer existing to app
ly it. | 61 // If a transform exists, we can rely on a layer existing to app
ly it. |
| 62 DCHECK(!objectProperties || !objectProperties->transform() || ob
ject.hasLayer()); | 62 DCHECK(!objectProperties || !objectProperties->transform() || ob
ject.hasLayer()); |
| 63 if (objectProperties->svgLocalToBorderBoxTransform()) { | 63 if (objectProperties->svgLocalToBorderBoxTransform()) { |
| 64 // FIXME(pdr): Enable the following DCHECK once the pixel sn
apping logic has | 64 DCHECK(objectProperties->svgLocalToBorderBoxTransform()->mat
rix() == transform.toTransformationMatrix()); |
| 65 // been included in svgLocalToBorderBox. | |
| 66 // DCHECK(objectProperties->svgLocalToBorderBoxTransform()->
matrix() == transform.toTransformationMatrix()); | |
| 67 auto& paintController = context.getPaintController(); | 65 auto& paintController = context.getPaintController(); |
| 68 PaintChunkProperties properties(paintController.currentPaint
ChunkProperties()); | 66 PaintChunkProperties properties(paintController.currentPaint
ChunkProperties()); |
| 69 properties.transform = objectProperties->svgLocalToBorderBox
Transform(); | 67 properties.transform = objectProperties->svgLocalToBorderBox
Transform(); |
| 70 m_transformPropertyScope.emplace(paintController, properties
); | 68 m_transformPropertyScope.emplace(paintController, properties
); |
| 71 } | 69 } |
| 72 } else { | 70 } else { |
| 73 DCHECK(object.isSVG()); | 71 DCHECK(object.isSVG()); |
| 74 // Should only be used by LayoutSVGRoot. | 72 // Should only be used by LayoutSVGRoot. |
| 75 DCHECK(!objectProperties->svgLocalToBorderBoxTransform()); | 73 DCHECK(!objectProperties->svgLocalToBorderBoxTransform()); |
| 76 | 74 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 std::unique_ptr<ClipPathRecorder> m_clipPathRecorder; | 139 std::unique_ptr<ClipPathRecorder> m_clipPathRecorder; |
| 142 std::unique_ptr<SVGFilterRecordingContext> m_filterRecordingContext; | 140 std::unique_ptr<SVGFilterRecordingContext> m_filterRecordingContext; |
| 143 #if ENABLE(ASSERT) | 141 #if ENABLE(ASSERT) |
| 144 bool m_applyClipMaskAndFilterIfNecessaryCalled; | 142 bool m_applyClipMaskAndFilterIfNecessaryCalled; |
| 145 #endif | 143 #endif |
| 146 }; | 144 }; |
| 147 | 145 |
| 148 } // namespace blink | 146 } // namespace blink |
| 149 | 147 |
| 150 #endif // SVGPaintContext_h | 148 #endif // SVGPaintContext_h |
| OLD | NEW |