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

Side by Side Diff: Source/core/layout/LayoutObject.h

Issue 1043643002: Switch line layout to LayoutUnit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More TestExpectations tweaks Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutInline.cpp ('k') | Source/core/layout/LayoutObject.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) 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. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 }; 98 };
99 99
100 enum MapCoordinatesMode { 100 enum MapCoordinatesMode {
101 IsFixed = 1 << 0, 101 IsFixed = 1 << 0,
102 UseTransforms = 1 << 1, 102 UseTransforms = 1 << 1,
103 ApplyContainerFlip = 1 << 2, 103 ApplyContainerFlip = 1 << 2,
104 TraverseDocumentBoundaries = 1 << 3, 104 TraverseDocumentBoundaries = 1 << 3,
105 }; 105 };
106 typedef unsigned MapCoordinatesFlags; 106 typedef unsigned MapCoordinatesFlags;
107 107
108 const int caretWidth = 1; 108 const LayoutUnit& caretWidth();
109 109
110 struct AnnotatedRegionValue { 110 struct AnnotatedRegionValue {
111 bool operator==(const AnnotatedRegionValue& o) const 111 bool operator==(const AnnotatedRegionValue& o) const
112 { 112 {
113 return draggable == o.draggable && bounds == o.bounds; 113 return draggable == o.draggable && bounds == o.bounds;
114 } 114 }
115 115
116 LayoutRect bounds; 116 LayoutRect bounds;
117 bool draggable; 117 bool draggable;
118 }; 118 };
(...skipping 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 void showTree(const blink::LayoutObject*); 1666 void showTree(const blink::LayoutObject*);
1667 void showLineTree(const blink::LayoutObject*); 1667 void showLineTree(const blink::LayoutObject*);
1668 void showLayoutTree(const blink::LayoutObject* object1); 1668 void showLayoutTree(const blink::LayoutObject* object1);
1669 // We don't make object2 an optional parameter so that showLayoutTree 1669 // We don't make object2 an optional parameter so that showLayoutTree
1670 // can be called from gdb easily. 1670 // can be called from gdb easily.
1671 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 1671 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
1672 1672
1673 #endif 1673 #endif
1674 1674
1675 #endif // LayoutObject_h 1675 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutInline.cpp ('k') | Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698