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 12 matching lines...) Expand all Loading... |
23 */ | 23 */ |
24 | 24 |
25 #ifndef FrameView_h | 25 #ifndef FrameView_h |
26 #define FrameView_h | 26 #define FrameView_h |
27 | 27 |
28 #include "core/CoreExport.h" | 28 #include "core/CoreExport.h" |
29 #include "core/frame/FrameViewAutoSizeInfo.h" | 29 #include "core/frame/FrameViewAutoSizeInfo.h" |
30 #include "core/frame/LayoutSubtreeRootList.h" | 30 #include "core/frame/LayoutSubtreeRootList.h" |
31 #include "core/frame/RootFrameViewport.h" | 31 #include "core/frame/RootFrameViewport.h" |
32 #include "core/layout/LayoutAnalyzer.h" | 32 #include "core/layout/LayoutAnalyzer.h" |
| 33 #include "core/paint/ObjectPaintProperties.h" |
33 #include "core/paint/PaintPhase.h" | 34 #include "core/paint/PaintPhase.h" |
34 #include "platform/RuntimeEnabledFeatures.h" | 35 #include "platform/RuntimeEnabledFeatures.h" |
35 #include "platform/Widget.h" | 36 #include "platform/Widget.h" |
36 #include "platform/geometry/IntRect.h" | 37 #include "platform/geometry/IntRect.h" |
37 #include "platform/geometry/LayoutRect.h" | 38 #include "platform/geometry/LayoutRect.h" |
38 #include "platform/graphics/Color.h" | 39 #include "platform/graphics/Color.h" |
39 #include "platform/scroll/ScrollTypes.h" | 40 #include "platform/scroll/ScrollTypes.h" |
40 #include "platform/scroll/ScrollableArea.h" | 41 #include "platform/scroll/ScrollableArea.h" |
41 #include "platform/scroll/Scrollbar.h" | 42 #include "platform/scroll/Scrollbar.h" |
42 #include "public/platform/WebDisplayMode.h" | 43 #include "public/platform/WebDisplayMode.h" |
(...skipping 26 matching lines...) Expand all Loading... |
69 class LayoutView; | 70 class LayoutView; |
70 class PaintInvalidationState; | 71 class PaintInvalidationState; |
71 class Page; | 72 class Page; |
72 class ScrollingCoordinator; | 73 class ScrollingCoordinator; |
73 class TracedValue; | 74 class TracedValue; |
74 struct AnnotatedRegionValue; | 75 struct AnnotatedRegionValue; |
75 struct CompositedSelection; | 76 struct CompositedSelection; |
76 | 77 |
77 typedef unsigned long long DOMTimeStamp; | 78 typedef unsigned long long DOMTimeStamp; |
78 | 79 |
79 class CORE_EXPORT FrameView final : public Widget, public ScrollableArea { | 80 class CORE_EXPORT FrameView final : public Widget, public ScrollableArea, public
ObjectPaintProperties::Owner { |
80 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(FrameView); | 81 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(FrameView); |
81 | 82 |
82 friend class DisplayItemListPaintTestForSlimmingPaintV2; | 83 friend class DisplayItemListPaintTestForSlimmingPaintV2; |
83 friend class Internals; | 84 friend class Internals; |
84 friend class LayoutPart; // for invalidateTreeIfNeeded | 85 friend class LayoutPart; // for invalidateTreeIfNeeded |
85 | 86 |
86 public: | 87 public: |
87 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*); | 88 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*); |
88 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*, const IntSize&
initialSize); | 89 static PassRefPtrWillBeRawPtr<FrameView> create(LocalFrame*, const IntSize&
initialSize); |
89 | 90 |
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 static const unsigned visualPixelThreshold = 32 * 32; | 856 static const unsigned visualPixelThreshold = 32 * 32; |
856 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 857 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
857 setIsVisuallyNonEmpty(); | 858 setIsVisuallyNonEmpty(); |
858 } | 859 } |
859 | 860 |
860 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 861 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
861 | 862 |
862 } // namespace blink | 863 } // namespace blink |
863 | 864 |
864 #endif // FrameView_h | 865 #endif // FrameView_h |
OLD | NEW |