Changeset 128196 in webkit


Ignore:
Timestamp:
Sep 11, 2012 9:44:34 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Fix FilterTypeZoom to properly call canvas->restore()
https://bugs.webkit.org/show_bug.cgi?id=96082

Patch by Zach Kuznia <zork@chromium.org> on 2012-09-11
Reviewed by Adrienne Walker.

Source/Platform:

Fix zoom filter to properly indicate that it affects pixels.

  • chromium/src/WebFilterOperations.cpp:

(WebKit::WebFilterOperations::hasFilterThatMovesPixels):
(WebKit::WebFilterOperations::hasFilterThatAffectsOpacity):

Source/WebCore:

Fix zoom filter to properly call canvas->restore()

  • platform/graphics/chromium/cc/CCRenderSurfaceFilters.cpp:

(WebCore::CCRenderSurfaceFilters::apply):

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/Platform/ChangeLog

    r128166 r128196  
     12012-09-11  Zach Kuznia  <zork@chromium.org>
     2
     3        Fix FilterTypeZoom to properly call canvas->restore()
     4        https://bugs.webkit.org/show_bug.cgi?id=96082
     5
     6        Reviewed by Adrienne Walker.
     7
     8        Fix zoom filter to properly indicate that it affects pixels.
     9
     10        * chromium/src/WebFilterOperations.cpp:
     11        (WebKit::WebFilterOperations::hasFilterThatMovesPixels):
     12        (WebKit::WebFilterOperations::hasFilterThatAffectsOpacity):
     13
    1142012-09-11  Tommy Widenflycht  <tommyw@google.com>
    215
  • trunk/Source/Platform/chromium/src/WebFilterOperations.cpp

    r124392 r128196  
    117117        case WebFilterOperation::FilterTypeBlur:
    118118        case WebFilterOperation::FilterTypeDropShadow:
     119        case WebFilterOperation::FilterTypeZoom:
    119120            return true;
    120121        default:
     
    133134        case WebFilterOperation::FilterTypeBlur:
    134135        case WebFilterOperation::FilterTypeDropShadow:
     136        case WebFilterOperation::FilterTypeZoom:
    135137            return true;
    136138        case WebFilterOperation::FilterTypeColorMatrix: {
  • trunk/Source/WebCore/ChangeLog

    r128195 r128196  
     12012-09-11  Zach Kuznia  <zork@chromium.org>
     2
     3        Fix FilterTypeZoom to properly call canvas->restore()
     4        https://bugs.webkit.org/show_bug.cgi?id=96082
     5
     6        Reviewed by Adrienne Walker.
     7
     8        Fix zoom filter to properly call canvas->restore()
     9
     10        * platform/graphics/chromium/cc/CCRenderSurfaceFilters.cpp:
     11        (WebCore::CCRenderSurfaceFilters::apply):
     12
    1132012-09-11  Sergio Villar Senin  <svillar@igalia.com>
    214
  • trunk/Source/WebCore/platform/graphics/chromium/cc/CCRenderSurfaceFilters.cpp

    r126795 r128196  
    442442            canvas->saveLayer(0, &paint);
    443443            canvas->drawBitmap(state.source(), 0, 0);
     444            canvas->restore();
    444445            break;
    445446        }
Note: See TracChangeset for help on using the changeset viewer.