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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2683233005: Set caret width based on device scale factor (Closed)
Patch Set: Sync with ToT again Created 3 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
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 5156 matching lines...) Expand 10 before | Expand all | Expand 10 after
5167 void FrameView::setAnimationTimeline( 5167 void FrameView::setAnimationTimeline(
5168 std::unique_ptr<CompositorAnimationTimeline> timeline) { 5168 std::unique_ptr<CompositorAnimationTimeline> timeline) {
5169 m_animationTimeline = std::move(timeline); 5169 m_animationTimeline = std::move(timeline);
5170 } 5170 }
5171 5171
5172 void FrameView::setAnimationHost( 5172 void FrameView::setAnimationHost(
5173 std::unique_ptr<CompositorAnimationHost> host) { 5173 std::unique_ptr<CompositorAnimationHost> host) {
5174 m_animationHost = std::move(host); 5174 m_animationHost = std::move(host);
5175 } 5175 }
5176 5176
5177 LayoutUnit FrameView::caretWidth() const {
5178 return LayoutUnit(getHostWindow()->windowToViewportScalar(1));
5179 }
5180
5177 } // namespace blink 5181 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.h ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698