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

Side by Side Diff: Source/core/editing/htmlediting.h

Issue 23548010: Have htmlediting create functions take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 181
182 int indexForVisiblePosition(const VisiblePosition&, RefPtr<ContainerNode>& scope ); 182 int indexForVisiblePosition(const VisiblePosition&, RefPtr<ContainerNode>& scope );
183 VisiblePosition visiblePositionForIndex(int index, ContainerNode* scope); 183 VisiblePosition visiblePositionForIndex(int index, ContainerNode* scope);
184 184
185 // ------------------------------------------------------------------------- 185 // -------------------------------------------------------------------------
186 // Range 186 // Range
187 // ------------------------------------------------------------------------- 187 // -------------------------------------------------------------------------
188 188
189 // Functions returning Range 189 // Functions returning Range
190 190
191 PassRefPtr<Range> createRange(Document*, const VisiblePosition& start, const Vis iblePosition& end, ExceptionState&); 191 PassRefPtr<Range> createRange(Document&, const VisiblePosition& start, const Vis iblePosition& end, ExceptionState&);
192 192
193 // ------------------------------------------------------------------------- 193 // -------------------------------------------------------------------------
194 // HTMLElement 194 // HTMLElement
195 // ------------------------------------------------------------------------- 195 // -------------------------------------------------------------------------
196 196
197 // Functions returning HTMLElement 197 // Functions returning HTMLElement
198 198
199 PassRefPtr<HTMLElement> createDefaultParagraphElement(Document*); 199 PassRefPtr<HTMLElement> createDefaultParagraphElement(Document&);
200 PassRefPtr<HTMLElement> createBreakElement(Document*); 200 PassRefPtr<HTMLElement> createBreakElement(Document&);
201 PassRefPtr<HTMLElement> createOrderedListElement(Document*); 201 PassRefPtr<HTMLElement> createOrderedListElement(Document&);
202 PassRefPtr<HTMLElement> createUnorderedListElement(Document*); 202 PassRefPtr<HTMLElement> createUnorderedListElement(Document&);
203 PassRefPtr<HTMLElement> createListItemElement(Document*); 203 PassRefPtr<HTMLElement> createListItemElement(Document&);
204 PassRefPtr<HTMLElement> createHTMLElement(Document*, const QualifiedName&); 204 PassRefPtr<HTMLElement> createHTMLElement(Document&, const QualifiedName&);
205 PassRefPtr<HTMLElement> createHTMLElement(Document*, const AtomicString&); 205 PassRefPtr<HTMLElement> createHTMLElement(Document&, const AtomicString&);
206 206
207 HTMLElement* enclosingList(Node*); 207 HTMLElement* enclosingList(Node*);
208 HTMLElement* outermostEnclosingList(Node*, Node* rootList = 0); 208 HTMLElement* outermostEnclosingList(Node*, Node* rootList = 0);
209 Node* enclosingListChild(Node*); 209 Node* enclosingListChild(Node*);
210 210
211 // ------------------------------------------------------------------------- 211 // -------------------------------------------------------------------------
212 // Element 212 // Element
213 // ------------------------------------------------------------------------- 213 // -------------------------------------------------------------------------
214 214
215 // Functions returning Element 215 // Functions returning Element
216 216
217 PassRefPtr<Element> createTabSpanElement(Document*); 217 PassRefPtr<Element> createTabSpanElement(Document&);
218 PassRefPtr<Element> createTabSpanElement(Document*, PassRefPtr<Node> tabTextNode ); 218 PassRefPtr<Element> createTabSpanElement(Document&, PassRefPtr<Node> tabTextNode );
219 PassRefPtr<Element> createTabSpanElement(Document*, const String& tabText); 219 PassRefPtr<Element> createTabSpanElement(Document&, const String& tabText);
220 PassRefPtr<Element> createBlockPlaceholderElement(Document*); 220 PassRefPtr<Element> createBlockPlaceholderElement(Document&);
221 221
222 Element* editableRootForPosition(const Position&, EditableType = ContentIsEditab le); 222 Element* editableRootForPosition(const Position&, EditableType = ContentIsEditab le);
223 Element* unsplittableElementForPosition(const Position&); 223 Element* unsplittableElementForPosition(const Position&);
224 224
225 // Boolean functions on Element 225 // Boolean functions on Element
226 226
227 bool canMergeLists(Element* firstList, Element* secondList); 227 bool canMergeLists(Element* firstList, Element* secondList);
228 228
229 // ------------------------------------------------------------------------- 229 // -------------------------------------------------------------------------
230 // VisibleSelection 230 // VisibleSelection
(...skipping 18 matching lines...) Expand all
249 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us. 249 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us.
250 return character == '\'' || character == rightSingleQuotationMark || charact er == hebrewPunctuationGershayim; 250 return character == '\'' || character == rightSingleQuotationMark || charact er == hebrewPunctuationGershayim;
251 } 251 }
252 252
253 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph); 253 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph);
254 const String& nonBreakingSpaceString(); 254 const String& nonBreakingSpaceString();
255 255
256 } 256 }
257 257
258 #endif 258 #endif
OLDNEW
« no previous file with comments | « Source/core/editing/WrapContentsInDummySpanCommand.cpp ('k') | Source/core/editing/htmlediting.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698