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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 void prepareToRenderSVGContent(RenderObject*, PaintInfo&, NeedsGraphicsConte
xtSave = DontSaveGraphicsContext); | 78 void prepareToRenderSVGContent(RenderObject*, PaintInfo&, NeedsGraphicsConte
xtSave = DontSaveGraphicsContext); |
79 bool isRenderingPrepared() const { return m_renderingFlags & RenderingPrepar
ed; } | 79 bool isRenderingPrepared() const { return m_renderingFlags & RenderingPrepar
ed; } |
80 | 80 |
81 static void renderSubtree(GraphicsContext*, RenderObject*, const AffineTrans
form&); | 81 static void renderSubtree(GraphicsContext*, RenderObject*, const AffineTrans
form&); |
82 | 82 |
83 static float calculateScreenFontSizeScalingFactor(const RenderObject*); | 83 static float calculateScreenFontSizeScalingFactor(const RenderObject*); |
84 static void calculateDeviceSpaceTransformation(const RenderObject*, AffineTr
ansform& absoluteTransform); | 84 static void calculateDeviceSpaceTransformation(const RenderObject*, AffineTr
ansform& absoluteTransform); |
85 static FloatRect clampedAbsoluteTargetRect(const FloatRect& absoluteTargetRe
ct); | 85 static FloatRect clampedAbsoluteTargetRect(const FloatRect& absoluteTargetRe
ct); |
86 static void clear2DRotation(AffineTransform&); | 86 static void clear2DRotation(AffineTransform&); |
87 | 87 |
88 static IntRect calculateImageBufferRect(const FloatRect& targetRect, const A
ffineTransform& absoluteTransform) | |
89 { | |
90 return enclosingIntRect(absoluteTransform.mapRect(targetRect)); | |
91 } | |
92 | |
93 // Support for the buffered-rendering hint. | 88 // Support for the buffered-rendering hint. |
94 bool bufferForeground(OwnPtr<ImageBuffer>&); | 89 bool bufferForeground(OwnPtr<ImageBuffer>&); |
95 | 90 |
96 private: | 91 private: |
97 // To properly revert partially successful initializtions in the destructor,
we record all successful steps. | 92 // To properly revert partially successful initializtions in the destructor,
we record all successful steps. |
98 enum RenderingFlags { | 93 enum RenderingFlags { |
99 RenderingPrepared = 1, | 94 RenderingPrepared = 1, |
100 RestoreGraphicsContext = 1 << 1, | 95 RestoreGraphicsContext = 1 << 1, |
101 EndOpacityLayer = 1 << 2, | 96 EndOpacityLayer = 1 << 2, |
102 PostApplyResources = 1 << 3, | 97 PostApplyResources = 1 << 3, |
(...skipping 10 matching lines...) Expand all Loading... |
113 IntRect m_savedPaintRect; | 108 IntRect m_savedPaintRect; |
114 RenderSVGResourceFilter* m_filter; | 109 RenderSVGResourceFilter* m_filter; |
115 RenderSVGResourceClipper* m_clipper; | 110 RenderSVGResourceClipper* m_clipper; |
116 RenderSVGResourceClipper::ClipperState m_clipperState; | 111 RenderSVGResourceClipper::ClipperState m_clipperState; |
117 RenderSVGResourceMasker* m_masker; | 112 RenderSVGResourceMasker* m_masker; |
118 }; | 113 }; |
119 | 114 |
120 } // namespace blink | 115 } // namespace blink |
121 | 116 |
122 #endif // SVGRenderingContext_h | 117 #endif // SVGRenderingContext_h |
OLD | NEW |