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

Side by Side Diff: third_party/WebKit/Source/core/paint/SVGPaintContext.h

Issue 2430813002: Switch to shorter names for property tree storage and updates (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // display items for spv1. 48 // display items for spv1.
49 class SVGTransformContext : public TransformRecorder { 49 class SVGTransformContext : public TransformRecorder {
50 STACK_ALLOCATED(); 50 STACK_ALLOCATED();
51 51
52 public: 52 public:
53 SVGTransformContext(GraphicsContext& context, 53 SVGTransformContext(GraphicsContext& context,
54 const LayoutObject& object, 54 const LayoutObject& object,
55 const AffineTransform& transform) 55 const AffineTransform& transform)
56 : TransformRecorder(context, object, transform) { 56 : TransformRecorder(context, object, transform) {
57 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { 57 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
58 const auto* objectProperties = object.objectPaintProperties(); 58 const auto* objectProperties = object.paintProperties();
59 if (!objectProperties) 59 if (!objectProperties)
60 return; 60 return;
61 if (object.isSVGRoot()) { 61 if (object.isSVGRoot()) {
62 // If a transform exists, we can rely on a layer existing to apply it. 62 // If a transform exists, we can rely on a layer existing to apply it.
63 DCHECK(!objectProperties || !objectProperties->transform() || 63 DCHECK(!objectProperties || !objectProperties->transform() ||
64 object.hasLayer()); 64 object.hasLayer());
65 if (objectProperties->svgLocalToBorderBoxTransform()) { 65 if (objectProperties->svgLocalToBorderBoxTransform()) {
66 DCHECK(objectProperties->svgLocalToBorderBoxTransform()->matrix() == 66 DCHECK(objectProperties->svgLocalToBorderBoxTransform()->matrix() ==
67 transform.toTransformationMatrix()); 67 transform.toTransformationMatrix());
68 auto& paintController = context.getPaintController(); 68 auto& paintController = context.getPaintController();
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 Optional<ClipPathClipper> m_clipPathClipper; 155 Optional<ClipPathClipper> m_clipPathClipper;
156 std::unique_ptr<SVGFilterRecordingContext> m_filterRecordingContext; 156 std::unique_ptr<SVGFilterRecordingContext> m_filterRecordingContext;
157 #if ENABLE(ASSERT) 157 #if ENABLE(ASSERT)
158 bool m_applyClipMaskAndFilterIfNecessaryCalled; 158 bool m_applyClipMaskAndFilterIfNecessaryCalled;
159 #endif 159 #endif
160 }; 160 };
161 161
162 } // namespace blink 162 } // namespace blink
163 163
164 #endif // SVGPaintContext_h 164 #endif // SVGPaintContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698