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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 LayoutUnit marginWidth() const { return m_margins.width(); } // -1 means def
ault | 84 LayoutUnit marginWidth() const { return m_margins.width(); } // -1 means def
ault |
85 LayoutUnit marginHeight() const { return m_margins.height(); } // -1 means d
efault | 85 LayoutUnit marginHeight() const { return m_margins.height(); } // -1 means d
efault |
86 void setMarginWidth(LayoutUnit); | 86 void setMarginWidth(LayoutUnit); |
87 void setMarginHeight(LayoutUnit); | 87 void setMarginHeight(LayoutUnit); |
88 | 88 |
89 virtual void setCanHaveScrollbars(bool); | 89 virtual void setCanHaveScrollbars(bool); |
90 void updateCanHaveScrollbars(); | 90 void updateCanHaveScrollbars(); |
91 | 91 |
92 virtual PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation); | 92 virtual PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation); |
93 | 93 |
94 virtual bool avoidScrollbarCreation() const; | |
95 | |
96 virtual void setContentsSize(const IntSize&); | 94 virtual void setContentsSize(const IntSize&); |
97 | 95 |
98 void layout(bool allowSubtree = true); | 96 void layout(bool allowSubtree = true); |
99 bool didFirstLayout() const; | 97 bool didFirstLayout() const; |
100 void layoutTimerFired(Timer<FrameView>*); | 98 void layoutTimerFired(Timer<FrameView>*); |
101 void scheduleRelayout(); | 99 void scheduleRelayout(); |
102 void scheduleRelayoutOfSubtree(RenderObject*); | 100 void scheduleRelayoutOfSubtree(RenderObject*); |
103 void unscheduleRelayout(); | 101 void unscheduleRelayout(); |
104 bool layoutPending() const; | 102 bool layoutPending() const; |
105 bool isInLayout() const { return m_inLayout; } | 103 bool isInLayout() const { return m_inLayout; } |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 bool hasEverPainted() const { return m_lastPaintTime; } | 238 bool hasEverPainted() const { return m_lastPaintTime; } |
241 void setLastPaintTime(double lastPaintTime) { m_lastPaintTime = lastPaintTim
e; } | 239 void setLastPaintTime(double lastPaintTime) { m_lastPaintTime = lastPaintTim
e; } |
242 void setNodeToDraw(Node*); | 240 void setNodeToDraw(Node*); |
243 | 241 |
244 virtual void paintOverhangAreas(GraphicsContext*, const IntRect& horizontalO
verhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect); | 242 virtual void paintOverhangAreas(GraphicsContext*, const IntRect& horizontalO
verhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect); |
245 virtual void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect); | 243 virtual void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect); |
246 virtual void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&) OV
ERRIDE; | 244 virtual void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&) OV
ERRIDE; |
247 | 245 |
248 Color documentBackgroundColor() const; | 246 Color documentBackgroundColor() const; |
249 | 247 |
250 bool isInChildFrameWithFrameFlattening() const; | |
251 | |
252 static double currentPaintTimeStamp() { return sCurrentPaintTimeStamp; } //
returns 0 if not painting | 248 static double currentPaintTimeStamp() { return sCurrentPaintTimeStamp; } //
returns 0 if not painting |
253 | 249 |
254 void updateLayoutAndStyleIfNeededRecursive(); | 250 void updateLayoutAndStyleIfNeededRecursive(); |
255 | 251 |
256 void incrementVisuallyNonEmptyCharacterCount(unsigned); | 252 void incrementVisuallyNonEmptyCharacterCount(unsigned); |
257 void incrementVisuallyNonEmptyPixelCount(const IntSize&); | 253 void incrementVisuallyNonEmptyPixelCount(const IntSize&); |
258 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; } | 254 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; } |
259 bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; } | 255 bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; } |
260 void enableAutoSizeMode(bool enable, const IntSize& minSize, const IntSize&
maxSize); | 256 void enableAutoSizeMode(bool enable, const IntSize& minSize, const IntSize&
maxSize); |
261 | 257 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 void updateWidget(RenderObject*); | 431 void updateWidget(RenderObject*); |
436 void scrollToAnchor(); | 432 void scrollToAnchor(); |
437 void scrollPositionChanged(); | 433 void scrollPositionChanged(); |
438 | 434 |
439 bool hasCustomScrollbars() const; | 435 bool hasCustomScrollbars() const; |
440 | 436 |
441 virtual void updateScrollCorner(); | 437 virtual void updateScrollCorner(); |
442 | 438 |
443 FrameView* parentFrameView() const; | 439 FrameView* parentFrameView() const; |
444 | 440 |
445 bool doLayoutWithFrameFlattening(bool allowSubtree); | |
446 | |
447 virtual AXObjectCache* axObjectCache() const; | 441 virtual AXObjectCache* axObjectCache() const; |
448 void notifyWidgetsInAllFrames(WidgetNotification); | 442 void notifyWidgetsInAllFrames(WidgetNotification); |
449 void removeFromAXObjectCache(); | 443 void removeFromAXObjectCache(); |
450 | 444 |
451 static double sCurrentPaintTimeStamp; // used for detecting decoded resource
thrash in the cache | 445 static double sCurrentPaintTimeStamp; // used for detecting decoded resource
thrash in the cache |
452 | 446 |
453 LayoutSize m_size; | 447 LayoutSize m_size; |
454 LayoutSize m_margins; | 448 LayoutSize m_margins; |
455 | 449 |
456 typedef HashSet<RenderObject*> RenderObjectSet; | 450 typedef HashSet<RenderObject*> RenderObjectSet; |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 ASSERT(!widget || widget->isFrameView()); | 604 ASSERT(!widget || widget->isFrameView()); |
611 return static_cast<const FrameView*>(widget); | 605 return static_cast<const FrameView*>(widget); |
612 } | 606 } |
613 | 607 |
614 // This will catch anyone doing an unnecessary cast. | 608 // This will catch anyone doing an unnecessary cast. |
615 void toFrameView(const FrameView*); | 609 void toFrameView(const FrameView*); |
616 | 610 |
617 } // namespace WebCore | 611 } // namespace WebCore |
618 | 612 |
619 #endif // FrameView_h | 613 #endif // FrameView_h |
OLD | NEW |