| 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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 ScrollingCoordinator* GetScrollingCoordinator(); | 577 ScrollingCoordinator* GetScrollingCoordinator(); |
| 578 | 578 |
| 579 // Returns true if the element or any ancestor is transformed. | 579 // Returns true if the element or any ancestor is transformed. |
| 580 bool CompositesWithTransform() const; | 580 bool CompositesWithTransform() const; |
| 581 | 581 |
| 582 // Returns true if the element or any ancestor has non 1 opacity. | 582 // Returns true if the element or any ancestor has non 1 opacity. |
| 583 bool CompositesWithOpacity() const; | 583 bool CompositesWithOpacity() const; |
| 584 | 584 |
| 585 bool PaintsWithTransform(GlobalPaintFlags) const; | 585 bool PaintsWithTransform(GlobalPaintFlags) const; |
| 586 | 586 |
| 587 bool SupportsSubsequenceCaching() const; |
| 588 |
| 587 // Returns true if background phase is painted opaque in the given rect. | 589 // Returns true if background phase is painted opaque in the given rect. |
| 588 // The query rect is given in local coordinates. | 590 // The query rect is given in local coordinates. |
| 589 bool BackgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const; | 591 bool BackgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const; |
| 590 | 592 |
| 591 bool ContainsDirtyOverlayScrollbars() const { | 593 bool ContainsDirtyOverlayScrollbars() const { |
| 592 return contains_dirty_overlay_scrollbars_; | 594 return contains_dirty_overlay_scrollbars_; |
| 593 } | 595 } |
| 594 void SetContainsDirtyOverlayScrollbars(bool dirty_scrollbars) { | 596 void SetContainsDirtyOverlayScrollbars(bool dirty_scrollbars) { |
| 595 contains_dirty_overlay_scrollbars_ = dirty_scrollbars; | 597 contains_dirty_overlay_scrollbars_ = dirty_scrollbars; |
| 596 } | 598 } |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 void SetPreviousScrollOffsetAccumulationForPainting(const IntSize& s) { | 923 void SetPreviousScrollOffsetAccumulationForPainting(const IntSize& s) { |
| 922 previous_scroll_offset_accumulation_for_painting_ = s; | 924 previous_scroll_offset_accumulation_for_painting_ = s; |
| 923 } | 925 } |
| 924 | 926 |
| 925 ClipRects* PreviousPaintingClipRects() const { | 927 ClipRects* PreviousPaintingClipRects() const { |
| 926 return previous_painting_clip_rects_.Get(); | 928 return previous_painting_clip_rects_.Get(); |
| 927 } | 929 } |
| 928 void SetPreviousPaintingClipRects(ClipRects& clip_rects) { | 930 void SetPreviousPaintingClipRects(ClipRects& clip_rects) { |
| 929 previous_painting_clip_rects_ = &clip_rects; | 931 previous_painting_clip_rects_ = &clip_rects; |
| 930 } | 932 } |
| 933 void ClearPreviousPaintingClipRects() { |
| 934 previous_painting_clip_rects_.Clear(); |
| 935 } |
| 931 | 936 |
| 932 LayoutRect PreviousPaintDirtyRect() const { | 937 LayoutRect PreviousPaintDirtyRect() const { |
| 933 return previous_paint_dirty_rect_; | 938 return previous_paint_dirty_rect_; |
| 934 } | 939 } |
| 935 void SetPreviousPaintDirtyRect(const LayoutRect& rect) { | 940 void SetPreviousPaintDirtyRect(const LayoutRect& rect) { |
| 936 previous_paint_dirty_rect_ = rect; | 941 previous_paint_dirty_rect_ = rect; |
| 937 } | 942 } |
| 938 | 943 |
| 939 PaintResult PreviousPaintResult() const { | 944 PaintResult PreviousPaintResult() const { |
| 940 return static_cast<PaintResult>(previous_paint_result_); | 945 return static_cast<PaintResult>(previous_paint_result_); |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1272 | 1277 |
| 1273 } // namespace blink | 1278 } // namespace blink |
| 1274 | 1279 |
| 1275 #ifndef NDEBUG | 1280 #ifndef NDEBUG |
| 1276 // Outside the WebCore namespace for ease of invocation from gdb. | 1281 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1277 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); | 1282 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); |
| 1278 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); | 1283 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); |
| 1279 #endif | 1284 #endif |
| 1280 | 1285 |
| 1281 #endif // Layer_h | 1286 #endif // Layer_h |
| OLD | NEW |