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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 void clear(); | 135 void clear(); |
136 | 136 |
137 bool isTransparent() const; | 137 bool isTransparent() const; |
138 void setTransparent(bool isTransparent); | 138 void setTransparent(bool isTransparent); |
139 | 139 |
140 // True if the FrameView is not transparent, and the base background color i
s opaque. | 140 // True if the FrameView is not transparent, and the base background color i
s opaque. |
141 bool hasOpaqueBackground() const; | 141 bool hasOpaqueBackground() const; |
142 | 142 |
143 Color baseBackgroundColor() const; | 143 Color baseBackgroundColor() const; |
144 void setBaseBackgroundColor(const Color&); | 144 void setBaseBackgroundColor(const StyleColor&); |
145 void updateBackgroundRecursively(const Color&, bool); | 145 void updateBackgroundRecursively(const StyleColor&, bool); |
146 | 146 |
147 bool shouldUpdateWhileOffscreen() const; | 147 bool shouldUpdateWhileOffscreen() const; |
148 void setShouldUpdateWhileOffscreen(bool); | 148 void setShouldUpdateWhileOffscreen(bool); |
149 bool shouldUpdate() const; | 149 bool shouldUpdate() const; |
150 | 150 |
151 void adjustViewSize(); | 151 void adjustViewSize(); |
152 | 152 |
153 virtual IntRect windowClipRect(bool clipToContents = true) const; | 153 virtual IntRect windowClipRect(bool clipToContents = true) const; |
154 IntRect windowClipRectForFrameOwner(const HTMLFrameOwnerElement*, bool clipT
oLayerContents) const; | 154 IntRect windowClipRectForFrameOwner(const HTMLFrameOwnerElement*, bool clipT
oLayerContents) const; |
155 | 155 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 PaintBehavior paintBehavior() const; | 226 PaintBehavior paintBehavior() const; |
227 bool isPainting() const; | 227 bool isPainting() const; |
228 bool hasEverPainted() const { return m_lastPaintTime; } | 228 bool hasEverPainted() const { return m_lastPaintTime; } |
229 void setLastPaintTime(double lastPaintTime) { m_lastPaintTime = lastPaintTim
e; } | 229 void setLastPaintTime(double lastPaintTime) { m_lastPaintTime = lastPaintTim
e; } |
230 void setNodeToDraw(Node*); | 230 void setNodeToDraw(Node*); |
231 | 231 |
232 virtual void paintOverhangAreas(GraphicsContext*, const IntRect& horizontalO
verhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect); | 232 virtual void paintOverhangAreas(GraphicsContext*, const IntRect& horizontalO
verhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect); |
233 virtual void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect); | 233 virtual void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect); |
234 virtual void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&) OV
ERRIDE; | 234 virtual void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&) OV
ERRIDE; |
235 | 235 |
236 Color documentBackgroundColor() const; | 236 StyleColor documentBackgroundColor() const; |
237 | 237 |
238 static double currentPaintTimeStamp() { return sCurrentPaintTimeStamp; } //
returns 0 if not painting | 238 static double currentPaintTimeStamp() { return sCurrentPaintTimeStamp; } //
returns 0 if not painting |
239 | 239 |
240 void updateLayoutAndStyleIfNeededRecursive(); | 240 void updateLayoutAndStyleIfNeededRecursive(); |
241 | 241 |
242 void incrementVisuallyNonEmptyCharacterCount(unsigned); | 242 void incrementVisuallyNonEmptyCharacterCount(unsigned); |
243 void incrementVisuallyNonEmptyPixelCount(const IntSize&); | 243 void incrementVisuallyNonEmptyPixelCount(const IntSize&); |
244 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; } | 244 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; } |
245 bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; } | 245 bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; } |
246 void enableAutoSizeMode(bool enable, const IntSize& minSize, const IntSize&
maxSize); | 246 void enableAutoSizeMode(bool enable, const IntSize& minSize, const IntSize&
maxSize); |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 ASSERT(!widget || widget->isFrameView()); | 579 ASSERT(!widget || widget->isFrameView()); |
580 return static_cast<const FrameView*>(widget); | 580 return static_cast<const FrameView*>(widget); |
581 } | 581 } |
582 | 582 |
583 // This will catch anyone doing an unnecessary cast. | 583 // This will catch anyone doing an unnecessary cast. |
584 void toFrameView(const FrameView*); | 584 void toFrameView(const FrameView*); |
585 | 585 |
586 } // namespace WebCore | 586 } // namespace WebCore |
587 | 587 |
588 #endif // FrameView_h | 588 #endif // FrameView_h |
OLD | NEW |