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

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

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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.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) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
8 reserved. 8 reserved.
9 9
10 This library is free software; you can redistribute it and/or 10 This library is free software; you can redistribute it and/or
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 void setAnimationTimeline(std::unique_ptr<CompositorAnimationTimeline>); 828 void setAnimationTimeline(std::unique_ptr<CompositorAnimationTimeline>);
829 void setAnimationHost(std::unique_ptr<CompositorAnimationHost>); 829 void setAnimationHost(std::unique_ptr<CompositorAnimationHost>);
830 830
831 // Returns the GeometryMapper associated with the root local frame. 831 // Returns the GeometryMapper associated with the root local frame.
832 GeometryMapper& geometryMapper(); 832 GeometryMapper& geometryMapper();
833 833
834 // The visual viewport can supply scrollbars which affect the existence of 834 // The visual viewport can supply scrollbars which affect the existence of
835 // our scrollbars (see: computeScrollbarExistence). 835 // our scrollbars (see: computeScrollbarExistence).
836 void visualViewportScrollbarsChanged(); 836 void visualViewportScrollbarsChanged();
837 837
838 LayoutUnit caretWidth() const;
839
838 protected: 840 protected:
839 // Scroll the content via the compositor. 841 // Scroll the content via the compositor.
840 bool scrollContentsFastPath(const IntSize& scrollDelta); 842 bool scrollContentsFastPath(const IntSize& scrollDelta);
841 843
842 // Scroll the content by invalidating everything. 844 // Scroll the content by invalidating everything.
843 void scrollContentsSlowPath(); 845 void scrollContentsSlowPath();
844 846
845 ScrollBehavior scrollBehaviorStyle() const override; 847 ScrollBehavior scrollBehaviorStyle() const override;
846 848
847 void scrollContentsIfNeeded(); 849 void scrollContentsIfNeeded();
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 widget.isFrameView()); 1247 widget.isFrameView());
1246 DEFINE_TYPE_CASTS(FrameView, 1248 DEFINE_TYPE_CASTS(FrameView,
1247 ScrollableArea, 1249 ScrollableArea,
1248 scrollableArea, 1250 scrollableArea,
1249 scrollableArea->isFrameView(), 1251 scrollableArea->isFrameView(),
1250 scrollableArea.isFrameView()); 1252 scrollableArea.isFrameView());
1251 1253
1252 } // namespace blink 1254 } // namespace blink
1253 1255
1254 #endif // FrameView_h 1256 #endif // FrameView_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698