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

Side by Side Diff: Source/core/page/FrameView.h

Issue 23581008: Revert r154797: "Move isValid/isCurrentColor from Color to StyleColor" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 void clear(); 131 void clear();
132 132
133 bool isTransparent() const; 133 bool isTransparent() const;
134 void setTransparent(bool isTransparent); 134 void setTransparent(bool isTransparent);
135 135
136 // True if the FrameView is not transparent, and the base background color i s opaque. 136 // True if the FrameView is not transparent, and the base background color i s opaque.
137 bool hasOpaqueBackground() const; 137 bool hasOpaqueBackground() const;
138 138
139 Color baseBackgroundColor() const; 139 Color baseBackgroundColor() const;
140 void setBaseBackgroundColor(const StyleColor&); 140 void setBaseBackgroundColor(const Color&);
141 void updateBackgroundRecursively(const StyleColor&, bool); 141 void updateBackgroundRecursively(const Color&, bool);
142 142
143 bool shouldUpdateWhileOffscreen() const; 143 bool shouldUpdateWhileOffscreen() const;
144 void setShouldUpdateWhileOffscreen(bool); 144 void setShouldUpdateWhileOffscreen(bool);
145 bool shouldUpdate() const; 145 bool shouldUpdate() const;
146 146
147 void adjustViewSize(); 147 void adjustViewSize();
148 148
149 virtual IntRect windowClipRect(bool clipToContents = true) const; 149 virtual IntRect windowClipRect(bool clipToContents = true) const;
150 IntRect windowClipRectForFrameOwner(const HTMLFrameOwnerElement*, bool clipT oLayerContents) const; 150 IntRect windowClipRectForFrameOwner(const HTMLFrameOwnerElement*, bool clipT oLayerContents) const;
151 151
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 PaintBehavior paintBehavior() const; 222 PaintBehavior paintBehavior() const;
223 bool isPainting() const; 223 bool isPainting() const;
224 bool hasEverPainted() const { return m_lastPaintTime; } 224 bool hasEverPainted() const { return m_lastPaintTime; }
225 void setLastPaintTime(double lastPaintTime) { m_lastPaintTime = lastPaintTim e; } 225 void setLastPaintTime(double lastPaintTime) { m_lastPaintTime = lastPaintTim e; }
226 void setNodeToDraw(Node*); 226 void setNodeToDraw(Node*);
227 227
228 virtual void paintOverhangAreas(GraphicsContext*, const IntRect& horizontalO verhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect); 228 virtual void paintOverhangAreas(GraphicsContext*, const IntRect& horizontalO verhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect);
229 virtual void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect); 229 virtual void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect);
230 virtual void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&) OV ERRIDE; 230 virtual void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&) OV ERRIDE;
231 231
232 StyleColor documentBackgroundColor() const; 232 Color documentBackgroundColor() const;
233 233
234 static double currentFrameTimeStamp() { return s_currentFrameTimeStamp; } 234 static double currentFrameTimeStamp() { return s_currentFrameTimeStamp; }
235 235
236 void updateLayoutAndStyleIfNeededRecursive(); 236 void updateLayoutAndStyleIfNeededRecursive();
237 237
238 void incrementVisuallyNonEmptyCharacterCount(unsigned); 238 void incrementVisuallyNonEmptyCharacterCount(unsigned);
239 void incrementVisuallyNonEmptyPixelCount(const IntSize&); 239 void incrementVisuallyNonEmptyPixelCount(const IntSize&);
240 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; } 240 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; }
241 bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; } 241 bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; }
242 void enableAutoSizeMode(bool enable, const IntSize& minSize, const IntSize& maxSize); 242 void enableAutoSizeMode(bool enable, const IntSize& minSize, const IntSize& maxSize);
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 ASSERT(!widget || widget->isFrameView()); 576 ASSERT(!widget || widget->isFrameView());
577 return static_cast<const FrameView*>(widget); 577 return static_cast<const FrameView*>(widget);
578 } 578 }
579 579
580 // This will catch anyone doing an unnecessary cast. 580 // This will catch anyone doing an unnecessary cast.
581 void toFrameView(const FrameView*); 581 void toFrameView(const FrameView*);
582 582
583 } // namespace WebCore 583 } // namespace WebCore
584 584
585 #endif // FrameView_h 585 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698