Skip to content
  • commit-queue@webkit.org's avatar
    the imageSmoothingEnabled flag needs to be in the state object · 2e2ac638
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=87853
    
    Patch by Keyar Hood <keyar@chromium.org> on 2012-05-31
    Reviewed by Darin Adler.
    
    Source/WebCore:
    
    Updated fast/canvas/canvas-imageSmoothingEnabled.html instead of
    adding a new test.
    
    The imageSmoothingEnabled flag is saved in the draw state now.
    * html/canvas/CanvasRenderingContext2D.cpp:
    (WebCore::CanvasRenderingContext2D::CanvasRenderingContext2D):
    (WebCore::CanvasRenderingContext2D::State::State):
    (WebCore::CanvasRenderingContext2D::State::operator=):
    (WebCore::CanvasRenderingContext2D::webkitImageSmoothingEnabled):
    (WebCore::CanvasRenderingContext2D::setWebkitImageSmoothingEnabled):
    * html/canvas/CanvasRenderingContext2D.h:
    (State):
    
    LayoutTests:
    
    Updated the test for imageSmoothingEnabled to test that it is saved in
    the draw state.
    
    * fast/canvas/canvas-imageSmoothingEnabled-expected.txt:
    * fast/canvas/script-tests/canvas-imageSmoothingEnabled.js:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119100 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    2e2ac638