| 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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 Incremental | 584 Incremental |
| 584 }; | 585 }; |
| 585 void computeScrollbarExistence(bool& newHasHorizontalScrollbar, bool& newHas
VerticalScrollbar, const IntSize& docSize, ComputeScrollbarExistenceOption = Fir
stPass) const; | 586 void computeScrollbarExistence(bool& newHasHorizontalScrollbar, bool& newHas
VerticalScrollbar, const IntSize& docSize, ComputeScrollbarExistenceOption = Fir
stPass) const; |
| 586 void updateScrollbarGeometry(); | 587 void updateScrollbarGeometry(); |
| 587 IntRect adjustScrollbarRectForResizer(const IntRect&, Scrollbar*); | 588 IntRect adjustScrollbarRectForResizer(const IntRect&, Scrollbar*); |
| 588 | 589 |
| 589 // Called to update the scrollbars to accurately reflect the state of the vi
ew. | 590 // Called to update the scrollbars to accurately reflect the state of the vi
ew. |
| 590 void updateScrollbars(const DoubleSize& desiredOffset); | 591 void updateScrollbars(const DoubleSize& desiredOffset); |
| 591 | 592 |
| 592 class InUpdateScrollbarsScope { | 593 class InUpdateScrollbarsScope { |
| 594 STACK_ALLOCATED(); |
| 593 public: | 595 public: |
| 594 explicit InUpdateScrollbarsScope(FrameView* view) | 596 explicit InUpdateScrollbarsScope(FrameView* view) |
| 595 : m_scope(view->m_inUpdateScrollbars, true) | 597 : m_scope(view->m_inUpdateScrollbars, true) |
| 596 { } | 598 { } |
| 597 private: | 599 private: |
| 598 TemporaryChange<bool> m_scope; | 600 TemporaryChange<bool> m_scope; |
| 599 }; | 601 }; |
| 600 | 602 |
| 601 // Only for LayoutPart to traverse into sub frames during paint invalidation
. | 603 // Only for LayoutPart to traverse into sub frames during paint invalidation
. |
| 602 void invalidateTreeIfNeeded(PaintInvalidationState&); | 604 void invalidateTreeIfNeeded(PaintInvalidationState&); |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 864 static const unsigned visualPixelThreshold = 32 * 32; | 866 static const unsigned visualPixelThreshold = 32 * 32; |
| 865 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 867 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
| 866 setIsVisuallyNonEmpty(); | 868 setIsVisuallyNonEmpty(); |
| 867 } | 869 } |
| 868 | 870 |
| 869 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 871 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
| 870 | 872 |
| 871 } // namespace blink | 873 } // namespace blink |
| 872 | 874 |
| 873 #endif // FrameView_h | 875 #endif // FrameView_h |
| OLD | NEW |