| 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 2458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2574 | 2574 |
| 2575 FilterOperations computeFilterOperationsHandleReferenceFilters(const FilterOpera
tions& filters, float effectiveZoom, Node* enclosingNode) | 2575 FilterOperations computeFilterOperationsHandleReferenceFilters(const FilterOpera
tions& filters, float effectiveZoom, Node* enclosingNode) |
| 2576 { | 2576 { |
| 2577 if (filters.hasReferenceFilter()) { | 2577 if (filters.hasReferenceFilter()) { |
| 2578 for (size_t i = 0; i < filters.size(); ++i) { | 2578 for (size_t i = 0; i < filters.size(); ++i) { |
| 2579 FilterOperation* filterOperation = filters.operations().at(i).get(); | 2579 FilterOperation* filterOperation = filters.operations().at(i).get(); |
| 2580 if (filterOperation->type() != FilterOperation::REFERENCE) | 2580 if (filterOperation->type() != FilterOperation::REFERENCE) |
| 2581 continue; | 2581 continue; |
| 2582 ReferenceFilterOperation& referenceOperation = toReferenceFilterOper
ation(*filterOperation); | 2582 ReferenceFilterOperation& referenceOperation = toReferenceFilterOper
ation(*filterOperation); |
| 2583 // FIXME: Cache the Filter if it didn't change. | 2583 // FIXME: Cache the Filter if it didn't change. |
| 2584 RefPtrWillBeRawPtr<Filter> referenceFilter = ReferenceFilterBuilder:
:build(effectiveZoom, toElement(enclosingNode), nullptr, referenceOperation); | 2584 RawPtr<Filter> referenceFilter = ReferenceFilterBuilder::build(effec
tiveZoom, toElement(enclosingNode), nullptr, referenceOperation); |
| 2585 referenceOperation.setFilter(referenceFilter.release()); | 2585 referenceOperation.setFilter(referenceFilter.release()); |
| 2586 } | 2586 } |
| 2587 } | 2587 } |
| 2588 | 2588 |
| 2589 return filters; | 2589 return filters; |
| 2590 } | 2590 } |
| 2591 | 2591 |
| 2592 } // unnamed namespace | 2592 } // unnamed namespace |
| 2593 | 2593 |
| 2594 FilterOperations PaintLayer::computeFilterOperations(const ComputedStyle& style)
const | 2594 FilterOperations PaintLayer::computeFilterOperations(const ComputedStyle& style)
const |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2801 | 2801 |
| 2802 void showLayerTree(const blink::LayoutObject* layoutObject) | 2802 void showLayerTree(const blink::LayoutObject* layoutObject) |
| 2803 { | 2803 { |
| 2804 if (!layoutObject) { | 2804 if (!layoutObject) { |
| 2805 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2805 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
| 2806 return; | 2806 return; |
| 2807 } | 2807 } |
| 2808 showLayerTree(layoutObject->enclosingLayer()); | 2808 showLayerTree(layoutObject->enclosingLayer()); |
| 2809 } | 2809 } |
| 2810 #endif | 2810 #endif |
| OLD | NEW |