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