Chromium Code Reviews| 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 public: | 76 public: |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 548 | 549 |
| 549 LayoutAnalyzer* layoutAnalyzer() { return m_analyzer.get(); } | 550 LayoutAnalyzer* layoutAnalyzer() { return m_analyzer.get(); } |
| 550 | 551 |
| 551 // Returns true if the default scrolling direction is vertical. i.e. writing mode | 552 // Returns true if the default scrolling direction is vertical. i.e. writing mode |
| 552 // is horiziontal. In a vertical document, a spacebar scrolls down. | 553 // is horiziontal. In a vertical document, a spacebar scrolls down. |
| 553 bool isVerticalDocument() const; | 554 bool isVerticalDocument() const; |
| 554 | 555 |
| 555 // Returns true if the document's writing mode is right-to-left or bottom-to -top. | 556 // Returns true if the document's writing mode is right-to-left or bottom-to -top. |
| 556 bool isFlippedDocument() const; | 557 bool isFlippedDocument() const; |
| 557 | 558 |
| 559 void invalidateTreeIfNeeded(PaintInvalidationState&); | |
|
chrishtr
2015/06/29 23:32:22
Add a note that you shouldn't add a new top-level
Xianzhu
2015/06/30 00:02:12
In the new patch set I keep it private, and add 'f
| |
| 560 | |
| 558 protected: | 561 protected: |
| 559 // Scroll the content via the compositor. | 562 // Scroll the content via the compositor. |
| 560 bool scrollContentsFastPath(const IntSize& scrollDelta); | 563 bool scrollContentsFastPath(const IntSize& scrollDelta); |
| 561 | 564 |
| 562 // Scroll the content by invalidating everything. | 565 // Scroll the content by invalidating everything. |
| 563 void scrollContentsSlowPath(const IntRect& updateRect); | 566 void scrollContentsSlowPath(const IntRect& updateRect); |
| 564 | 567 |
| 565 // Prevents creation of scrollbars. Used to prevent drawing two sets of | 568 // Prevents creation of scrollbars. Used to prevent drawing two sets of |
| 566 // overlay scrollbars in the case of the pinch viewport. | 569 // overlay scrollbars in the case of the pinch viewport. |
| 567 bool scrollbarsDisabled() const; | 570 bool scrollbarsDisabled() const; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 623 void applyOverflowToViewport(LayoutObject*, ScrollbarMode& hMode, ScrollbarM ode& vMode); | 626 void applyOverflowToViewport(LayoutObject*, ScrollbarMode& hMode, ScrollbarM ode& vMode); |
| 624 void updateOverflowStatus(bool horizontalOverflow, bool verticalOverflow); | 627 void updateOverflowStatus(bool horizontalOverflow, bool verticalOverflow); |
| 625 | 628 |
| 626 void updateCounters(); | 629 void updateCounters(); |
| 627 void forceLayoutParentViewIfNeeded(); | 630 void forceLayoutParentViewIfNeeded(); |
| 628 void performPreLayoutTasks(); | 631 void performPreLayoutTasks(); |
| 629 void performLayout(bool inSubtreeLayout); | 632 void performLayout(bool inSubtreeLayout); |
| 630 void scheduleOrPerformPostLayoutTasks(); | 633 void scheduleOrPerformPostLayoutTasks(); |
| 631 void performPostLayoutTasks(); | 634 void performPostLayoutTasks(); |
| 632 | 635 |
| 633 void invalidateTreeIfNeeded(Vector<LayoutObject*>& pendingDelayedPaintInvali dations); | |
| 634 | |
| 635 DocumentLifecycle& lifecycle() const; | 636 DocumentLifecycle& lifecycle() const; |
| 636 | 637 |
| 637 void contentRectangleForPaintInvalidation(const IntRect&); | 638 void contentRectangleForPaintInvalidation(const IntRect&); |
| 638 virtual void contentsResized() override; | 639 virtual void contentsResized() override; |
| 639 void scrollbarExistenceDidChange(); | 640 void scrollbarExistenceDidChange(); |
| 640 | 641 |
| 641 // Override Widget methods to do point conversion via layoutObjects, in orde r to | 642 // Override Widget methods to do point conversion via layoutObjects, in orde r to |
| 642 // take transforms into account. | 643 // take transforms into account. |
| 643 virtual IntRect convertToContainingView(const IntRect&) const override; | 644 virtual IntRect convertToContainingView(const IntRect&) const override; |
| 644 virtual IntRect convertFromContainingView(const IntRect&) const override; | 645 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; | 868 static const unsigned visualPixelThreshold = 32 * 32; |
| 868 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 869 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
| 869 setIsVisuallyNonEmpty(); | 870 setIsVisuallyNonEmpty(); |
| 870 } | 871 } |
| 871 | 872 |
| 872 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); | 873 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); |
| 873 | 874 |
| 874 } // namespace blink | 875 } // namespace blink |
| 875 | 876 |
| 876 #endif // FrameView_h | 877 #endif // FrameView_h |
| OLD | NEW |