OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
4 * | 4 * |
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
6 * | 6 * |
7 * Other contributors: | 7 * Other contributors: |
8 * Robert O'Callahan <roc+@cs.cmu.edu> | 8 * Robert O'Callahan <roc+@cs.cmu.edu> |
9 * David Baron <dbaron@fas.harvard.edu> | 9 * David Baron <dbaron@fas.harvard.edu> |
10 * Christian Biesinger <cbiesinger@web.de> | 10 * Christian Biesinger <cbiesinger@web.de> |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #include "core/paint/DeprecatedPaintLayerReflectionInfo.h" | 53 #include "core/paint/DeprecatedPaintLayerReflectionInfo.h" |
54 #include "core/paint/DeprecatedPaintLayerScrollableArea.h" | 54 #include "core/paint/DeprecatedPaintLayerScrollableArea.h" |
55 #include "core/paint/DeprecatedPaintLayerStackingNode.h" | 55 #include "core/paint/DeprecatedPaintLayerStackingNode.h" |
56 #include "core/paint/DeprecatedPaintLayerStackingNodeIterator.h" | 56 #include "core/paint/DeprecatedPaintLayerStackingNodeIterator.h" |
57 #include "platform/graphics/CompositingReasons.h" | 57 #include "platform/graphics/CompositingReasons.h" |
58 #include "public/platform/WebBlendMode.h" | 58 #include "public/platform/WebBlendMode.h" |
59 #include "wtf/OwnPtr.h" | 59 #include "wtf/OwnPtr.h" |
60 | 60 |
61 namespace blink { | 61 namespace blink { |
62 | 62 |
63 class FilterEffectRenderer; | 63 class FilterEffectBuilder; |
64 class FilterOperations; | 64 class FilterOperations; |
65 class HitTestRequest; | 65 class HitTestRequest; |
66 class HitTestResult; | 66 class HitTestResult; |
67 class HitTestingTransformState; | 67 class HitTestingTransformState; |
68 class DeprecatedPaintLayerCompositor; | 68 class DeprecatedPaintLayerCompositor; |
69 class CompositedDeprecatedPaintLayerMapping; | 69 class CompositedDeprecatedPaintLayerMapping; |
70 class ComputedStyle; | 70 class ComputedStyle; |
71 class TransformationMatrix; | 71 class TransformationMatrix; |
72 | 72 |
73 enum IncludeSelfOrNot { IncludeSelf, ExcludeSelf }; | 73 enum IncludeSelfOrNot { IncludeSelf, ExcludeSelf }; |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 | 341 |
342 // Returns true if background phase is painted opaque in the given rect. | 342 // Returns true if background phase is painted opaque in the given rect. |
343 // The query rect is given in local coordinates. | 343 // The query rect is given in local coordinates. |
344 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const; | 344 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const; |
345 | 345 |
346 bool containsDirtyOverlayScrollbars() const { return m_containsDirtyOverlayS
crollbars; } | 346 bool containsDirtyOverlayScrollbars() const { return m_containsDirtyOverlayS
crollbars; } |
347 void setContainsDirtyOverlayScrollbars(bool dirtyScrollbars) { m_containsDir
tyOverlayScrollbars = dirtyScrollbars; } | 347 void setContainsDirtyOverlayScrollbars(bool dirtyScrollbars) { m_containsDir
tyOverlayScrollbars = dirtyScrollbars; } |
348 | 348 |
349 FilterOperations computeFilterOperations(const ComputedStyle&); | 349 FilterOperations computeFilterOperations(const ComputedStyle&); |
350 bool paintsWithFilters() const; | 350 bool paintsWithFilters() const; |
351 FilterEffectRenderer* filterRenderer() const | 351 FilterEffectBuilder* filterEffectBuilder() const |
352 { | 352 { |
353 DeprecatedPaintLayerFilterInfo* filterInfo = this->filterInfo(); | 353 DeprecatedPaintLayerFilterInfo* filterInfo = this->filterInfo(); |
354 return filterInfo ? filterInfo->renderer() : 0; | 354 return filterInfo ? filterInfo->builder() : 0; |
355 } | 355 } |
356 | 356 |
357 DeprecatedPaintLayerFilterInfo* filterInfo() const { return hasFilterInfo()
? DeprecatedPaintLayerFilterInfo::filterInfoForLayer(this) : 0; } | 357 DeprecatedPaintLayerFilterInfo* filterInfo() const { return hasFilterInfo()
? DeprecatedPaintLayerFilterInfo::filterInfoForLayer(this) : 0; } |
358 DeprecatedPaintLayerFilterInfo* ensureFilterInfo() { return DeprecatedPaintL
ayerFilterInfo::createFilterInfoForLayerIfNeeded(this); } | 358 DeprecatedPaintLayerFilterInfo* ensureFilterInfo() { return DeprecatedPaintL
ayerFilterInfo::createFilterInfoForLayerIfNeeded(this); } |
359 void removeFilterInfoIfNeeded() | 359 void removeFilterInfoIfNeeded() |
360 { | 360 { |
361 if (hasFilterInfo()) | 361 if (hasFilterInfo()) |
362 DeprecatedPaintLayerFilterInfo::removeFilterInfoForLayer(this); | 362 DeprecatedPaintLayerFilterInfo::removeFilterInfoForLayer(this); |
363 } | 363 } |
364 | 364 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 | 486 |
487 bool hasCompositingDescendant() const { ASSERT(isAllowedToQueryCompositingSt
ate()); return m_hasCompositingDescendant; } | 487 bool hasCompositingDescendant() const { ASSERT(isAllowedToQueryCompositingSt
ate()); return m_hasCompositingDescendant; } |
488 void setHasCompositingDescendant(bool); | 488 void setHasCompositingDescendant(bool); |
489 | 489 |
490 bool shouldIsolateCompositedDescendants() const { ASSERT(isAllowedToQueryCom
positingState()); return m_shouldIsolateCompositedDescendants; } | 490 bool shouldIsolateCompositedDescendants() const { ASSERT(isAllowedToQueryCom
positingState()); return m_shouldIsolateCompositedDescendants; } |
491 void setShouldIsolateCompositedDescendants(bool); | 491 void setShouldIsolateCompositedDescendants(bool); |
492 | 492 |
493 void updateDescendantDependentFlags(); | 493 void updateDescendantDependentFlags(); |
494 void updateDescendantDependentFlagsForEntireSubtree(); | 494 void updateDescendantDependentFlagsForEntireSubtree(); |
495 | 495 |
496 void updateOrRemoveFilterEffectRenderer(); | 496 void updateOrRemoveFilterEffectBuilder(); |
497 | 497 |
498 void updateSelfPaintingLayer(); | 498 void updateSelfPaintingLayer(); |
499 | 499 |
500 DeprecatedPaintLayer* enclosingTransformedAncestor() const; | 500 DeprecatedPaintLayer* enclosingTransformedAncestor() const; |
501 LayoutPoint computeOffsetFromTransformedAncestor() const; | 501 LayoutPoint computeOffsetFromTransformedAncestor() const; |
502 | 502 |
503 void didUpdateNeedsCompositedScrolling(); | 503 void didUpdateNeedsCompositedScrolling(); |
504 | 504 |
505 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); | 505 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); |
506 | 506 |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
726 | 726 |
727 } // namespace blink | 727 } // namespace blink |
728 | 728 |
729 #ifndef NDEBUG | 729 #ifndef NDEBUG |
730 // Outside the WebCore namespace for ease of invocation from gdb. | 730 // Outside the WebCore namespace for ease of invocation from gdb. |
731 void showLayerTree(const blink::DeprecatedPaintLayer*); | 731 void showLayerTree(const blink::DeprecatedPaintLayer*); |
732 void showLayerTree(const blink::LayoutObject*); | 732 void showLayerTree(const blink::LayoutObject*); |
733 #endif | 733 #endif |
734 | 734 |
735 #endif // Layer_h | 735 #endif // Layer_h |
OLD | NEW |