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

Side by Side Diff: third_party/WebKit/Source/core/paint/SVGMaskPainter.cpp

Issue 2789533003: [SPv2] Stop recording paired display items (except for subsequence markers) (Closed)
Patch Set: none Created 3 years, 8 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/paint/SVGMaskPainter.h" 5 #include "core/paint/SVGMaskPainter.h"
6 6
7 #include "core/layout/svg/LayoutSVGResourceMasker.h" 7 #include "core/layout/svg/LayoutSVGResourceMasker.h"
8 #include "core/paint/LayoutObjectDrawingRecorder.h" 8 #include "core/paint/LayoutObjectDrawingRecorder.h"
9 #include "core/paint/ObjectPaintProperties.h" 9 #include "core/paint/ObjectPaintProperties.h"
10 #include "core/paint/PaintInfo.h" 10 #include "core/paint/PaintInfo.h"
11 #include "core/paint/TransformRecorder.h"
12 #include "platform/graphics/paint/CompositingDisplayItem.h" 11 #include "platform/graphics/paint/CompositingDisplayItem.h"
13 #include "platform/graphics/paint/CompositingRecorder.h" 12 #include "platform/graphics/paint/CompositingRecorder.h"
14 #include "platform/graphics/paint/DrawingDisplayItem.h" 13 #include "platform/graphics/paint/DrawingDisplayItem.h"
15 #include "platform/graphics/paint/PaintController.h" 14 #include "platform/graphics/paint/PaintController.h"
16 #include "platform/graphics/paint/ScopedPaintChunkProperties.h" 15 #include "platform/graphics/paint/ScopedPaintChunkProperties.h"
17 16
18 namespace blink { 17 namespace blink {
19 18
20 bool SVGMaskPainter::prepareEffect(const LayoutObject& object, 19 bool SVGMaskPainter::prepareEffect(const LayoutObject& object,
21 GraphicsContext& context) { 20 GraphicsContext& context) {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 78
80 LayoutObjectDrawingRecorder drawingRecorder( 79 LayoutObjectDrawingRecorder drawingRecorder(
81 context, layoutObject, DisplayItem::kSVGMask, targetVisualRect); 80 context, layoutObject, DisplayItem::kSVGMask, targetVisualRect);
82 context.save(); 81 context.save();
83 context.concatCTM(contentTransformation); 82 context.concatCTM(contentTransformation);
84 context.drawRecord(std::move(record)); 83 context.drawRecord(std::move(record));
85 context.restore(); 84 context.restore();
86 } 85 }
87 86
88 } // namespace blink 87 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698