| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
| 3 * | 3 * |
| 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
| 5 * | 5 * |
| 6 * Other contributors: | 6 * Other contributors: |
| 7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
| 8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
| 9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
| 10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 #include "core/layout/svg/ReferenceFilterBuilder.h" | 71 #include "core/layout/svg/ReferenceFilterBuilder.h" |
| 72 #include "core/page/Page.h" | 72 #include "core/page/Page.h" |
| 73 #include "core/page/scrolling/ScrollingCoordinator.h" | 73 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 74 #include "core/paint/FilterEffectBuilder.h" | 74 #include "core/paint/FilterEffectBuilder.h" |
| 75 #include "platform/LengthFunctions.h" | 75 #include "platform/LengthFunctions.h" |
| 76 #include "platform/RuntimeEnabledFeatures.h" | 76 #include "platform/RuntimeEnabledFeatures.h" |
| 77 #include "platform/TraceEvent.h" | 77 #include "platform/TraceEvent.h" |
| 78 #include "platform/geometry/FloatPoint3D.h" | 78 #include "platform/geometry/FloatPoint3D.h" |
| 79 #include "platform/geometry/FloatRect.h" | 79 #include "platform/geometry/FloatRect.h" |
| 80 #include "platform/geometry/TransformState.h" | 80 #include "platform/geometry/TransformState.h" |
| 81 #include "platform/graphics/filters/ReferenceFilter.h" | 81 #include "platform/graphics/filters/Filter.h" |
| 82 #include "platform/graphics/filters/SourceGraphic.h" | 82 #include "platform/graphics/filters/SourceGraphic.h" |
| 83 #include "platform/transforms/ScaleTransformOperation.h" | 83 #include "platform/transforms/ScaleTransformOperation.h" |
| 84 #include "platform/transforms/TransformationMatrix.h" | 84 #include "platform/transforms/TransformationMatrix.h" |
| 85 #include "platform/transforms/TranslateTransformOperation.h" | 85 #include "platform/transforms/TranslateTransformOperation.h" |
| 86 #include "public/platform/Platform.h" | 86 #include "public/platform/Platform.h" |
| 87 #include "wtf/Partitions.h" | 87 #include "wtf/Partitions.h" |
| 88 #include "wtf/StdLibExtras.h" | 88 #include "wtf/StdLibExtras.h" |
| 89 #include "wtf/text/CString.h" | 89 #include "wtf/text/CString.h" |
| 90 | 90 |
| 91 namespace blink { | 91 namespace blink { |
| (...skipping 2444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2536 namespace { | 2536 namespace { |
| 2537 | 2537 |
| 2538 FilterOperations computeFilterOperationsHandleReferenceFilters(const FilterOpera
tions& filters, float effectiveZoom, Node* enclosingElement) | 2538 FilterOperations computeFilterOperationsHandleReferenceFilters(const FilterOpera
tions& filters, float effectiveZoom, Node* enclosingElement) |
| 2539 { | 2539 { |
| 2540 if (filters.hasReferenceFilter()) { | 2540 if (filters.hasReferenceFilter()) { |
| 2541 for (size_t i = 0; i < filters.size(); ++i) { | 2541 for (size_t i = 0; i < filters.size(); ++i) { |
| 2542 FilterOperation* filterOperation = filters.operations().at(i).get(); | 2542 FilterOperation* filterOperation = filters.operations().at(i).get(); |
| 2543 if (filterOperation->type() != FilterOperation::REFERENCE) | 2543 if (filterOperation->type() != FilterOperation::REFERENCE) |
| 2544 continue; | 2544 continue; |
| 2545 ReferenceFilterOperation& referenceOperation = toReferenceFilterOper
ation(*filterOperation); | 2545 ReferenceFilterOperation& referenceOperation = toReferenceFilterOper
ation(*filterOperation); |
| 2546 // FIXME: Cache the ReferenceFilter if it didn't change. | 2546 // FIXME: Cache the Filter if it didn't change. |
| 2547 RefPtrWillBeRawPtr<ReferenceFilter> referenceFilter = ReferenceFilte
rBuilder::build(effectiveZoom, toElement(enclosingElement), nullptr, referenceOp
eration); | 2547 RefPtrWillBeRawPtr<Filter> referenceFilter = ReferenceFilterBuilder:
:build(effectiveZoom, toElement(enclosingElement), nullptr, referenceOperation); |
| 2548 referenceOperation.setFilter(referenceFilter.release()); | 2548 referenceOperation.setFilter(referenceFilter.release()); |
| 2549 } | 2549 } |
| 2550 } | 2550 } |
| 2551 | 2551 |
| 2552 return filters; | 2552 return filters; |
| 2553 } | 2553 } |
| 2554 | 2554 |
| 2555 } // unnamed namespace | 2555 } // unnamed namespace |
| 2556 | 2556 |
| 2557 FilterOperations DeprecatedPaintLayer::computeFilterOperations(const ComputedSty
le& style) | 2557 FilterOperations DeprecatedPaintLayer::computeFilterOperations(const ComputedSty
le& style) |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2711 | 2711 |
| 2712 void showLayerTree(const blink::LayoutObject* layoutObject) | 2712 void showLayerTree(const blink::LayoutObject* layoutObject) |
| 2713 { | 2713 { |
| 2714 if (!layoutObject) { | 2714 if (!layoutObject) { |
| 2715 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2715 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
| 2716 return; | 2716 return; |
| 2717 } | 2717 } |
| 2718 showLayerTree(layoutObject->enclosingLayer()); | 2718 showLayerTree(layoutObject->enclosingLayer()); |
| 2719 } | 2719 } |
| 2720 #endif | 2720 #endif |
| OLD | NEW |