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

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: Fix compile error 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "platform/transforms/TransformationMatrix.h" 51 #include "platform/transforms/TransformationMatrix.h"
52 #include "wtf/AutoReset.h" 52 #include "wtf/AutoReset.h"
53 53
54 namespace blink { 54 namespace blink {
55 55
56 class AffineTransform; 56 class AffineTransform;
57 class Cursor; 57 class Cursor;
58 class HitTestLocation; 58 class HitTestLocation;
59 class HitTestRequest; 59 class HitTestRequest;
60 class HitTestResult; 60 class HitTestResult;
61 class HostWindow;
61 class InlineBox; 62 class InlineBox;
62 class LayoutBoxModelObject; 63 class LayoutBoxModelObject;
63 class LayoutBlock; 64 class LayoutBlock;
64 class LayoutFlowThread; 65 class LayoutFlowThread;
65 class LayoutGeometryMap; 66 class LayoutGeometryMap;
66 class LayoutMultiColumnSpannerPlaceholder; 67 class LayoutMultiColumnSpannerPlaceholder;
67 class LayoutView; 68 class LayoutView;
68 class ObjectPaintProperties; 69 class ObjectPaintProperties;
69 class PaintLayer; 70 class PaintLayer;
70 class PseudoStyleRequest; 71 class PseudoStyleRequest;
71 class TransformState; 72 class TransformState;
72 73
73 struct PaintInfo; 74 struct PaintInfo;
74 struct PaintInvalidatorContext; 75 struct PaintInvalidatorContext;
75 76
76 enum CursorDirective { SetCursorBasedOnStyle, SetCursor, DoNotSetCursor }; 77 enum CursorDirective { SetCursorBasedOnStyle, SetCursor, DoNotSetCursor };
77 78
78 enum HitTestFilter { HitTestAll, HitTestSelf, HitTestDescendants }; 79 enum HitTestFilter { HitTestAll, HitTestSelf, HitTestDescendants };
79 80
80 enum MarkingBehavior { 81 enum MarkingBehavior {
81 MarkOnlyThis, 82 MarkOnlyThis,
82 MarkContainerChain, 83 MarkContainerChain,
83 }; 84 };
84 85
85 enum ScheduleRelayoutBehavior { ScheduleRelayout, DontScheduleRelayout }; 86 enum ScheduleRelayoutBehavior { ScheduleRelayout, DontScheduleRelayout };
86 87
87 const LayoutUnit& caretWidth(); 88 const LayoutUnit& caretWidth(HostWindow* host);
88 89
89 struct AnnotatedRegionValue { 90 struct AnnotatedRegionValue {
90 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 91 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
91 bool operator==(const AnnotatedRegionValue& o) const { 92 bool operator==(const AnnotatedRegionValue& o) const {
92 return draggable == o.draggable && bounds == o.bounds; 93 return draggable == o.draggable && bounds == o.bounds;
93 } 94 }
94 95
95 LayoutRect bounds; 96 LayoutRect bounds;
96 bool draggable; 97 bool draggable;
97 }; 98 };
(...skipping 2672 matching lines...) Expand 10 before | Expand all | Expand 10 after
2770 CORE_EXPORT void showLineTree(const blink::LayoutObject*); 2771 CORE_EXPORT void showLineTree(const blink::LayoutObject*);
2771 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); 2772 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1);
2772 // We don't make object2 an optional parameter so that showLayoutTree 2773 // We don't make object2 an optional parameter so that showLayoutTree
2773 // can be called from gdb easily. 2774 // can be called from gdb easily.
2774 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, 2775 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1,
2775 const blink::LayoutObject* object2); 2776 const blink::LayoutObject* object2);
2776 2777
2777 #endif 2778 #endif
2778 2779
2779 #endif // LayoutObject_h 2780 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698