Changeset 94951 in webkit


Ignore:
Timestamp:
Sep 12, 2011 2:48:39 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Shrink CanvasGradient for builds without ENABLE(DASHBOARD_SUPPORT).
https://bugs.webkit.org/show_bug.cgi?id=67916

Patch by Andreas Kling <kling@webkit.org> on 2011-09-12
Reviewed by Kenneth Rohde Christiansen.

  • html/canvas/CanvasGradient.cpp:

(WebCore::CanvasGradient::CanvasGradient):
(WebCore::CanvasGradient::addColorStop):

  • html/canvas/CanvasGradient.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r94947 r94951  
     12011-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
    1132011-09-12  Shinya Kawanaka  <shinyak@google.com>
    214
  • trunk/Source/WebCore/html/canvas/CanvasGradient.cpp

    r69755 r94951  
    3737CanvasGradient::CanvasGradient(const FloatPoint& p0, const FloatPoint& p1)
    3838    : m_gradient(Gradient::create(p0, p1))
     39#if ENABLE(DASHBOARD_SUPPORT)
    3940    , m_dashbardCompatibilityMode(false)
     41#endif
    4042{
    4143}
     
    4345CanvasGradient::CanvasGradient(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1)
    4446    : m_gradient(Gradient::create(p0, r0, p1, r1))
     47#if ENABLE(DASHBOARD_SUPPORT)
    4548    , m_dashbardCompatibilityMode(false)
     49#endif
    4650{
    4751}
     
    5660    RGBA32 rgba = 0;
    5761    if (!parseColorOrCurrentColor(rgba, color, 0 /*canvas*/)) {
     62#if ENABLE(DASHBOARD_SUPPORT)
    5863        if (!m_dashbardCompatibilityMode)
    5964            ec = SYNTAX_ERR;
     65#else
     66        ec = SYNTAX_ERR;
     67#endif
    6068        return;
    6169    }
  • trunk/Source/WebCore/html/canvas/CanvasGradient.h

    r65021 r94951  
    6363       
    6464        RefPtr<Gradient> m_gradient;
     65#if ENABLE(DASHBOARD_SUPPORT)
    6566        bool m_dashbardCompatibilityMode;
     67#endif
    6668    };
    6769
Note: See TracChangeset for help on using the changeset viewer.