| 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 | 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights |
| 8 reserved. | 8 reserved. |
| 9 | 9 |
| 10 This library is free software; you can redistribute it and/or | 10 This library is free software; you can redistribute it and/or |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "core/frame/RootFrameViewport.h" | 35 #include "core/frame/RootFrameViewport.h" |
| 36 #include "core/layout/MapCoordinatesFlags.h" | 36 #include "core/layout/MapCoordinatesFlags.h" |
| 37 #include "core/layout/ScrollAnchor.h" | 37 #include "core/layout/ScrollAnchor.h" |
| 38 #include "core/paint/FirstMeaningfulPaintDetector.h" | 38 #include "core/paint/FirstMeaningfulPaintDetector.h" |
| 39 #include "core/paint/ObjectPaintProperties.h" | 39 #include "core/paint/ObjectPaintProperties.h" |
| 40 #include "core/paint/PaintInvalidationCapableScrollableArea.h" | 40 #include "core/paint/PaintInvalidationCapableScrollableArea.h" |
| 41 #include "core/paint/PaintPhase.h" | 41 #include "core/paint/PaintPhase.h" |
| 42 #include "core/paint/ScrollbarManager.h" | 42 #include "core/paint/ScrollbarManager.h" |
| 43 #include "core/plugins/PluginView.h" | 43 #include "core/plugins/PluginView.h" |
| 44 #include "platform/FrameViewBase.h" | 44 #include "platform/FrameViewBase.h" |
| 45 #include "platform/PlatformFrameView.h" |
| 45 #include "platform/RuntimeEnabledFeatures.h" | 46 #include "platform/RuntimeEnabledFeatures.h" |
| 46 #include "platform/animation/CompositorAnimationHost.h" | 47 #include "platform/animation/CompositorAnimationHost.h" |
| 47 #include "platform/animation/CompositorAnimationTimeline.h" | 48 #include "platform/animation/CompositorAnimationTimeline.h" |
| 48 #include "platform/geometry/IntRect.h" | 49 #include "platform/geometry/IntRect.h" |
| 49 #include "platform/geometry/LayoutRect.h" | 50 #include "platform/geometry/LayoutRect.h" |
| 50 #include "platform/graphics/Color.h" | 51 #include "platform/graphics/Color.h" |
| 51 #include "platform/graphics/CompositorElementId.h" | 52 #include "platform/graphics/CompositorElementId.h" |
| 52 #include "platform/graphics/GraphicsLayerClient.h" | 53 #include "platform/graphics/GraphicsLayerClient.h" |
| 53 #include "platform/scroll/ScrollTypes.h" | 54 #include "platform/scroll/ScrollTypes.h" |
| 54 #include "platform/scroll/Scrollbar.h" | 55 #include "platform/scroll/Scrollbar.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 class ScrollingCoordinator; | 97 class ScrollingCoordinator; |
| 97 class TracedValue; | 98 class TracedValue; |
| 98 class TransformState; | 99 class TransformState; |
| 99 struct AnnotatedRegionValue; | 100 struct AnnotatedRegionValue; |
| 100 struct CompositedSelection; | 101 struct CompositedSelection; |
| 101 | 102 |
| 102 typedef unsigned long long DOMTimeStamp; | 103 typedef unsigned long long DOMTimeStamp; |
| 103 | 104 |
| 104 class CORE_EXPORT FrameView final | 105 class CORE_EXPORT FrameView final |
| 105 : public GarbageCollectedFinalized<FrameView>, | 106 : public GarbageCollectedFinalized<FrameView>, |
| 107 public PlatformFrameView, |
| 106 public FrameViewBase, | 108 public FrameViewBase, |
| 107 public FrameOrPlugin, | 109 public FrameOrPlugin, |
| 108 public PaintInvalidationCapableScrollableArea { | 110 public PaintInvalidationCapableScrollableArea { |
| 109 USING_GARBAGE_COLLECTED_MIXIN(FrameView); | 111 USING_GARBAGE_COLLECTED_MIXIN(FrameView); |
| 110 | 112 |
| 111 friend class PaintControllerPaintTestBase; | 113 friend class PaintControllerPaintTestBase; |
| 112 friend class Internals; | 114 friend class Internals; |
| 113 friend class LayoutPart; // for invalidateTreeIfNeeded | 115 friend class LayoutPart; // for invalidateTreeIfNeeded |
| 114 | 116 |
| 115 public: | 117 public: |
| (...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1261 return; | 1263 return; |
| 1262 visually_non_empty_pixel_count_ += size.Area(); | 1264 visually_non_empty_pixel_count_ += size.Area(); |
| 1263 // Use a threshold value to prevent very small amounts of visible content from | 1265 // Use a threshold value to prevent very small amounts of visible content from |
| 1264 // triggering didMeaningfulLayout. | 1266 // triggering didMeaningfulLayout. |
| 1265 static const unsigned kVisualPixelThreshold = 32 * 32; | 1267 static const unsigned kVisualPixelThreshold = 32 * 32; |
| 1266 if (visually_non_empty_pixel_count_ > kVisualPixelThreshold) | 1268 if (visually_non_empty_pixel_count_ > kVisualPixelThreshold) |
| 1267 SetIsVisuallyNonEmpty(); | 1269 SetIsVisuallyNonEmpty(); |
| 1268 } | 1270 } |
| 1269 | 1271 |
| 1270 DEFINE_TYPE_CASTS(FrameView, | 1272 DEFINE_TYPE_CASTS(FrameView, |
| 1273 PlatformFrameView, |
| 1274 platform_frame_view, |
| 1275 platform_frame_view->IsFrameView(), |
| 1276 platform_frame_view.IsFrameView()); |
| 1277 DEFINE_TYPE_CASTS(FrameView, |
| 1271 FrameViewBase, | 1278 FrameViewBase, |
| 1272 frameViewBase, | 1279 frameViewBase, |
| 1273 frameViewBase->IsFrameView(), | 1280 frameViewBase->IsFrameView(), |
| 1274 frameViewBase.IsFrameView()); | 1281 frameViewBase.IsFrameView()); |
| 1275 DEFINE_TYPE_CASTS(FrameView, | 1282 DEFINE_TYPE_CASTS(FrameView, |
| 1276 ScrollableArea, | 1283 ScrollableArea, |
| 1277 scrollableArea, | 1284 scrollableArea, |
| 1278 scrollableArea->IsFrameView(), | 1285 scrollableArea->IsFrameView(), |
| 1279 scrollableArea.IsFrameView()); | 1286 scrollableArea.IsFrameView()); |
| 1280 | 1287 |
| 1281 } // namespace blink | 1288 } // namespace blink |
| 1282 | 1289 |
| 1283 #endif // FrameView_h | 1290 #endif // FrameView_h |
| OLD | NEW |