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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 class ScrollingCoordinator; | 75 class ScrollingCoordinator; |
76 class TracedValue; | 76 class TracedValue; |
77 struct AnnotatedRegionValue; | 77 struct AnnotatedRegionValue; |
78 struct CompositedSelection; | 78 struct CompositedSelection; |
79 | 79 |
80 typedef unsigned long long DOMTimeStamp; | 80 typedef unsigned long long DOMTimeStamp; |
81 | 81 |
82 class CORE_EXPORT FrameView final : public Widget, public ScrollableArea { | 82 class CORE_EXPORT FrameView final : public Widget, public ScrollableArea { |
83 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(FrameView); | 83 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(FrameView); |
84 | 84 |
85 friend class PaintControllerPaintTestForSlimmingPaintV2; | 85 friend class PaintControllerPaintTestBase; |
86 friend class Internals; | 86 friend class Internals; |
87 friend class LayoutPart; // for invalidateTreeIfNeeded | 87 friend class LayoutPart; // for invalidateTreeIfNeeded |
88 | 88 |
89 public: | 89 public: |
90 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*); | 90 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*); |
91 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*, const IntSize&
initialSize); | 91 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*, const IntSize&
initialSize); |
92 | 92 |
93 ~FrameView() override; | 93 ~FrameView() override; |
94 | 94 |
95 void invalidateRect(const IntRect&) override; | 95 void invalidateRect(const IntRect&) override; |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 // LayoutObject for the viewport-defining element (see Document::viewportDef
iningElement). | 731 // LayoutObject for the viewport-defining element (see Document::viewportDef
iningElement). |
732 LayoutObject* viewportLayoutObject(); | 732 LayoutObject* viewportLayoutObject(); |
733 | 733 |
734 void collectAnnotatedRegions(LayoutObject&, Vector<AnnotatedRegionValue>&) c
onst; | 734 void collectAnnotatedRegions(LayoutObject&, Vector<AnnotatedRegionValue>&) c
onst; |
735 | 735 |
736 typedef WTF::HashMap <const GraphicsLayer*, Vector<std::pair<int64_t, WebRec
t>>> GraphicsLayerFrameTimingRequests; | 736 typedef WTF::HashMap <const GraphicsLayer*, Vector<std::pair<int64_t, WebRec
t>>> GraphicsLayerFrameTimingRequests; |
737 void updateFrameTimingRequestsIfNeeded(); | 737 void updateFrameTimingRequestsIfNeeded(); |
738 void collectFrameTimingRequests(GraphicsLayerFrameTimingRequests&); | 738 void collectFrameTimingRequests(GraphicsLayerFrameTimingRequests&); |
739 void collectFrameTimingRequestsRecursive(GraphicsLayerFrameTimingRequests&); | 739 void collectFrameTimingRequestsRecursive(GraphicsLayerFrameTimingRequests&); |
740 | 740 |
741 template <typename Function> void forAllFrameViews(Function); | 741 template <typename Function> void forAllNonThrottlingFrameViews(Function); |
742 | 742 |
743 void setNeedsUpdateViewportIntersection(); | 743 void setNeedsUpdateViewportIntersection(); |
744 void updateViewportIntersectionsForSubtree(); | 744 void updateViewportIntersectionsForSubtree(); |
745 void updateViewportIntersectionIfNeeded(); | 745 void updateViewportIntersectionIfNeeded(); |
746 void notifyIntersectionObservers(); | 746 void notifyIntersectionObservers(); |
747 | 747 |
748 LayoutSize m_size; | 748 LayoutSize m_size; |
749 | 749 |
750 typedef HashSet<RefPtr<LayoutEmbeddedObject>> EmbeddedObjectSet; | 750 typedef HashSet<RefPtr<LayoutEmbeddedObject>> EmbeddedObjectSet; |
751 EmbeddedObjectSet m_partUpdateSet; | 751 EmbeddedObjectSet m_partUpdateSet; |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
905 static const unsigned visualPixelThreshold = 32 * 32; | 905 static const unsigned visualPixelThreshold = 32 * 32; |
906 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 906 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
907 setIsVisuallyNonEmpty(); | 907 setIsVisuallyNonEmpty(); |
908 } | 908 } |
909 | 909 |
910 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 910 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
911 | 911 |
912 } // namespace blink | 912 } // namespace blink |
913 | 913 |
914 #endif // FrameView_h | 914 #endif // FrameView_h |
OLD | NEW |