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

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

Issue 688213002: First pass at removing dead vertical writing mode code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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/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,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 virtual void updateLogicalWidth() override; 62 virtual void updateLogicalWidth() override;
63 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const override; 63 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const override;
64 64
65 virtual LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const override; 65 virtual LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const override;
66 66
67 // The same as the FrameView's layoutHeight/layoutWidth but with null check guards. 67 // The same as the FrameView's layoutHeight/layoutWidth but with null check guards.
68 int viewHeight(IncludeScrollbarsInRect = ExcludeScrollbars) const; 68 int viewHeight(IncludeScrollbarsInRect = ExcludeScrollbars) const;
69 int viewWidth(IncludeScrollbarsInRect = ExcludeScrollbars) const; 69 int viewWidth(IncludeScrollbarsInRect = ExcludeScrollbars) const;
70 int viewLogicalWidth() const 70 int viewLogicalWidth() const
71 { 71 {
72 return style()->isHorizontalWritingMode() ? viewWidth(ExcludeScrollbars) : viewHeight(ExcludeScrollbars); 72 return viewWidth(ExcludeScrollbars);
73 } 73 }
74 int viewLogicalHeight() const; 74 int viewLogicalHeight() const;
75 LayoutUnit viewLogicalHeightForPercentages() const; 75 LayoutUnit viewLogicalHeightForPercentages() const;
76 76
77 float zoomFactor() const; 77 float zoomFactor() const;
78 78
79 FrameView* frameView() const { return m_frameView; } 79 FrameView* frameView() const { return m_frameView; }
80 80
81 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o verride; 81 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o verride;
82 82
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 193 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
194 } 194 }
195 private: 195 private:
196 const PaintInvalidationState* m_paintInvalidationState; 196 const PaintInvalidationState* m_paintInvalidationState;
197 bool m_didDisable; 197 bool m_didDisable;
198 }; 198 };
199 199
200 } // namespace blink 200 } // namespace blink
201 201
202 #endif // RenderView_h 202 #endif // 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