| 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 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 905 RefPtr<TransformPaintPropertyNode> m_preTranslation; | 905 RefPtr<TransformPaintPropertyNode> m_preTranslation; |
| 906 RefPtr<TransformPaintPropertyNode> m_scrollTranslation; | 906 RefPtr<TransformPaintPropertyNode> m_scrollTranslation; |
| 907 // The content clip clips the document (= LayoutView) but not the scrollbars
. | 907 // The content clip clips the document (= LayoutView) but not the scrollbars
. |
| 908 // TODO(trchen): This will not be needed once settings->rootLayerScrolls() i
s enabled. | 908 // TODO(trchen): This will not be needed once settings->rootLayerScrolls() i
s enabled. |
| 909 RefPtr<ClipPaintPropertyNode> m_contentClip; | 909 RefPtr<ClipPaintPropertyNode> m_contentClip; |
| 910 | 910 |
| 911 bool m_isUpdatingAllLifecyclePhases; | 911 bool m_isUpdatingAllLifecyclePhases; |
| 912 ScrollAnchor m_scrollAnchor; | 912 ScrollAnchor m_scrollAnchor; |
| 913 | 913 |
| 914 bool m_needsScrollbarsUpdate; | 914 bool m_needsScrollbarsUpdate; |
| 915 bool m_suppressAdjustViewSize; |
| 915 }; | 916 }; |
| 916 | 917 |
| 917 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) | 918 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) |
| 918 { | 919 { |
| 919 if (m_isVisuallyNonEmpty) | 920 if (m_isVisuallyNonEmpty) |
| 920 return; | 921 return; |
| 921 m_visuallyNonEmptyCharacterCount += count; | 922 m_visuallyNonEmptyCharacterCount += count; |
| 922 // Use a threshold value to prevent very small amounts of visible content fr
om triggering didMeaningfulLayout. | 923 // Use a threshold value to prevent very small amounts of visible content fr
om triggering didMeaningfulLayout. |
| 923 // The first few hundred characters rarely contain the interesting content o
f the page. | 924 // The first few hundred characters rarely contain the interesting content o
f the page. |
| 924 static const unsigned visualCharacterThreshold = 200; | 925 static const unsigned visualCharacterThreshold = 200; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 936 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 937 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
| 937 setIsVisuallyNonEmpty(); | 938 setIsVisuallyNonEmpty(); |
| 938 } | 939 } |
| 939 | 940 |
| 940 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); | 941 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra
meView()); |
| 941 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF
rameView(), scrollableArea.isFrameView()); | 942 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF
rameView(), scrollableArea.isFrameView()); |
| 942 | 943 |
| 943 } // namespace blink | 944 } // namespace blink |
| 944 | 945 |
| 945 #endif // FrameView_h | 946 #endif // FrameView_h |
| OLD | NEW |