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

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

Issue 714013002: Remove some more zoom-related code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: merge to ToT Created 6 years, 1 month 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/page/EventHandler.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,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // The same as the FrameView's layoutHeight/layoutWidth but with null check guards. 66 // The same as the FrameView's layoutHeight/layoutWidth but with null check guards.
67 int viewHeight(IncludeScrollbarsInRect = ExcludeScrollbars) const; 67 int viewHeight(IncludeScrollbarsInRect = ExcludeScrollbars) const;
68 int viewWidth(IncludeScrollbarsInRect = ExcludeScrollbars) const; 68 int viewWidth(IncludeScrollbarsInRect = ExcludeScrollbars) const;
69 int viewLogicalWidth() const 69 int viewLogicalWidth() const
70 { 70 {
71 return viewWidth(ExcludeScrollbars); 71 return viewWidth(ExcludeScrollbars);
72 } 72 }
73 int viewLogicalHeight() const; 73 int viewLogicalHeight() const;
74 LayoutUnit viewLogicalHeightForPercentages() const; 74 LayoutUnit viewLogicalHeightForPercentages() const;
75 75
76 float zoomFactor() const;
77
78 FrameView* frameView() const { return m_frameView; } 76 FrameView* frameView() const { return m_frameView; }
79 77
80 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o verride; 78 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o verride;
81 79
82 void invalidatePaintForRectangle(const LayoutRect&) const; 80 void invalidatePaintForRectangle(const LayoutRect&) const;
83 81
84 void invalidatePaintForViewAndCompositedLayers(); 82 void invalidatePaintForViewAndCompositedLayers();
85 83
86 virtual void paint(PaintInfo&, const LayoutPoint&) override; 84 virtual void paint(PaintInfo&, const LayoutPoint&) override;
87 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) ov erride; 85 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) ov erride;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 188 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
191 } 189 }
192 private: 190 private:
193 const PaintInvalidationState* m_paintInvalidationState; 191 const PaintInvalidationState* m_paintInvalidationState;
194 bool m_didDisable; 192 bool m_didDisable;
195 }; 193 };
196 194
197 } // namespace blink 195 } // namespace blink
198 196
199 #endif // RenderView_h 197 #endif // RenderView_h
OLDNEW
« no previous file with comments | « sky/engine/core/page/EventHandler.cpp ('k') | sky/engine/core/rendering/RenderView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698