| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 void removeSlowRepaintObject(); | 210 void removeSlowRepaintObject(); |
| 211 bool hasSlowRepaintObjects() const { return m_slowRepaintObjectCount; } | 211 bool hasSlowRepaintObjects() const { return m_slowRepaintObjectCount; } |
| 212 | 212 |
| 213 // Includes fixed- and sticky-position objects. | 213 // Includes fixed- and sticky-position objects. |
| 214 typedef HashSet<RenderObject*> ViewportConstrainedObjectSet; | 214 typedef HashSet<RenderObject*> ViewportConstrainedObjectSet; |
| 215 void addViewportConstrainedObject(RenderObject*); | 215 void addViewportConstrainedObject(RenderObject*); |
| 216 void removeViewportConstrainedObject(RenderObject*); | 216 void removeViewportConstrainedObject(RenderObject*); |
| 217 const ViewportConstrainedObjectSet* viewportConstrainedObjects() const { ret
urn m_viewportConstrainedObjects.get(); } | 217 const ViewportConstrainedObjectSet* viewportConstrainedObjects() const { ret
urn m_viewportConstrainedObjects.get(); } |
| 218 bool hasViewportConstrainedObjects() const { return m_viewportConstrainedObj
ects && m_viewportConstrainedObjects->size() > 0; } | 218 bool hasViewportConstrainedObjects() const { return m_viewportConstrainedObj
ects && m_viewportConstrainedObjects->size() > 0; } |
| 219 | 219 |
| 220 void setHasFixedRootBackgroundLayer(bool hasLayer) { m_hasFixedRootBackgroun
dLayer = hasLayer; } |
| 221 bool hasFixedRootBackgroundLayer() const { return m_hasFixedRootBackgroundLa
yer; } |
| 222 |
| 220 // Functions for querying the current scrolled position, negating the effect
s of overhang | 223 // Functions for querying the current scrolled position, negating the effect
s of overhang |
| 221 // and adjusting for page scale. | 224 // and adjusting for page scale. |
| 222 IntSize scrollOffsetForFixedPosition() const; | 225 IntSize scrollOffsetForFixedPosition() const; |
| 223 // Static function can be called from another thread. | 226 // Static function can be called from another thread. |
| 224 static IntSize scrollOffsetForFixedPosition(const IntRect& visibleContentRec
t, const IntSize& totalContentsSize, const IntPoint& scrollPosition, const IntPo
int& scrollOrigin, float frameScaleFactor, bool fixedElementsLayoutRelativeToFra
me, int headerHeight, int footerHeight); | 227 static IntSize scrollOffsetForFixedPosition(const IntRect& visibleContentRec
t, const IntSize& totalContentsSize, const IntPoint& scrollPosition, const IntPo
int& scrollOrigin, float frameScaleFactor, bool fixedElementsLayoutRelativeToFra
me, int headerHeight, int footerHeight); |
| 225 | 228 |
| 226 bool fixedElementsLayoutRelativeToFrame() const; | 229 bool fixedElementsLayoutRelativeToFrame() const; |
| 227 | 230 |
| 228 void beginDeferredRepaints(); | 231 void beginDeferredRepaints(); |
| 229 void endDeferredRepaints(); | 232 void endDeferredRepaints(); |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 bool m_inAutoSize; | 593 bool m_inAutoSize; |
| 591 // True if autosize has been run since m_shouldAutoSize was set. | 594 // True if autosize has been run since m_shouldAutoSize was set. |
| 592 bool m_didRunAutosize; | 595 bool m_didRunAutosize; |
| 593 // The lower bound on the size when autosizing. | 596 // The lower bound on the size when autosizing. |
| 594 IntSize m_minAutoSize; | 597 IntSize m_minAutoSize; |
| 595 // The upper bound on the size when autosizing. | 598 // The upper bound on the size when autosizing. |
| 596 IntSize m_maxAutoSize; | 599 IntSize m_maxAutoSize; |
| 597 | 600 |
| 598 OwnPtr<ScrollableAreaSet> m_scrollableAreas; | 601 OwnPtr<ScrollableAreaSet> m_scrollableAreas; |
| 599 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; | 602 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; |
| 603 bool m_hasFixedRootBackgroundLayer; |
| 600 | 604 |
| 601 int m_headerHeight; | 605 int m_headerHeight; |
| 602 int m_footerHeight; | 606 int m_footerHeight; |
| 603 | 607 |
| 604 static double s_normalDeferredRepaintDelay; | 608 static double s_normalDeferredRepaintDelay; |
| 605 static double s_initialDeferredRepaintDelayDuringLoading; | 609 static double s_initialDeferredRepaintDelayDuringLoading; |
| 606 static double s_maxDeferredRepaintDelayDuringLoading; | 610 static double s_maxDeferredRepaintDelayDuringLoading; |
| 607 static double s_deferredRepaintDelayIncrementDuringLoading; | 611 static double s_deferredRepaintDelayIncrementDuringLoading; |
| 608 | 612 |
| 609 #if ENABLE(CSS_FILTERS) | 613 #if ENABLE(CSS_FILTERS) |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 ASSERT(!widget || widget->isFrameView()); | 664 ASSERT(!widget || widget->isFrameView()); |
| 661 return static_cast<const FrameView*>(widget); | 665 return static_cast<const FrameView*>(widget); |
| 662 } | 666 } |
| 663 | 667 |
| 664 // This will catch anyone doing an unnecessary cast. | 668 // This will catch anyone doing an unnecessary cast. |
| 665 void toFrameView(const FrameView*); | 669 void toFrameView(const FrameView*); |
| 666 | 670 |
| 667 } // namespace WebCore | 671 } // namespace WebCore |
| 668 | 672 |
| 669 #endif // FrameView_h | 673 #endif // FrameView_h |
| OLD | NEW |