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

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

Issue 14904005: Make Range constructable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update expectations Created 7 years, 7 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 | « LayoutTests/fast/dom/dom-constructors-expected.txt ('k') | Source/core/dom/Range.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 * (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 reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class FloatQuad; 44 class FloatQuad;
45 class Node; 45 class Node;
46 class NodeWithIndex; 46 class NodeWithIndex;
47 class Text; 47 class Text;
48 48
49 class Range : public RefCounted<Range> { 49 class Range : public RefCounted<Range> {
50 public: 50 public:
51 static PassRefPtr<Range> create(PassRefPtr<Document>); 51 static PassRefPtr<Range> create(PassRefPtr<Document>);
52 static PassRefPtr<Range> create(PassRefPtr<Document>, PassRefPtr<Node> start Container, int startOffset, PassRefPtr<Node> endContainer, int endOffset); 52 static PassRefPtr<Range> create(PassRefPtr<Document>, PassRefPtr<Node> start Container, int startOffset, PassRefPtr<Node> endContainer, int endOffset);
53 static PassRefPtr<Range> create(PassRefPtr<Document>, const Position&, const Position&); 53 static PassRefPtr<Range> create(PassRefPtr<Document>, const Position&, const Position&);
54 static PassRefPtr<Range> create(ScriptExecutionContext*);
54 ~Range(); 55 ~Range();
55 56
56 Document* ownerDocument() const { return m_ownerDocument.get(); } 57 Document* ownerDocument() const { return m_ownerDocument.get(); }
57 Node* startContainer() const { return m_start.container(); } 58 Node* startContainer() const { return m_start.container(); }
58 int startOffset() const { return m_start.offset(); } 59 int startOffset() const { return m_start.offset(); }
59 Node* endContainer() const { return m_end.container(); } 60 Node* endContainer() const { return m_end.container(); }
60 int endOffset() const { return m_end.offset(); } 61 int endOffset() const { return m_end.offset(); }
61 62
62 Node* startContainer(ExceptionCode&) const; 63 Node* startContainer(ExceptionCode&) const;
63 int startOffset(ExceptionCode&) const; 64 int startOffset(ExceptionCode&) const;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 bool areRangesEqual(const Range*, const Range*); 179 bool areRangesEqual(const Range*, const Range*);
179 180
180 } // namespace 181 } // namespace
181 182
182 #ifndef NDEBUG 183 #ifndef NDEBUG
183 // Outside the WebCore namespace for ease of invocation from gdb. 184 // Outside the WebCore namespace for ease of invocation from gdb.
184 void showTree(const WebCore::Range*); 185 void showTree(const WebCore::Range*);
185 #endif 186 #endif
186 187
187 #endif 188 #endif
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/dom-constructors-expected.txt ('k') | Source/core/dom/Range.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698