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

Side by Side Diff: sky/engine/core/rendering/RenderView.h

Issue 899753003: Walk render tree instead of render layers for paint. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: address review comments Created 5 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
« no previous file with comments | « sky/engine/core/rendering/RenderText.h ('k') | sky/engine/core/rendering/RenderView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // The same as the FrameView's layoutHeight/layoutWidth but with null check guards. 62 // The same as the FrameView's layoutHeight/layoutWidth but with null check guards.
63 int viewHeight() const; 63 int viewHeight() const;
64 int viewWidth() const; 64 int viewWidth() const;
65 int viewLogicalWidth() const { return viewWidth(); } 65 int viewLogicalWidth() const { return viewWidth(); }
66 int viewLogicalHeight() const; 66 int viewLogicalHeight() const;
67 LayoutUnit viewLogicalHeightForPercentages() const; 67 LayoutUnit viewLogicalHeightForPercentages() const;
68 68
69 FrameView* frameView() const { return m_frameView; } 69 FrameView* frameView() const { return m_frameView; }
70 70
71 virtual void paint(PaintInfo&, const LayoutPoint&) override; 71 virtual void paint(PaintInfo&, const LayoutPoint&, Vector<RenderBox*>& layer s) override;
72 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) ov erride; 72 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) ov erride;
73 73
74 void setSelection(RenderObject* start, int startPos, RenderObject*, int endP os); 74 void setSelection(RenderObject* start, int startPos, RenderObject*, int endP os);
75 void getSelection(RenderObject*& startRenderer, int& startOffset, RenderObje ct*& endRenderer, int& endOffset) const; 75 void getSelection(RenderObject*& startRenderer, int& startOffset, RenderObje ct*& endRenderer, int& endOffset) const;
76 void clearSelection(); 76 void clearSelection();
77 RenderObject* selectionStart() const { return m_selectionStart; } 77 RenderObject* selectionStart() const { return m_selectionStart; }
78 RenderObject* selectionEnd() const { return m_selectionEnd; } 78 RenderObject* selectionEnd() const { return m_selectionEnd; }
79 void selectionStartEnd(int& startPos, int& endPos) const; 79 void selectionStartEnd(int& startPos, int& endPos) const;
80 80
81 virtual void absoluteQuads(Vector<FloatQuad>&) const override; 81 virtual void absoluteQuads(Vector<FloatQuad>&) const override;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 unsigned m_hitTestCount; 134 unsigned m_hitTestCount;
135 135
136 WTF::HashSet<RenderIFrame*> m_iframes; 136 WTF::HashSet<RenderIFrame*> m_iframes;
137 }; 137 };
138 138
139 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderView, isRenderView()); 139 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderView, isRenderView());
140 140
141 } // namespace blink 141 } // namespace blink
142 142
143 #endif // SKY_ENGINE_CORE_RENDERING_RENDERVIEW_H_ 143 #endif // SKY_ENGINE_CORE_RENDERING_RENDERVIEW_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderText.h ('k') | sky/engine/core/rendering/RenderView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698