Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.h

Issue 1549153002: Fix preferred logical widths of orthogonal writing modes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TestExpectations Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 11 matching lines...) Expand all
22 Boston, MA 02110-1301, USA. 22 Boston, MA 02110-1301, USA.
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/dom/DocumentLifecycle.h" 29 #include "core/dom/DocumentLifecycle.h"
30 #include "core/frame/FrameViewAutoSizeInfo.h" 30 #include "core/frame/FrameViewAutoSizeInfo.h"
31 #include "core/frame/LayoutSubtreeRootList.h" 31 #include "core/frame/LayoutSubtreeRootList.h"
32 #include "core/frame/OrthogonalWritingModeRootList.h"
32 #include "core/frame/RootFrameViewport.h" 33 #include "core/frame/RootFrameViewport.h"
33 #include "core/layout/LayoutAnalyzer.h" 34 #include "core/layout/LayoutAnalyzer.h"
34 #include "core/paint/PaintInvalidationCapableScrollableArea.h" 35 #include "core/paint/PaintInvalidationCapableScrollableArea.h"
35 #include "core/paint/PaintPhase.h" 36 #include "core/paint/PaintPhase.h"
36 #include "platform/RuntimeEnabledFeatures.h" 37 #include "platform/RuntimeEnabledFeatures.h"
37 #include "platform/Widget.h" 38 #include "platform/Widget.h"
38 #include "platform/geometry/IntRect.h" 39 #include "platform/geometry/IntRect.h"
39 #include "platform/geometry/LayoutRect.h" 40 #include "platform/geometry/LayoutRect.h"
40 #include "platform/graphics/Color.h" 41 #include "platform/graphics/Color.h"
41 #include "platform/graphics/paint/ClipPaintPropertyNode.h" 42 #include "platform/graphics/paint/ClipPaintPropertyNode.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 void setContentsSize(const IntSize&); 114 void setContentsSize(const IntSize&);
114 115
115 void layout(); 116 void layout();
116 bool didFirstLayout() const; 117 bool didFirstLayout() const;
117 void scheduleRelayout(); 118 void scheduleRelayout();
118 void scheduleRelayoutOfSubtree(LayoutObject*); 119 void scheduleRelayoutOfSubtree(LayoutObject*);
119 bool layoutPending() const; 120 bool layoutPending() const;
120 bool isInPerformLayout() const; 121 bool isInPerformLayout() const;
121 122
122 void clearLayoutSubtreeRoot(const LayoutObject&); 123 void clearLayoutSubtreeRoot(const LayoutObject&);
124 void addOrthogonalWritingModeRoot(LayoutBox&);
125 void removeOrthogonalWritingModeRoot(LayoutBox&);
126 bool hasOrthogonalWritingModeRoots() const;
127 void layoutOrthogonalWritingModeRoots();
123 int layoutCount() const { return m_layoutCount; } 128 int layoutCount() const { return m_layoutCount; }
124 129
125 void countObjectsNeedingLayout(unsigned& needsLayoutObjects, unsigned& total Objects, bool& isPartial); 130 void countObjectsNeedingLayout(unsigned& needsLayoutObjects, unsigned& total Objects, bool& isPartial);
126 131
127 bool needsLayout() const; 132 bool needsLayout() const;
128 void setNeedsLayout(); 133 void setNeedsLayout();
129 134
130 void setNeedsUpdateWidgetGeometries() { m_needsUpdateWidgetGeometries = true ; } 135 void setNeedsUpdateWidgetGeometries() { m_needsUpdateWidgetGeometries = true ; }
131 136
132 // Methods for getting/setting the size Blink should use to layout the conte nts. 137 // Methods for getting/setting the size Blink should use to layout the conte nts.
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 RefPtrWillBeMember<LocalFrame> m_frame; 779 RefPtrWillBeMember<LocalFrame> m_frame;
775 780
776 WebDisplayMode m_displayMode; 781 WebDisplayMode m_displayMode;
777 782
778 bool m_doFullPaintInvalidation; 783 bool m_doFullPaintInvalidation;
779 784
780 bool m_canHaveScrollbars; 785 bool m_canHaveScrollbars;
781 786
782 bool m_hasPendingLayout; 787 bool m_hasPendingLayout;
783 LayoutSubtreeRootList m_layoutSubtreeRootList; 788 LayoutSubtreeRootList m_layoutSubtreeRootList;
789 OrthogonalWritingModeRootList m_orthogonalWritingModeRootList;
784 790
785 bool m_layoutSchedulingEnabled; 791 bool m_layoutSchedulingEnabled;
786 bool m_inPerformLayout; 792 bool m_inPerformLayout;
787 bool m_inSynchronousPostLayout; 793 bool m_inSynchronousPostLayout;
788 int m_layoutCount; 794 int m_layoutCount;
789 unsigned m_nestedLayoutCount; 795 unsigned m_nestedLayoutCount;
790 Timer<FrameView> m_postLayoutTasksTimer; 796 Timer<FrameView> m_postLayoutTasksTimer;
791 Timer<FrameView> m_updateWidgetsTimer; 797 Timer<FrameView> m_updateWidgetsTimer;
792 OwnPtr<CancellableTaskFactory> m_intersectionObserverNotificationFactory; 798 OwnPtr<CancellableTaskFactory> m_intersectionObserverNotificationFactory;
793 799
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 static const unsigned visualPixelThreshold = 32 * 32; 928 static const unsigned visualPixelThreshold = 32 * 32;
923 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 929 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
924 setIsVisuallyNonEmpty(); 930 setIsVisuallyNonEmpty();
925 } 931 }
926 932
927 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 933 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
928 934
929 } // namespace blink 935 } // namespace blink
930 936
931 #endif // FrameView_h 937 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698