OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1268 } | 1268 } |
1269 break; | 1269 break; |
1270 } | 1270 } |
1271 case FilterOperation::BLUR: { | 1271 case FilterOperation::BLUR: { |
1272 float pixelRadius = static_cast<const BlurFilterOperation*>(&op)->st
dDeviation().getFloatValue(); | 1272 float pixelRadius = static_cast<const BlurFilterOperation*>(&op)->st
dDeviation().getFloatValue(); |
1273 webFilters.append(WebFilterOperation::createBlurFilter(pixelRadius))
; | 1273 webFilters.append(WebFilterOperation::createBlurFilter(pixelRadius))
; |
1274 break; | 1274 break; |
1275 } | 1275 } |
1276 case FilterOperation::DROP_SHADOW: { | 1276 case FilterOperation::DROP_SHADOW: { |
1277 const DropShadowFilterOperation& dropShadowOp = *static_cast<const D
ropShadowFilterOperation*>(&op); | 1277 const DropShadowFilterOperation& dropShadowOp = *static_cast<const D
ropShadowFilterOperation*>(&op); |
1278 webFilters.append(WebFilterOperation::createDropShadowFilter(WebPoin
t(dropShadowOp.x(), dropShadowOp.y()), dropShadowOp.stdDeviation(), dropShadowOp
.color().rgb())); | 1278 webFilters.append(WebFilterOperation::createDropShadowFilter(dropSha
dowOp.x(), dropShadowOp.y(), dropShadowOp.stdDeviation(), dropShadowOp.color().r
gb())); |
1279 break; | 1279 break; |
1280 } | 1280 } |
1281 case FilterOperation::CUSTOM: | 1281 case FilterOperation::CUSTOM: |
1282 case FilterOperation::VALIDATED_CUSTOM: | 1282 case FilterOperation::VALIDATED_CUSTOM: |
1283 return false; // Not supported. | 1283 return false; // Not supported. |
1284 case FilterOperation::PASSTHROUGH: | 1284 case FilterOperation::PASSTHROUGH: |
1285 case FilterOperation::NONE: | 1285 case FilterOperation::NONE: |
1286 break; | 1286 break; |
1287 } | 1287 } |
1288 } | 1288 } |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1364 #ifndef NDEBUG | 1364 #ifndef NDEBUG |
1365 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer) | 1365 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer) |
1366 { | 1366 { |
1367 if (!layer) | 1367 if (!layer) |
1368 return; | 1368 return; |
1369 | 1369 |
1370 String output = layer->layerTreeAsText(LayerTreeAsTextDebug | LayerTreeAsTex
tIncludeVisibleRects); | 1370 String output = layer->layerTreeAsText(LayerTreeAsTextDebug | LayerTreeAsTex
tIncludeVisibleRects); |
1371 fprintf(stderr, "%s\n", output.utf8().data()); | 1371 fprintf(stderr, "%s\n", output.utf8().data()); |
1372 } | 1372 } |
1373 #endif | 1373 #endif |
OLD | NEW |