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

Side by Side Diff: Source/core/rendering/svg/SVGRenderingContext.h

Issue 547723003: Change RenderSVGResourceClipper's ClipperContext class into an enum (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Variables have to be initialized?!? Created 6 years, 3 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 | Annotate | Revision Log
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 }; 46 };
47 47
48 // Does not start rendering. 48 // Does not start rendering.
49 SVGRenderingContext() 49 SVGRenderingContext()
50 : m_renderingFlags(0) 50 : m_renderingFlags(0)
51 , m_object(0) 51 , m_object(0)
52 , m_paintInfo(0) 52 , m_paintInfo(0)
53 , m_savedContext(0) 53 , m_savedContext(0)
54 , m_filter(0) 54 , m_filter(0)
55 , m_clipper(0) 55 , m_clipper(0)
56 , m_clipperState(RenderSVGResourceClipper::ClipperNotApplied)
56 , m_masker(0) 57 , m_masker(0)
57 { 58 {
58 } 59 }
59 60
60 SVGRenderingContext(RenderObject* object, PaintInfo& paintinfo, NeedsGraphic sContextSave needsGraphicsContextSave = DontSaveGraphicsContext) 61 SVGRenderingContext(RenderObject* object, PaintInfo& paintinfo, NeedsGraphic sContextSave needsGraphicsContextSave = DontSaveGraphicsContext)
61 : m_renderingFlags(0) 62 : m_renderingFlags(0)
62 , m_object(0) 63 , m_object(0)
63 , m_paintInfo(0) 64 , m_paintInfo(0)
64 , m_savedContext(0) 65 , m_savedContext(0)
65 , m_filter(0) 66 , m_filter(0)
66 , m_clipper(0) 67 , m_clipper(0)
68 , m_clipperState(RenderSVGResourceClipper::ClipperNotApplied)
67 , m_masker(0) 69 , m_masker(0)
68 { 70 {
69 prepareToRenderSVGContent(object, paintinfo, needsGraphicsContextSave); 71 prepareToRenderSVGContent(object, paintinfo, needsGraphicsContextSave);
70 } 72 }
71 73
72 // Automatically finishes context rendering. 74 // Automatically finishes context rendering.
73 ~SVGRenderingContext(); 75 ~SVGRenderingContext();
74 76
75 // Used by all SVG renderers who apply clip/filter/etc. resources to the ren derer content. 77 // Used by all SVG renderers who apply clip/filter/etc. resources to the ren derer content.
76 void prepareToRenderSVGContent(RenderObject*, PaintInfo&, NeedsGraphicsConte xtSave = DontSaveGraphicsContext); 78 void prepareToRenderSVGContent(RenderObject*, PaintInfo&, NeedsGraphicsConte xtSave = DontSaveGraphicsContext);
(...skipping 27 matching lines...) Expand all
104 // List of those flags which require actions during the destructor. 106 // List of those flags which require actions during the destructor.
105 const static int ActionsNeeded = RestoreGraphicsContext | EndOpacityLayer | PostApplyResources; 107 const static int ActionsNeeded = RestoreGraphicsContext | EndOpacityLayer | PostApplyResources;
106 108
107 int m_renderingFlags; 109 int m_renderingFlags;
108 RenderObject* m_object; 110 RenderObject* m_object;
109 PaintInfo* m_paintInfo; 111 PaintInfo* m_paintInfo;
110 GraphicsContext* m_savedContext; 112 GraphicsContext* m_savedContext;
111 IntRect m_savedPaintRect; 113 IntRect m_savedPaintRect;
112 RenderSVGResourceFilter* m_filter; 114 RenderSVGResourceFilter* m_filter;
113 RenderSVGResourceClipper* m_clipper; 115 RenderSVGResourceClipper* m_clipper;
114 ClipperContext m_clipperContext; 116 RenderSVGResourceClipper::ClipperState m_clipperState;
115 RenderSVGResourceMasker* m_masker; 117 RenderSVGResourceMasker* m_masker;
116 }; 118 };
117 119
118 } // namespace blink 120 } // namespace blink
119 121
120 #endif // SVGRenderingContext_h 122 #endif // SVGRenderingContext_h
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceClipper.cpp ('k') | Source/core/rendering/svg/SVGRenderingContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698