| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 bool isTransparent() const; | 134 bool isTransparent() const; |
| 135 void setTransparent(bool isTransparent); | 135 void setTransparent(bool isTransparent); |
| 136 | 136 |
| 137 // True if the FrameView is not transparent, and the base background color i
s opaque. | 137 // True if the FrameView is not transparent, and the base background color i
s opaque. |
| 138 bool hasOpaqueBackground() const; | 138 bool hasOpaqueBackground() const; |
| 139 | 139 |
| 140 Color baseBackgroundColor() const; | 140 Color baseBackgroundColor() const; |
| 141 void setBaseBackgroundColor(const Color&); | 141 void setBaseBackgroundColor(const Color&); |
| 142 void updateBackgroundRecursively(const Color&, bool); | 142 void updateBackgroundRecursively(const Color&, bool); |
| 143 | 143 |
| 144 bool shouldUpdateWhileOffscreen() const; | |
| 145 void setShouldUpdateWhileOffscreen(bool); | |
| 146 bool shouldUpdate() const; | |
| 147 | |
| 148 void adjustViewSize(); | 144 void adjustViewSize(); |
| 149 | 145 |
| 150 virtual IntRect windowClipRect(bool clipToContents = true) const OVERRIDE; | 146 virtual IntRect windowClipRect(bool clipToContents = true) const OVERRIDE; |
| 151 IntRect windowClipRectForFrameOwner(const HTMLFrameOwnerElement*, bool clipT
oLayerContents) const; | 147 IntRect windowClipRectForFrameOwner(const HTMLFrameOwnerElement*, bool clipT
oLayerContents) const; |
| 152 | 148 |
| 153 virtual IntRect windowResizerRect() const OVERRIDE; | 149 virtual IntRect windowResizerRect() const OVERRIDE; |
| 154 | 150 |
| 155 virtual float visibleContentScaleFactor() const OVERRIDE { return m_visibleC
ontentScaleFactor; } | 151 virtual float visibleContentScaleFactor() const OVERRIDE { return m_visibleC
ontentScaleFactor; } |
| 156 void setVisibleContentScaleFactor(float); | 152 void setVisibleContentScaleFactor(float); |
| 157 | 153 |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 | 496 |
| 501 unsigned m_repaintCount; | 497 unsigned m_repaintCount; |
| 502 Vector<LayoutRect> m_repaintRects; | 498 Vector<LayoutRect> m_repaintRects; |
| 503 Timer<FrameView> m_deferredRepaintTimer; | 499 Timer<FrameView> m_deferredRepaintTimer; |
| 504 double m_deferredRepaintDelay; | 500 double m_deferredRepaintDelay; |
| 505 double m_lastPaintTime; | 501 double m_lastPaintTime; |
| 506 | 502 |
| 507 bool m_isTrackingRepaints; // Used for testing. | 503 bool m_isTrackingRepaints; // Used for testing. |
| 508 Vector<IntRect> m_trackedRepaintRects; | 504 Vector<IntRect> m_trackedRepaintRects; |
| 509 | 505 |
| 510 bool m_shouldUpdateWhileOffscreen; | |
| 511 | |
| 512 RefPtr<Node> m_nodeToDraw; | 506 RefPtr<Node> m_nodeToDraw; |
| 513 PaintBehavior m_paintBehavior; | 507 PaintBehavior m_paintBehavior; |
| 514 bool m_isPainting; | 508 bool m_isPainting; |
| 515 | 509 |
| 516 unsigned m_visuallyNonEmptyCharacterCount; | 510 unsigned m_visuallyNonEmptyCharacterCount; |
| 517 unsigned m_visuallyNonEmptyPixelCount; | 511 unsigned m_visuallyNonEmptyPixelCount; |
| 518 bool m_isVisuallyNonEmpty; | 512 bool m_isVisuallyNonEmpty; |
| 519 bool m_firstVisuallyNonEmptyLayoutCallbackPending; | 513 bool m_firstVisuallyNonEmptyLayoutCallbackPending; |
| 520 | 514 |
| 521 RefPtr<Node> m_maintainScrollPositionAnchor; | 515 RefPtr<Node> m_maintainScrollPositionAnchor; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 static const unsigned visualPixelThreshold = 32 * 32; | 568 static const unsigned visualPixelThreshold = 32 * 32; |
| 575 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 569 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
| 576 setIsVisuallyNonEmpty(); | 570 setIsVisuallyNonEmpty(); |
| 577 } | 571 } |
| 578 | 572 |
| 579 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 573 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
| 580 | 574 |
| 581 } // namespace WebCore | 575 } // namespace WebCore |
| 582 | 576 |
| 583 #endif // FrameView_h | 577 #endif // FrameView_h |
| OLD | NEW |