| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 class LocalFrame; | 72 class LocalFrame; |
| 73 class KURL; | 73 class KURL; |
| 74 class Node; | 74 class Node; |
| 75 class LayoutAnalyzer; | 75 class LayoutAnalyzer; |
| 76 class LayoutBox; | 76 class LayoutBox; |
| 77 class LayoutEmbeddedObject; | 77 class LayoutEmbeddedObject; |
| 78 class LayoutObject; | 78 class LayoutObject; |
| 79 class LayoutReplaced; | 79 class LayoutReplaced; |
| 80 class LayoutScrollbarPart; | 80 class LayoutScrollbarPart; |
| 81 class LayoutView; | 81 class LayoutView; |
| 82 class PaintArtifactCompositor; |
| 82 class PaintController; | 83 class PaintController; |
| 83 class PaintInvalidationState; | 84 class PaintInvalidationState; |
| 84 class Page; | 85 class Page; |
| 85 class ScrollingCoordinator; | 86 class ScrollingCoordinator; |
| 86 class TracedValue; | 87 class TracedValue; |
| 87 struct AnnotatedRegionValue; | 88 struct AnnotatedRegionValue; |
| 88 struct CompositedSelection; | 89 struct CompositedSelection; |
| 89 | 90 |
| 90 typedef unsigned long long DOMTimeStamp; | 91 typedef unsigned long long DOMTimeStamp; |
| 91 | 92 |
| (...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 | 947 |
| 947 // For testing. | 948 // For testing. |
| 948 struct ObjectPaintInvalidation { | 949 struct ObjectPaintInvalidation { |
| 949 String name; | 950 String name; |
| 950 PaintInvalidationReason reason; | 951 PaintInvalidationReason reason; |
| 951 }; | 952 }; |
| 952 std::unique_ptr<Vector<ObjectPaintInvalidation>> m_trackedObjectPaintInvalid
ations; | 953 std::unique_ptr<Vector<ObjectPaintInvalidation>> m_trackedObjectPaintInvalid
ations; |
| 953 | 954 |
| 954 // For Slimming Paint v2 only. | 955 // For Slimming Paint v2 only. |
| 955 std::unique_ptr<PaintController> m_paintController; | 956 std::unique_ptr<PaintController> m_paintController; |
| 957 std::unique_ptr<PaintArtifactCompositor> m_paintArtifactCompositor; |
| 956 }; | 958 }; |
| 957 | 959 |
| 958 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) | 960 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) |
| 959 { | 961 { |
| 960 if (m_isVisuallyNonEmpty) | 962 if (m_isVisuallyNonEmpty) |
| 961 return; | 963 return; |
| 962 m_visuallyNonEmptyCharacterCount += count; | 964 m_visuallyNonEmptyCharacterCount += count; |
| 963 // Use a threshold value to prevent very small amounts of visible content fr
om triggering didMeaningfulLayout. | 965 // Use a threshold value to prevent very small amounts of visible content fr
om triggering didMeaningfulLayout. |
| 964 // The first few hundred characters rarely contain the interesting content o
f the page. | 966 // The first few hundred characters rarely contain the interesting content o
f the page. |
| 965 static const unsigned visualCharacterThreshold = 200; | 967 static const unsigned visualCharacterThreshold = 200; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 977 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 979 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
| 978 setIsVisuallyNonEmpty(); | 980 setIsVisuallyNonEmpty(); |
| 979 } | 981 } |
| 980 | 982 |
| 981 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 983 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
| 982 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF
rameView(), scrollableArea.isFrameView()); | 984 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF
rameView(), scrollableArea.isFrameView()); |
| 983 | 985 |
| 984 } // namespace blink | 986 } // namespace blink |
| 985 | 987 |
| 986 #endif // FrameView_h | 988 #endif // FrameView_h |
| OLD | NEW |