| 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 23 matching lines...) Expand all Loading... |
| 34 #include "platform/RuntimeEnabledFeatures.h" | 34 #include "platform/RuntimeEnabledFeatures.h" |
| 35 #include "platform/Widget.h" | 35 #include "platform/Widget.h" |
| 36 #include "platform/geometry/IntRect.h" | 36 #include "platform/geometry/IntRect.h" |
| 37 #include "platform/geometry/LayoutRect.h" | 37 #include "platform/geometry/LayoutRect.h" |
| 38 #include "platform/graphics/Color.h" | 38 #include "platform/graphics/Color.h" |
| 39 #include "platform/scroll/ScrollTypes.h" | 39 #include "platform/scroll/ScrollTypes.h" |
| 40 #include "platform/scroll/ScrollableArea.h" | 40 #include "platform/scroll/ScrollableArea.h" |
| 41 #include "platform/scroll/Scrollbar.h" | 41 #include "platform/scroll/Scrollbar.h" |
| 42 #include "public/platform/WebDisplayMode.h" | 42 #include "public/platform/WebDisplayMode.h" |
| 43 #include "public/platform/WebRect.h" | 43 #include "public/platform/WebRect.h" |
| 44 #include "wtf/Allocator.h" |
| 44 #include "wtf/Forward.h" | 45 #include "wtf/Forward.h" |
| 45 #include "wtf/HashSet.h" | 46 #include "wtf/HashSet.h" |
| 46 #include "wtf/ListHashSet.h" | 47 #include "wtf/ListHashSet.h" |
| 47 #include "wtf/OwnPtr.h" | 48 #include "wtf/OwnPtr.h" |
| 48 #include "wtf/TemporaryChange.h" | 49 #include "wtf/TemporaryChange.h" |
| 49 #include "wtf/text/WTFString.h" | 50 #include "wtf/text/WTFString.h" |
| 50 | 51 |
| 51 namespace blink { | 52 namespace blink { |
| 52 | 53 |
| 53 class AXObjectCache; | 54 class AXObjectCache; |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 Incremental | 579 Incremental |
| 579 }; | 580 }; |
| 580 void computeScrollbarExistence(bool& newHasHorizontalScrollbar, bool& newHas
VerticalScrollbar, const IntSize& docSize, ComputeScrollbarExistenceOption = Fir
stPass) const; | 581 void computeScrollbarExistence(bool& newHasHorizontalScrollbar, bool& newHas
VerticalScrollbar, const IntSize& docSize, ComputeScrollbarExistenceOption = Fir
stPass) const; |
| 581 void updateScrollbarGeometry(); | 582 void updateScrollbarGeometry(); |
| 582 IntRect adjustScrollbarRectForResizer(const IntRect&, Scrollbar*); | 583 IntRect adjustScrollbarRectForResizer(const IntRect&, Scrollbar*); |
| 583 | 584 |
| 584 // Called to update the scrollbars to accurately reflect the state of the vi
ew. | 585 // Called to update the scrollbars to accurately reflect the state of the vi
ew. |
| 585 void updateScrollbars(const DoubleSize& desiredOffset); | 586 void updateScrollbars(const DoubleSize& desiredOffset); |
| 586 | 587 |
| 587 class InUpdateScrollbarsScope { | 588 class InUpdateScrollbarsScope { |
| 589 STACK_ALLOCATED(); |
| 588 public: | 590 public: |
| 589 explicit InUpdateScrollbarsScope(FrameView* view) | 591 explicit InUpdateScrollbarsScope(FrameView* view) |
| 590 : m_scope(view->m_inUpdateScrollbars, true) | 592 : m_scope(view->m_inUpdateScrollbars, true) |
| 591 { } | 593 { } |
| 592 private: | 594 private: |
| 593 TemporaryChange<bool> m_scope; | 595 TemporaryChange<bool> m_scope; |
| 594 }; | 596 }; |
| 595 | 597 |
| 596 // Only for LayoutPart to traverse into sub frames during paint invalidation
. | 598 // Only for LayoutPart to traverse into sub frames during paint invalidation
. |
| 597 void invalidateTreeIfNeeded(PaintInvalidationState&); | 599 void invalidateTreeIfNeeded(PaintInvalidationState&); |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 859 static const unsigned visualPixelThreshold = 32 * 32; | 861 static const unsigned visualPixelThreshold = 32 * 32; |
| 860 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 862 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
| 861 setIsVisuallyNonEmpty(); | 863 setIsVisuallyNonEmpty(); |
| 862 } | 864 } |
| 863 | 865 |
| 864 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 866 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
| 865 | 867 |
| 866 } // namespace blink | 868 } // namespace blink |
| 867 | 869 |
| 868 #endif // FrameView_h | 870 #endif // FrameView_h |
| OLD | NEW |