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

Side by Side Diff: third_party/WebKit/WebCore/rendering/RenderView.h

Issue 21165: Revert the merge. Mac build is mysteriously broken. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 * This file is part of the HTML widget for KDE. 2 * This file is part of the HTML widget for KDE.
3 * 3 *
4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
5 * Copyright (C) 2006 Apple Computer, Inc. 5 * Copyright (C) 2006 Apple Computer, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // The same as the FrameView's layoutHeight/layoutWidth but with null check guards. 58 // The same as the FrameView's layoutHeight/layoutWidth but with null check guards.
59 int viewHeight() const; 59 int viewHeight() const;
60 int viewWidth() const; 60 int viewWidth() const;
61 61
62 float zoomFactor() const { return m_frameView->frame() && m_frameView->frame ()->shouldApplyPageZoom() ? m_frameView->frame()->zoomFactor() : 1.0f; } 62 float zoomFactor() const { return m_frameView->frame() && m_frameView->frame ()->shouldApplyPageZoom() ? m_frameView->frame()->zoomFactor() : 1.0f; }
63 63
64 FrameView* frameView() const { return m_frameView; } 64 FrameView* frameView() const { return m_frameView; }
65 65
66 virtual bool hasOverhangingFloats() { return false; } 66 virtual bool hasOverhangingFloats() { return false; }
67 67
68 virtual void computeRectForRepaint(RenderBoxModelObject* repaintContainer, I ntRect&, bool fixed = false); 68 virtual void computeRectForRepaint(RenderBox* repaintContainer, IntRect&, bo ol fixed = false);
69 virtual void repaintViewRectangle(const IntRect&, bool immediate = false); 69 virtual void repaintViewRectangle(const IntRect&, bool immediate = false);
70 // Repaint the view, and all composited layers that intersect the given abso lute rectangle. 70 // Repaint the view, and all composited layers that intersect the given abso lute rectangle.
71 // FIXME: ideally we'd never have to do this, if all repaints are container- relative. 71 // FIXME: ideally we'd never have to do this, if all repaints are container- relative.
72 virtual void repaintRectangleInViewAndCompositedLayers(const IntRect&, bool immediate = false); 72 virtual void repaintRectangleInViewAndCompositedLayers(const IntRect&, bool immediate = false);
73 73
74 virtual void paint(PaintInfo&, int tx, int ty); 74 virtual void paint(PaintInfo&, int tx, int ty);
75 virtual void paintBoxDecorations(PaintInfo&, int tx, int ty); 75 virtual void paintBoxDecorations(PaintInfo&, int tx, int ty);
76 76
77 void setSelection(RenderObject* start, int startPos, RenderObject* end, int endPos); 77 void setSelection(RenderObject* start, int startPos, RenderObject* end, int endPos);
78 void clearSelection(); 78 void clearSelection();
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // removed from the window. 162 // removed from the window.
163 void didMoveOnscreen(); 163 void didMoveOnscreen();
164 void willMoveOffscreen(); 164 void willMoveOffscreen();
165 165
166 #if USE(ACCELERATED_COMPOSITING) 166 #if USE(ACCELERATED_COMPOSITING)
167 RenderLayerCompositor* compositor(); 167 RenderLayerCompositor* compositor();
168 bool usesCompositing() const; 168 bool usesCompositing() const;
169 #endif 169 #endif
170 170
171 protected: 171 protected:
172 virtual FloatQuad localToContainerQuad(const FloatQuad&, RenderBoxModelObjec t* repaintContainer, bool fixed = false) const; 172 virtual FloatQuad localToContainerQuad(const FloatQuad&, RenderBox* repaintC ontainer, bool fixed = false) const;
173 173
174 private: 174 private:
175 bool shouldRepaint(const IntRect& r) const; 175 bool shouldRepaint(const IntRect& r) const;
176 176
177 protected: 177 protected:
178 FrameView* m_frameView; 178 FrameView* m_frameView;
179 179
180 RenderObject* m_selectionStart; 180 RenderObject* m_selectionStart;
181 RenderObject* m_selectionEnd; 181 RenderObject* m_selectionEnd;
182 int m_selectionStartPos; 182 int m_selectionStartPos;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 RenderView* m_view; 274 RenderView* m_view;
275 bool m_disabled : 1; // true if the offset and clip part of layoutSta te is disabled 275 bool m_disabled : 1; // true if the offset and clip part of layoutSta te is disabled
276 bool m_didStart : 1; // true if we did a push or disable 276 bool m_didStart : 1; // true if we did a push or disable
277 bool m_didEnd : 1; // true if we popped or re-enabled 277 bool m_didEnd : 1; // true if we popped or re-enabled
278 }; 278 };
279 279
280 } // namespace WebCore 280 } // namespace WebCore
281 281
282 #endif // RenderView_h 282 #endif // RenderView_h
283 283
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/rendering/RenderTreeAsText.cpp ('k') | third_party/WebKit/WebCore/rendering/RenderView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698