Changeset 94951 in webkit
- Timestamp:
- Sep 12, 2011 2:48:39 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r94947 r94951 1 2011-09-12 Andreas Kling <kling@webkit.org> 2 3 Shrink CanvasGradient for builds without ENABLE(DASHBOARD_SUPPORT). 4 https://bugs.webkit.org/show_bug.cgi?id=67916 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 * html/canvas/CanvasGradient.cpp: 9 (WebCore::CanvasGradient::CanvasGradient): 10 (WebCore::CanvasGradient::addColorStop): 11 * html/canvas/CanvasGradient.h: 12 1 13 2011-09-12 Shinya Kawanaka <shinyak@google.com> 2 14 -
trunk/Source/WebCore/html/canvas/CanvasGradient.cpp
r69755 r94951 37 37 CanvasGradient::CanvasGradient(const FloatPoint& p0, const FloatPoint& p1) 38 38 : m_gradient(Gradient::create(p0, p1)) 39 #if ENABLE(DASHBOARD_SUPPORT) 39 40 , m_dashbardCompatibilityMode(false) 41 #endif 40 42 { 41 43 } … … 43 45 CanvasGradient::CanvasGradient(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1) 44 46 : m_gradient(Gradient::create(p0, r0, p1, r1)) 47 #if ENABLE(DASHBOARD_SUPPORT) 45 48 , m_dashbardCompatibilityMode(false) 49 #endif 46 50 { 47 51 } … … 56 60 RGBA32 rgba = 0; 57 61 if (!parseColorOrCurrentColor(rgba, color, 0 /*canvas*/)) { 62 #if ENABLE(DASHBOARD_SUPPORT) 58 63 if (!m_dashbardCompatibilityMode) 59 64 ec = SYNTAX_ERR; 65 #else 66 ec = SYNTAX_ERR; 67 #endif 60 68 return; 61 69 } -
trunk/Source/WebCore/html/canvas/CanvasGradient.h
r65021 r94951 63 63 64 64 RefPtr<Gradient> m_gradient; 65 #if ENABLE(DASHBOARD_SUPPORT) 65 66 bool m_dashbardCompatibilityMode; 67 #endif 66 68 }; 67 69
Note: See TracChangeset
for help on using the changeset viewer.