| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 Copyright (C) 1997 Martin Jones (mjones@kde.org) |
| 3 (C) 1998 Waldo Bastian (bastian@kde.org) | 3 (C) 1998 Waldo Bastian (bastian@kde.org) |
| 4 (C) 1998, 1999 Torben Weis (weis@kde.org) | 4 (C) 1998, 1999 Torben Weis (weis@kde.org) |
| 5 (C) 1999 Lars Knoll (knoll@kde.org) | 5 (C) 1999 Lars Knoll (knoll@kde.org) |
| 6 (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 8 | 8 |
| 9 This library is free software; you can redistribute it and/or | 9 This library is free software; you can redistribute it and/or |
| 10 modify it under the terms of the GNU Library General Public | 10 modify it under the terms of the GNU Library General Public |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 bool frameTimingRequestsDirty() { return m_frameTimingRequestsDirty; } | 572 bool frameTimingRequestsDirty() { return m_frameTimingRequestsDirty; } |
| 573 | 573 |
| 574 // Returns true if this frame should not render or schedule visual updates. | 574 // Returns true if this frame should not render or schedule visual updates. |
| 575 bool shouldThrottleRendering() const; | 575 bool shouldThrottleRendering() const; |
| 576 | 576 |
| 577 // Returns true if this frame could potentially skip rendering and avoid | 577 // Returns true if this frame could potentially skip rendering and avoid |
| 578 // scheduling visual updates. | 578 // scheduling visual updates. |
| 579 bool canThrottleRendering() const; | 579 bool canThrottleRendering() const; |
| 580 bool isHiddenForThrottling() const { return m_hiddenForThrottling; } | 580 bool isHiddenForThrottling() const { return m_hiddenForThrottling; } |
| 581 | 581 |
| 582 void invalidatePaintIfNeeded(); |
| 583 void invalidatePaintIfNeededForSlimmingPaintV2() const |
| 584 { |
| 585 ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled()); |
| 586 const_cast<FrameView*>(this)->invalidatePaintIfNeeded(); |
| 587 } |
| 588 |
| 582 // Paint properties for SPv2 Only. | 589 // Paint properties for SPv2 Only. |
| 583 void setPreTranslation(PassRefPtr<TransformPaintPropertyNode> preTranslation
) { m_preTranslation = preTranslation; } | 590 void setPreTranslation(PassRefPtr<TransformPaintPropertyNode> preTranslation
) { m_preTranslation = preTranslation; } |
| 584 TransformPaintPropertyNode* preTranslation() const { return m_preTranslation
.get(); } | 591 TransformPaintPropertyNode* preTranslation() const { return m_preTranslation
.get(); } |
| 585 | 592 |
| 586 void setScrollTranslation(PassRefPtr<TransformPaintPropertyNode> scrollTrans
lation) { m_scrollTranslation = scrollTranslation; } | 593 void setScrollTranslation(PassRefPtr<TransformPaintPropertyNode> scrollTrans
lation) { m_scrollTranslation = scrollTranslation; } |
| 587 TransformPaintPropertyNode* scrollTranslation() const { return m_scrollTrans
lation.get(); } | 594 TransformPaintPropertyNode* scrollTranslation() const { return m_scrollTrans
lation.get(); } |
| 588 | 595 |
| 589 void setContentClip(PassRefPtr<ClipPaintPropertyNode> contentClip) { m_conte
ntClip = contentClip; } | 596 void setContentClip(PassRefPtr<ClipPaintPropertyNode> contentClip) { m_conte
ntClip = contentClip; } |
| 590 ClipPaintPropertyNode* contentClip() const { return m_contentClip.get(); } | 597 ClipPaintPropertyNode* contentClip() const { return m_contentClip.get(); } |
| 591 | 598 |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 941 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
| 935 setIsVisuallyNonEmpty(); | 942 setIsVisuallyNonEmpty(); |
| 936 } | 943 } |
| 937 | 944 |
| 938 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 945 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
| 939 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF
rameView(), scrollableArea.isFrameView()); | 946 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF
rameView(), scrollableArea.isFrameView()); |
| 940 | 947 |
| 941 } // namespace blink | 948 } // namespace blink |
| 942 | 949 |
| 943 #endif // FrameView_h | 950 #endif // FrameView_h |
| OLD | NEW |