| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 class HTMLFrameOwnerElement; | 56 class HTMLFrameOwnerElement; |
| 57 class LayoutPart; | 57 class LayoutPart; |
| 58 class LocalFrame; | 58 class LocalFrame; |
| 59 class KURL; | 59 class KURL; |
| 60 class Node; | 60 class Node; |
| 61 class LayoutBox; | 61 class LayoutBox; |
| 62 class LayoutEmbeddedObject; | 62 class LayoutEmbeddedObject; |
| 63 class LayoutObject; | 63 class LayoutObject; |
| 64 class LayoutScrollbarPart; | 64 class LayoutScrollbarPart; |
| 65 class LayoutView; | 65 class LayoutView; |
| 66 class PaintInvalidationState; |
| 66 class Page; | 67 class Page; |
| 67 class ScrollingCoordinator; | 68 class ScrollingCoordinator; |
| 68 class TracedValue; | 69 class TracedValue; |
| 69 struct AnnotatedRegionValue; | 70 struct AnnotatedRegionValue; |
| 70 struct CompositedSelection; | 71 struct CompositedSelection; |
| 71 | 72 |
| 72 typedef unsigned long long DOMTimeStamp; | 73 typedef unsigned long long DOMTimeStamp; |
| 73 | 74 |
| 74 class CORE_EXPORT FrameView final : public Widget, public ScrollableArea { | 75 class CORE_EXPORT FrameView final : public Widget, public ScrollableArea { |
| 75 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(FrameView); | 76 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(FrameView); |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 | 591 |
| 591 class InUpdateScrollbarsScope { | 592 class InUpdateScrollbarsScope { |
| 592 public: | 593 public: |
| 593 explicit InUpdateScrollbarsScope(FrameView* view) | 594 explicit InUpdateScrollbarsScope(FrameView* view) |
| 594 : m_scope(view->m_inUpdateScrollbars, true) | 595 : m_scope(view->m_inUpdateScrollbars, true) |
| 595 { } | 596 { } |
| 596 private: | 597 private: |
| 597 TemporaryChange<bool> m_scope; | 598 TemporaryChange<bool> m_scope; |
| 598 }; | 599 }; |
| 599 | 600 |
| 601 // Only for LayoutPart to traverse into sub frames during paint invalidation
. |
| 602 void invalidateTreeIfNeeded(PaintInvalidationState&); |
| 603 |
| 600 private: | 604 private: |
| 601 explicit FrameView(LocalFrame*); | 605 explicit FrameView(LocalFrame*); |
| 602 | 606 |
| 603 virtual void setScrollOffset(const IntPoint&, ScrollType) override; | 607 virtual void setScrollOffset(const IntPoint&, ScrollType) override; |
| 604 virtual void setScrollOffset(const DoublePoint&, ScrollType) override; | 608 virtual void setScrollOffset(const DoublePoint&, ScrollType) override; |
| 605 | 609 |
| 606 void updateLayoutAndStyleForPaintingInternal(); | 610 void updateLayoutAndStyleForPaintingInternal(); |
| 607 void invalidateTreeIfNeededRecursive(); | 611 void invalidateTreeIfNeededRecursive(); |
| 608 void scrollContentsIfNeededRecursive(); | 612 void scrollContentsIfNeededRecursive(); |
| 609 void updateLayoutAndStyleIfNeededRecursive(); | 613 void updateLayoutAndStyleIfNeededRecursive(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 623 void applyOverflowToViewport(LayoutObject*, ScrollbarMode& hMode, ScrollbarM
ode& vMode); | 627 void applyOverflowToViewport(LayoutObject*, ScrollbarMode& hMode, ScrollbarM
ode& vMode); |
| 624 void updateOverflowStatus(bool horizontalOverflow, bool verticalOverflow); | 628 void updateOverflowStatus(bool horizontalOverflow, bool verticalOverflow); |
| 625 | 629 |
| 626 void updateCounters(); | 630 void updateCounters(); |
| 627 void forceLayoutParentViewIfNeeded(); | 631 void forceLayoutParentViewIfNeeded(); |
| 628 void performPreLayoutTasks(); | 632 void performPreLayoutTasks(); |
| 629 void performLayout(bool inSubtreeLayout); | 633 void performLayout(bool inSubtreeLayout); |
| 630 void scheduleOrPerformPostLayoutTasks(); | 634 void scheduleOrPerformPostLayoutTasks(); |
| 631 void performPostLayoutTasks(); | 635 void performPostLayoutTasks(); |
| 632 | 636 |
| 633 void invalidateTreeIfNeeded(Vector<LayoutObject*>& pendingDelayedPaintInvali
dations); | |
| 634 | |
| 635 DocumentLifecycle& lifecycle() const; | 637 DocumentLifecycle& lifecycle() const; |
| 636 | 638 |
| 637 void contentRectangleForPaintInvalidation(const IntRect&); | 639 void contentRectangleForPaintInvalidation(const IntRect&); |
| 638 virtual void contentsResized() override; | 640 virtual void contentsResized() override; |
| 639 void scrollbarExistenceDidChange(); | 641 void scrollbarExistenceDidChange(); |
| 640 | 642 |
| 641 // Override Widget methods to do point conversion via layoutObjects, in orde
r to | 643 // Override Widget methods to do point conversion via layoutObjects, in orde
r to |
| 642 // take transforms into account. | 644 // take transforms into account. |
| 643 virtual IntRect convertToContainingView(const IntRect&) const override; | 645 virtual IntRect convertToContainingView(const IntRect&) const override; |
| 644 virtual IntRect convertFromContainingView(const IntRect&) const override; | 646 virtual IntRect convertFromContainingView(const IntRect&) const override; |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 867 static const unsigned visualPixelThreshold = 32 * 32; | 869 static const unsigned visualPixelThreshold = 32 * 32; |
| 868 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 870 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
| 869 setIsVisuallyNonEmpty(); | 871 setIsVisuallyNonEmpty(); |
| 870 } | 872 } |
| 871 | 873 |
| 872 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 874 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
| 873 | 875 |
| 874 } // namespace blink | 876 } // namespace blink |
| 875 | 877 |
| 876 #endif // FrameView_h | 878 #endif // FrameView_h |
| OLD | NEW |