Title: [95198] trunk/Source/WebCore
- Revision
- 95198
- Author
- commit-qu...@webkit.org
- Date
- 2011-09-15 10:11:16 -0700 (Thu, 15 Sep 2011)
Log Message
CanvasRenderingContext2D::State copy ctor should use initializer list.
https://bugs.webkit.org/show_bug.cgi?id=68152
Patch by Andreas Kling <kl...@webkit.org> on 2011-09-15
Reviewed by Darin Adler.
* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::State::State):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (95197 => 95198)
--- trunk/Source/WebCore/ChangeLog 2011-09-15 16:54:57 UTC (rev 95197)
+++ trunk/Source/WebCore/ChangeLog 2011-09-15 17:11:16 UTC (rev 95198)
@@ -1,5 +1,15 @@
2011-09-15 Andreas Kling <kl...@webkit.org>
+ CanvasRenderingContext2D::State copy ctor should use initializer list.
+ https://bugs.webkit.org/show_bug.cgi?id=68152
+
+ Reviewed by Darin Adler.
+
+ * html/canvas/CanvasRenderingContext2D.cpp:
+ (WebCore::CanvasRenderingContext2D::State::State):
+
+2011-09-15 Andreas Kling <kl...@webkit.org>
+
Don't bother calculating dirty rect for accelerated 2D canvases.
https://bugs.webkit.org/show_bug.cgi?id=68158
Modified: trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp (95197 => 95198)
--- trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp 2011-09-15 16:54:57 UTC (rev 95197)
+++ trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp 2011-09-15 17:11:16 UTC (rev 95198)
@@ -205,28 +205,27 @@
CanvasRenderingContext2D::State::State(const State& other)
: FontSelectorClient()
+ , m_unparsedStrokeColor(other.m_unparsedStrokeColor)
+ , m_unparsedFillColor(other.m_unparsedFillColor)
+ , m_strokeStyle(other.m_strokeStyle)
+ , m_fillStyle(other.m_fillStyle)
+ , m_lineWidth(other.m_lineWidth)
+ , m_lineCap(other.m_lineCap)
+ , m_lineJoin(other.m_lineJoin)
+ , m_miterLimit(other.m_miterLimit)
+ , m_shadowOffset(other.m_shadowOffset)
+ , m_shadowBlur(other.m_shadowBlur)
+ , m_shadowColor(other.m_shadowColor)
+ , m_globalAlpha(other.m_globalAlpha)
+ , m_globalComposite(other.m_globalComposite)
+ , m_transform(other.m_transform)
+ , m_invertibleCTM(other.m_invertibleCTM)
+ , m_textAlign(other.m_textAlign)
+ , m_textBaseline(other.m_textBaseline)
+ , m_unparsedFont(other.m_unparsedFont)
+ , m_font(other.m_font)
+ , m_realizedFont(other.m_realizedFont)
{
- m_unparsedStrokeColor = other.m_unparsedStrokeColor;
- m_unparsedFillColor = other.m_unparsedFillColor;
- m_strokeStyle = other.m_strokeStyle;
- m_fillStyle = other.m_fillStyle;
- m_lineWidth = other.m_lineWidth;
- m_lineCap = other.m_lineCap;
- m_lineJoin = other.m_lineJoin;
- m_miterLimit = other.m_miterLimit;
- m_shadowOffset = other.m_shadowOffset;
- m_shadowBlur = other.m_shadowBlur;
- m_shadowColor = other.m_shadowColor;
- m_globalAlpha = other.m_globalAlpha;
- m_globalComposite = other.m_globalComposite;
- m_transform = other.m_transform;
- m_invertibleCTM = other.m_invertibleCTM;
- m_textAlign = other.m_textAlign;
- m_textBaseline = other.m_textBaseline;
- m_unparsedFont = other.m_unparsedFont;
- m_font = other.m_font;
- m_realizedFont = other.m_realizedFont;
-
if (m_realizedFont)
m_font.fontSelector()->registerForInvalidationCallbacks(this);
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes