Title: [151257] trunk/Source/WebCore
- Revision
- 151257
- Author
- [email protected]
- Date
- 2013-06-05 21:40:12 -0700 (Wed, 05 Jun 2013)
Log Message
Remove unnecessary null check in HTMLCanvasElement.cpp.
Rubber-stamped by Benjamin Poulain.
* html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::getContext):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (151256 => 151257)
--- trunk/Source/WebCore/ChangeLog 2013-06-06 04:35:50 UTC (rev 151256)
+++ trunk/Source/WebCore/ChangeLog 2013-06-06 04:40:12 UTC (rev 151257)
@@ -1,3 +1,12 @@
+2013-06-05 Ryosuke Niwa <[email protected]>
+
+ Remove unnecessary null check in HTMLCanvasElement.cpp.
+
+ Rubber-stamped by Benjamin Poulain.
+
+ * html/HTMLCanvasElement.cpp:
+ (WebCore::HTMLCanvasElement::getContext):
+
2013-06-05 Peter Gal <[email protected]>
[curl] Add implementation for HTTP PUT method.
Modified: trunk/Source/WebCore/html/HTMLCanvasElement.cpp (151256 => 151257)
--- trunk/Source/WebCore/html/HTMLCanvasElement.cpp 2013-06-06 04:35:50 UTC (rev 151256)
+++ trunk/Source/WebCore/html/HTMLCanvasElement.cpp 2013-06-06 04:40:12 UTC (rev 151257)
@@ -193,10 +193,8 @@
#endif
m_context = CanvasRenderingContext2D::create(this, document()->inQuirksMode(), usesDashbardCompatibilityMode);
#if USE(IOSURFACE_CANVAS_BACKING_STORE) || (ENABLE(ACCELERATED_2D_CANVAS) && USE(ACCELERATED_COMPOSITING))
- if (m_context) {
- // Need to make sure a RenderLayer and compositing layer get created for the Canvas
- setNeedsStyleRecalc(SyntheticStyleChange);
- }
+ // Need to make sure a RenderLayer and compositing layer get created for the Canvas
+ setNeedsStyleRecalc(SyntheticStyleChange);
#endif
}
return m_context.get();
@@ -211,10 +209,8 @@
return 0;
if (!m_context) {
m_context = WebGLRenderingContext::create(this, static_cast<WebGLContextAttributes*>(attrs));
- if (m_context) {
- // Need to make sure a RenderLayer and compositing layer get created for the Canvas
- setNeedsStyleRecalc(SyntheticStyleChange);
- }
+ // Need to make sure a RenderLayer and compositing layer get created for the Canvas
+ setNeedsStyleRecalc(SyntheticStyleChange);
}
return m_context.get();
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes