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 17 matching lines...) Expand all Loading... |
28 #include "core/frame/FrameViewAutoSizeInfo.h" | 28 #include "core/frame/FrameViewAutoSizeInfo.h" |
29 #include "core/rendering/PaintPhase.h" | 29 #include "core/rendering/PaintPhase.h" |
30 #include "platform/RuntimeEnabledFeatures.h" | 30 #include "platform/RuntimeEnabledFeatures.h" |
31 #include "platform/Widget.h" | 31 #include "platform/Widget.h" |
32 #include "platform/geometry/IntRect.h" | 32 #include "platform/geometry/IntRect.h" |
33 #include "platform/geometry/LayoutRect.h" | 33 #include "platform/geometry/LayoutRect.h" |
34 #include "platform/graphics/Color.h" | 34 #include "platform/graphics/Color.h" |
35 #include "platform/scroll/ScrollTypes.h" | 35 #include "platform/scroll/ScrollTypes.h" |
36 #include "platform/scroll/ScrollableArea.h" | 36 #include "platform/scroll/ScrollableArea.h" |
37 #include "platform/scroll/Scrollbar.h" | 37 #include "platform/scroll/Scrollbar.h" |
| 38 #include "public/platform/WebDisplayMode.h" |
38 #include "wtf/Forward.h" | 39 #include "wtf/Forward.h" |
39 #include "wtf/HashSet.h" | 40 #include "wtf/HashSet.h" |
40 #include "wtf/OwnPtr.h" | 41 #include "wtf/OwnPtr.h" |
41 #include "wtf/TemporaryChange.h" | 42 #include "wtf/TemporaryChange.h" |
42 #include "wtf/text/WTFString.h" | 43 #include "wtf/text/WTFString.h" |
43 | 44 |
44 namespace blink { | 45 namespace blink { |
45 | 46 |
46 class AXObjectCache; | 47 class AXObjectCache; |
47 class DocumentLifecycle; | 48 class DocumentLifecycle; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 174 |
174 // This is different than visibleContentRect() in that it ignores negative (
or overly positive) | 175 // This is different than visibleContentRect() in that it ignores negative (
or overly positive) |
175 // offsets from rubber-banding, and it takes zooming into account. | 176 // offsets from rubber-banding, and it takes zooming into account. |
176 LayoutRect viewportConstrainedVisibleContentRect() const; | 177 LayoutRect viewportConstrainedVisibleContentRect() const; |
177 void viewportConstrainedVisibleContentSizeChanged(bool widthChanged, bool he
ightChanged); | 178 void viewportConstrainedVisibleContentSizeChanged(bool widthChanged, bool he
ightChanged); |
178 | 179 |
179 AtomicString mediaType() const; | 180 AtomicString mediaType() const; |
180 void setMediaType(const AtomicString&); | 181 void setMediaType(const AtomicString&); |
181 void adjustMediaTypeForPrinting(bool printing); | 182 void adjustMediaTypeForPrinting(bool printing); |
182 | 183 |
| 184 WebDisplayMode displayMode() { return m_displayMode; } |
| 185 void setDisplayMode(WebDisplayMode); |
| 186 |
183 void addSlowRepaintObject(); | 187 void addSlowRepaintObject(); |
184 void removeSlowRepaintObject(); | 188 void removeSlowRepaintObject(); |
185 bool hasSlowRepaintObjects() const { return m_slowRepaintObjectCount; } | 189 bool hasSlowRepaintObjects() const { return m_slowRepaintObjectCount; } |
186 | 190 |
187 // Fixed-position objects. | 191 // Fixed-position objects. |
188 typedef HashSet<RenderObject*> ViewportConstrainedObjectSet; | 192 typedef HashSet<RenderObject*> ViewportConstrainedObjectSet; |
189 void addViewportConstrainedObject(RenderObject*); | 193 void addViewportConstrainedObject(RenderObject*); |
190 void removeViewportConstrainedObject(RenderObject*); | 194 void removeViewportConstrainedObject(RenderObject*); |
191 const ViewportConstrainedObjectSet* viewportConstrainedObjects() const { ret
urn m_viewportConstrainedObjects.get(); } | 195 const ViewportConstrainedObjectSet* viewportConstrainedObjects() const { ret
urn m_viewportConstrainedObjects.get(); } |
192 bool hasViewportConstrainedObjects() const { return m_viewportConstrainedObj
ects && m_viewportConstrainedObjects->size() > 0; } | 196 bool hasViewportConstrainedObjects() const { return m_viewportConstrainedObj
ects && m_viewportConstrainedObjects->size() > 0; } |
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 // The RefPtr cycle between LocalFrame and FrameView is broken | 705 // The RefPtr cycle between LocalFrame and FrameView is broken |
702 // when a LocalFrame is detached by FrameLoader::detachFromParent(). | 706 // when a LocalFrame is detached by FrameLoader::detachFromParent(). |
703 // It clears the LocalFrame's m_view reference via setView(nullptr). | 707 // It clears the LocalFrame's m_view reference via setView(nullptr). |
704 // | 708 // |
705 // For Oilpan, Member reference cycles pose no problem, but | 709 // For Oilpan, Member reference cycles pose no problem, but |
706 // LocalFrame's FrameView is also cleared by setView(). This additionally | 710 // LocalFrame's FrameView is also cleared by setView(). This additionally |
707 // triggers FrameView::dispose(), which performs the operations | 711 // triggers FrameView::dispose(), which performs the operations |
708 // that cannot be delayed until finalization time. | 712 // that cannot be delayed until finalization time. |
709 RefPtrWillBeMember<LocalFrame> m_frame; | 713 RefPtrWillBeMember<LocalFrame> m_frame; |
710 | 714 |
| 715 WebDisplayMode m_displayMode; |
| 716 |
711 bool m_doFullPaintInvalidation; | 717 bool m_doFullPaintInvalidation; |
712 | 718 |
713 bool m_canHaveScrollbars; | 719 bool m_canHaveScrollbars; |
714 unsigned m_slowRepaintObjectCount; | 720 unsigned m_slowRepaintObjectCount; |
715 | 721 |
716 bool m_hasPendingLayout; | 722 bool m_hasPendingLayout; |
717 RenderObject* m_layoutSubtreeRoot; | 723 RenderObject* m_layoutSubtreeRoot; |
718 | 724 |
719 bool m_layoutSchedulingEnabled; | 725 bool m_layoutSchedulingEnabled; |
720 bool m_inPerformLayout; | 726 bool m_inPerformLayout; |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 } | 870 } |
865 | 871 |
866 private: | 872 private: |
867 RawPtrWillBeMember<FrameView> m_view; | 873 RawPtrWillBeMember<FrameView> m_view; |
868 bool m_originalValue; | 874 bool m_originalValue; |
869 }; | 875 }; |
870 | 876 |
871 } // namespace blink | 877 } // namespace blink |
872 | 878 |
873 #endif // FrameView_h | 879 #endif // FrameView_h |
OLD | NEW |