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

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

Issue 1215103007: Remove remaining HTML elements (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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.cpp ('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,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 * 19 *
20 */ 20 */
21 21
22 #ifndef SKY_ENGINE_CORE_RENDERING_RENDERVIEW_H_ 22 #ifndef SKY_ENGINE_CORE_RENDERING_RENDERVIEW_H_
23 #define SKY_ENGINE_CORE_RENDERING_RENDERVIEW_H_ 23 #define SKY_ENGINE_CORE_RENDERING_RENDERVIEW_H_
24 24
25 #include "sky/engine/core/frame/FrameView.h" 25 #include "sky/engine/core/frame/FrameView.h"
26 #include "sky/engine/core/rendering/RenderFlexibleBox.h" 26 #include "sky/engine/core/rendering/RenderFlexibleBox.h"
27 #include "sky/engine/core/rendering/RenderIFrame.h"
28 #include "sky/engine/wtf/OwnPtr.h" 27 #include "sky/engine/wtf/OwnPtr.h"
29 28
30 namespace blink { 29 namespace blink {
31 30
32 // The root of the render tree, corresponding to the CSS initial containing bloc k. 31 // The root of the render tree, corresponding to the CSS initial containing bloc k.
33 // It's dimensions match that of the logical viewport (which may be different fr om 32 // It's dimensions match that of the logical viewport (which may be different fr om
34 // the visible viewport in fixed-layout mode), and it is always at position (0,0 ) 33 // the visible viewport in fixed-layout mode), and it is always at position (0,0 )
35 // relative to the document (and so isn't necessarily in view). 34 // relative to the document (and so isn't necessarily in view).
36 class RenderView final : public RenderFlexibleBox { 35 class RenderView final : public RenderFlexibleBox {
37 public: 36 public:
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 virtual LayoutRect viewRect() const override; 79 virtual LayoutRect viewRect() const override;
81 80
82 IntRect unscaledDocumentRect() const; 81 IntRect unscaledDocumentRect() const;
83 LayoutRect backgroundRect(RenderBox* backgroundRenderer) const; 82 LayoutRect backgroundRect(RenderBox* backgroundRenderer) const;
84 83
85 IntRect documentRect() const; 84 IntRect documentRect() const;
86 85
87 double layoutViewportWidth() const; 86 double layoutViewportWidth() const;
88 double layoutViewportHeight() const; 87 double layoutViewportHeight() const;
89 88
90 void addIFrame(RenderIFrame* iframe);
91 void removeIFrame(RenderIFrame* iframe);
92 void updateIFramesAfterLayout();
93
94 private: 89 private:
95 virtual void mapLocalToContainer(const RenderBox* paintInvalidationContainer , TransformState&, MapCoordinatesFlags = ApplyContainerFlip) const override; 90 virtual void mapLocalToContainer(const RenderBox* paintInvalidationContainer , TransformState&, MapCoordinatesFlags = ApplyContainerFlip) const override;
96 virtual const RenderObject* pushMappingToContainer(const RenderBox* ancestor ToStopAt, RenderGeometryMap&) const override; 91 virtual const RenderObject* pushMappingToContainer(const RenderBox* ancestor ToStopAt, RenderGeometryMap&) const override;
97 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst override; 92 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst override;
98 93
99 void positionDialog(RenderBox*); 94 void positionDialog(RenderBox*);
100 void positionDialogs(); 95 void positionDialogs();
101 96
102 FrameView* m_frameView; 97 FrameView* m_frameView;
103 98
104 RawPtr<RenderObject> m_selectionStart; 99 RawPtr<RenderObject> m_selectionStart;
105 RawPtr<RenderObject> m_selectionEnd; 100 RawPtr<RenderObject> m_selectionEnd;
106 101
107 int m_selectionStartPos; 102 int m_selectionStartPos;
108 int m_selectionEndPos; 103 int m_selectionEndPos;
109 104
110 unsigned m_renderCounterCount; 105 unsigned m_renderCounterCount;
111 106
112 unsigned m_hitTestCount; 107 unsigned m_hitTestCount;
113
114 WTF::HashSet<RenderIFrame*> m_iframes;
115 }; 108 };
116 109
117 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderView, isRenderView()); 110 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderView, isRenderView());
118 111
119 } // namespace blink 112 } // namespace blink
120 113
121 #endif // SKY_ENGINE_CORE_RENDERING_RENDERVIEW_H_ 114 #endif // SKY_ENGINE_CORE_RENDERING_RENDERVIEW_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderText.cpp ('k') | sky/engine/core/rendering/RenderView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698