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

Side by Side Diff: sky/engine/core/frame/FrameView.cpp

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/editing/VisibleUnits.cpp ('k') | sky/engine/core/frame/LocalFrame.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) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 } 1127 }
1128 1128
1129 bool FrameView::wheelEvent(const PlatformWheelEvent& wheelEvent) 1129 bool FrameView::wheelEvent(const PlatformWheelEvent& wheelEvent)
1130 { 1130 {
1131 // FIXME(sky): Remove 1131 // FIXME(sky): Remove
1132 return false; 1132 return false;
1133 } 1133 }
1134 1134
1135 bool FrameView::isVerticalDocument() const 1135 bool FrameView::isVerticalDocument() const
1136 { 1136 {
1137 RenderView* renderView = this->renderView(); 1137 // FIXME(sky): Remove
1138 if (!renderView) 1138 return true;
1139 return true;
1140
1141 return renderView->style()->isHorizontalWritingMode();
1142 } 1139 }
1143 1140
1144 bool FrameView::isFlippedDocument() const 1141 bool FrameView::isFlippedDocument() const
1145 { 1142 {
1146 RenderView* renderView = this->renderView(); 1143 // FIXME(sky): Remove
1147 if (!renderView) 1144 return false;
1148 return false;
1149
1150 return renderView->style()->isFlippedBlocksWritingMode();
1151 } 1145 }
1152 1146
1153 void FrameView::setCursor(const Cursor& cursor) 1147 void FrameView::setCursor(const Cursor& cursor)
1154 { 1148 {
1155 Page* page = frame().page(); 1149 Page* page = frame().page();
1156 if (!page || !page->settings().deviceSupportsMouse()) 1150 if (!page || !page->settings().deviceSupportsMouse())
1157 return; 1151 return;
1158 page->chrome().setCursor(cursor); 1152 page->chrome().setCursor(cursor);
1159 } 1153 }
1160 1154
1161 void FrameView::setLayoutSizeInternal(const IntSize& size) 1155 void FrameView::setLayoutSizeInternal(const IntSize& size)
1162 { 1156 {
1163 if (m_layoutSize == size) 1157 if (m_layoutSize == size)
1164 return; 1158 return;
1165 1159
1166 m_layoutSize = size; 1160 m_layoutSize = size;
1167 contentsResized(); 1161 contentsResized();
1168 } 1162 }
1169 1163
1170 } // namespace blink 1164 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/editing/VisibleUnits.cpp ('k') | sky/engine/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698