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

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

Issue 630903003: Move common GC state update code out of paint-server application (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | 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 * 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 static void mapLocalToContainer(const RenderObject*, const RenderLayerModelO bject* paintInvalidationContainer, TransformState&, bool* wasFixed = 0, const Pa intInvalidationState* = 0); 80 static void mapLocalToContainer(const RenderObject*, const RenderLayerModelO bject* paintInvalidationContainer, TransformState&, bool* wasFixed = 0, const Pa intInvalidationState* = 0);
81 static const RenderObject* pushMappingToContainer(const RenderObject*, const RenderLayerModelObject* ancestorToStopAt, RenderGeometryMap&); 81 static const RenderObject* pushMappingToContainer(const RenderObject*, const RenderLayerModelObject* ancestorToStopAt, RenderGeometryMap&);
82 82
83 // Shared between SVG renderers and resources. 83 // Shared between SVG renderers and resources.
84 static void applyStrokeStyleToContext(GraphicsContext*, const RenderStyle*, const RenderObject*); 84 static void applyStrokeStyleToContext(GraphicsContext*, const RenderStyle*, const RenderObject*);
85 static void applyStrokeStyleToStrokeData(StrokeData*, const RenderStyle*, co nst RenderObject*); 85 static void applyStrokeStyleToStrokeData(StrokeData*, const RenderStyle*, co nst RenderObject*);
86 86
87 // Fill and/or stroke the provided |path|. 87 // Fill and/or stroke the provided |path|.
88 static void fillOrStrokePath(GraphicsContext*, unsigned short resourceMode, const Path&); 88 static void fillOrStrokePath(GraphicsContext*, unsigned short resourceMode, const Path&);
89 89
90 // Transfer fill/stroke style (except paint server) to the GC.
91 static void updateGraphicsContext(GraphicsContext*, const RenderStyle*, cons t RenderObject&, unsigned resourceModeFlags);
pdr. 2014/10/07 02:57:48 This seems like a better fit as a protected member
fs 2014/10/07 12:34:20 I can move it there in the interim, but longer ter
92
90 // Determines if any ancestor's transform has changed. 93 // Determines if any ancestor's transform has changed.
91 static bool transformToRootChanged(RenderObject*); 94 static bool transformToRootChanged(RenderObject*);
92 95
93 // FIXME: These methods do not belong here. 96 // FIXME: These methods do not belong here.
94 static const RenderSVGRoot* findTreeRootObject(const RenderObject*); 97 static const RenderSVGRoot* findTreeRootObject(const RenderObject*);
95 98
96 // Helper method for determining if a RenderObject marked as text (isText()= = true) 99 // Helper method for determining if a RenderObject marked as text (isText()= = true)
97 // can/will be rendered as part of a <text>. 100 // can/will be rendered as part of a <text>.
98 static bool isRenderableTextNode(const RenderObject*); 101 static bool isRenderableTextNode(const RenderObject*);
99 102
100 private: 103 private:
101 static void updateObjectBoundingBox(FloatRect& objectBoundingBox, bool& obje ctBoundingBoxValid, RenderObject* other, FloatRect otherBoundingBox); 104 static void updateObjectBoundingBox(FloatRect& objectBoundingBox, bool& obje ctBoundingBoxValid, RenderObject* other, FloatRect otherBoundingBox);
102 static bool layoutSizeOfNearestViewportChanged(const RenderObject* start); 105 static bool layoutSizeOfNearestViewportChanged(const RenderObject* start);
103 }; 106 };
104 107
105 } // namespace blink 108 } // namespace blink
106 109
107 #endif // SVGRenderSupport_h 110 #endif // SVGRenderSupport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698