| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 namespace { | 95 namespace { |
| 96 | 96 |
| 97 static CompositingQueryMode gCompositingQueryMode = | 97 static CompositingQueryMode gCompositingQueryMode = |
| 98 CompositingQueriesAreOnlyAllowedInCertainDocumentLifecyclePhases; | 98 CompositingQueriesAreOnlyAllowedInCertainDocumentLifecyclePhases; |
| 99 | 99 |
| 100 struct SameSizeAsPaintLayer : DisplayItemClient { | 100 struct SameSizeAsPaintLayer : DisplayItemClient { |
| 101 int bitFields; | 101 int bitFields; |
| 102 void* pointers[9]; | 102 void* pointers[9]; |
| 103 LayoutUnit layoutUnits[4]; | 103 LayoutUnit layoutUnits[4]; |
| 104 IntSize size; | 104 IntSize size; |
| 105 OwnPtrWillBePersistent<PaintLayerScrollableArea> scrollableArea; | 105 Persistent<PaintLayerScrollableArea> scrollableArea; |
| 106 struct { | 106 struct { |
| 107 IntRect rect; | 107 IntRect rect; |
| 108 void* pointers[2]; | 108 void* pointers[2]; |
| 109 } ancestorCompositingInputs; | 109 } ancestorCompositingInputs; |
| 110 struct { | 110 struct { |
| 111 IntSize size; | 111 IntSize size; |
| 112 void* pointer; | 112 void* pointer; |
| 113 LayoutRect rect; | 113 LayoutRect rect; |
| 114 } previousPaintStatus; | 114 } previousPaintStatus; |
| 115 }; | 115 }; |
| (...skipping 2468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2584 | 2584 |
| 2585 FilterOperations computeFilterOperationsHandleReferenceFilters(const FilterOpera
tions& filters, float effectiveZoom, Node* enclosingNode) | 2585 FilterOperations computeFilterOperationsHandleReferenceFilters(const FilterOpera
tions& filters, float effectiveZoom, Node* enclosingNode) |
| 2586 { | 2586 { |
| 2587 if (filters.hasReferenceFilter()) { | 2587 if (filters.hasReferenceFilter()) { |
| 2588 for (size_t i = 0; i < filters.size(); ++i) { | 2588 for (size_t i = 0; i < filters.size(); ++i) { |
| 2589 FilterOperation* filterOperation = filters.operations().at(i).get(); | 2589 FilterOperation* filterOperation = filters.operations().at(i).get(); |
| 2590 if (filterOperation->type() != FilterOperation::REFERENCE) | 2590 if (filterOperation->type() != FilterOperation::REFERENCE) |
| 2591 continue; | 2591 continue; |
| 2592 ReferenceFilterOperation& referenceOperation = toReferenceFilterOper
ation(*filterOperation); | 2592 ReferenceFilterOperation& referenceOperation = toReferenceFilterOper
ation(*filterOperation); |
| 2593 // FIXME: Cache the Filter if it didn't change. | 2593 // FIXME: Cache the Filter if it didn't change. |
| 2594 RefPtrWillBeRawPtr<Filter> referenceFilter = ReferenceFilterBuilder:
:build(effectiveZoom, toElement(enclosingNode), nullptr, referenceOperation); | 2594 RawPtr<Filter> referenceFilter = ReferenceFilterBuilder::build(effec
tiveZoom, toElement(enclosingNode), nullptr, referenceOperation); |
| 2595 referenceOperation.setFilter(referenceFilter.release()); | 2595 referenceOperation.setFilter(referenceFilter.release()); |
| 2596 } | 2596 } |
| 2597 } | 2597 } |
| 2598 | 2598 |
| 2599 return filters; | 2599 return filters; |
| 2600 } | 2600 } |
| 2601 | 2601 |
| 2602 } // unnamed namespace | 2602 } // unnamed namespace |
| 2603 | 2603 |
| 2604 FilterOperations PaintLayer::computeFilterOperations(const ComputedStyle& style)
const | 2604 FilterOperations PaintLayer::computeFilterOperations(const ComputedStyle& style)
const |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2817 | 2817 |
| 2818 void showLayerTree(const blink::LayoutObject* layoutObject) | 2818 void showLayerTree(const blink::LayoutObject* layoutObject) |
| 2819 { | 2819 { |
| 2820 if (!layoutObject) { | 2820 if (!layoutObject) { |
| 2821 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2821 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
| 2822 return; | 2822 return; |
| 2823 } | 2823 } |
| 2824 showLayerTree(layoutObject->enclosingLayer()); | 2824 showLayerTree(layoutObject->enclosingLayer()); |
| 2825 } | 2825 } |
| 2826 #endif | 2826 #endif |
| OLD | NEW |