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

Side by Side Diff: third_party/WebKit/Source/core/dom/Range.h

Issue 2869803003: Change from ClientRect to DOMRect.
Patch Set: Change from ClientRect to DOMRect. Created 3 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
OLDNEW
1 /* 1 /*
2 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Gunnstein Lye (gunnstein@netcom.no) 3 * (C) 2000 Gunnstein Lye (gunnstein@netcom.no)
4 * (C) 2000 Frederik Holljen (frederik.holljen@hig.no) 4 * (C) 2000 Frederik Holljen (frederik.holljen@hig.no)
5 * (C) 2001 Peter Kelly (pmk@post.com) 5 * (C) 2001 Peter Kelly (pmk@post.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
7 * reserved. 7 * 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 19 matching lines...) Expand all
30 #include "core/CoreExport.h" 30 #include "core/CoreExport.h"
31 #include "core/dom/RangeBoundaryPoint.h" 31 #include "core/dom/RangeBoundaryPoint.h"
32 #include "platform/bindings/ScriptWrappable.h" 32 #include "platform/bindings/ScriptWrappable.h"
33 #include "platform/geometry/FloatRect.h" 33 #include "platform/geometry/FloatRect.h"
34 #include "platform/geometry/IntRect.h" 34 #include "platform/geometry/IntRect.h"
35 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
36 #include "platform/wtf/Forward.h" 36 #include "platform/wtf/Forward.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class ClientRect; 40 class DOMRect;
41 class ClientRectList; 41 class ClientRectList;
42 class ContainerNode; 42 class ContainerNode;
43 class Document; 43 class Document;
44 class DocumentFragment; 44 class DocumentFragment;
45 class ExceptionState; 45 class ExceptionState;
46 class FloatQuad; 46 class FloatQuad;
47 class Node; 47 class Node;
48 class NodeWithIndex; 48 class NodeWithIndex;
49 class Text; 49 class Text;
50 50
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 void DidMergeTextNodes(const NodeWithIndex& old_node, unsigned offset); 154 void DidMergeTextNodes(const NodeWithIndex& old_node, unsigned offset);
155 void DidSplitTextNode(const Text& old_node); 155 void DidSplitTextNode(const Text& old_node);
156 void UpdateOwnerDocumentIfNeeded(); 156 void UpdateOwnerDocumentIfNeeded();
157 157
158 // Expand range to a unit (word or sentence or block or document) boundary. 158 // Expand range to a unit (word or sentence or block or document) boundary.
159 // Please refer to https://bugs.webkit.org/show_bug.cgi?id=27632 comment #5 159 // Please refer to https://bugs.webkit.org/show_bug.cgi?id=27632 comment #5
160 // for details. 160 // for details.
161 void expand(const String&, ExceptionState&); 161 void expand(const String&, ExceptionState&);
162 162
163 ClientRectList* getClientRects() const; 163 ClientRectList* getClientRects() const;
164 ClientRect* getBoundingClientRect() const; 164 DOMRect* getBoundingClientRect() const;
165 165
166 static Node* CheckNodeWOffset(Node*, unsigned offset, ExceptionState&); 166 static Node* CheckNodeWOffset(Node*, unsigned offset, ExceptionState&);
167 167
168 DECLARE_TRACE(); 168 DECLARE_TRACE();
169 169
170 private: 170 private:
171 explicit Range(Document&); 171 explicit Range(Document&);
172 Range(Document&, 172 Range(Document&,
173 Node* start_container, 173 Node* start_container,
174 unsigned start_offset, 174 unsigned start_offset,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 using RangeVector = HeapVector<Member<Range>>; 219 using RangeVector = HeapVector<Member<Range>>;
220 220
221 } // namespace blink 221 } // namespace blink
222 222
223 #ifndef NDEBUG 223 #ifndef NDEBUG
224 // Outside the WebCore namespace for ease of invocation from gdb. 224 // Outside the WebCore namespace for ease of invocation from gdb.
225 void showTree(const blink::Range*); 225 void showTree(const blink::Range*);
226 #endif 226 #endif
227 227
228 #endif // Range_h 228 #endif // Range_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/IntersectionObserverEntry.idl ('k') | third_party/WebKit/Source/core/dom/Range.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698