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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2009 Google Inc. All rights reserved. 8 * Copyright (C) 2009 Google Inc. All rights 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 enum HitTestFilter { HitTestAll, HitTestSelf, HitTestDescendants }; 78 enum HitTestFilter { HitTestAll, HitTestSelf, HitTestDescendants };
79 79
80 enum MarkingBehavior { 80 enum MarkingBehavior {
81 MarkOnlyThis, 81 MarkOnlyThis,
82 MarkContainerChain, 82 MarkContainerChain,
83 }; 83 };
84 84
85 enum ScheduleRelayoutBehavior { ScheduleRelayout, DontScheduleRelayout }; 85 enum ScheduleRelayoutBehavior { ScheduleRelayout, DontScheduleRelayout };
86 86
87 const LayoutUnit& caretWidth();
88
89 struct AnnotatedRegionValue { 87 struct AnnotatedRegionValue {
90 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 88 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
91 bool operator==(const AnnotatedRegionValue& o) const { 89 bool operator==(const AnnotatedRegionValue& o) const {
92 return draggable == o.draggable && bounds == o.bounds; 90 return draggable == o.draggable && bounds == o.bounds;
93 } 91 }
94 92
95 LayoutRect bounds; 93 LayoutRect bounds;
96 bool draggable; 94 bool draggable;
97 }; 95 };
98 96
(...skipping 2671 matching lines...) Expand 10 before | Expand all | Expand 10 after
2770 CORE_EXPORT void showLineTree(const blink::LayoutObject*); 2768 CORE_EXPORT void showLineTree(const blink::LayoutObject*);
2771 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); 2769 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1);
2772 // We don't make object2 an optional parameter so that showLayoutTree 2770 // We don't make object2 an optional parameter so that showLayoutTree
2773 // can be called from gdb easily. 2771 // can be called from gdb easily.
2774 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, 2772 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1,
2775 const blink::LayoutObject* object2); 2773 const blink::LayoutObject* object2);
2776 2774
2777 #endif 2775 #endif
2778 2776
2779 #endif // LayoutObject_h 2777 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698