| OLD | NEW |
| 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 21 matching lines...) Expand all Loading... |
| 32 #include "wtf/Forward.h" | 32 #include "wtf/Forward.h" |
| 33 #include "wtf/unicode/CharacterNames.h" | 33 #include "wtf/unicode/CharacterNames.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class Document; | 37 class Document; |
| 38 class Element; | 38 class Element; |
| 39 class ExceptionState; | 39 class ExceptionState; |
| 40 class HTMLBRElement; | 40 class HTMLBRElement; |
| 41 class HTMLElement; | 41 class HTMLElement; |
| 42 class HTMLLIElement; |
| 43 class HTMLOListElement; |
| 42 class HTMLSpanElement; | 44 class HTMLSpanElement; |
| 45 class HTMLUListElement; |
| 43 class Node; | 46 class Node; |
| 44 class Position; | 47 class Position; |
| 45 class PositionWithAffinity; | 48 class PositionWithAffinity; |
| 46 class Range; | 49 class Range; |
| 47 class VisiblePosition; | 50 class VisiblePosition; |
| 48 class VisibleSelection; | 51 class VisibleSelection; |
| 49 | 52 |
| 50 | 53 |
| 51 // This file contains a set of helper functions used by the editing commands | 54 // This file contains a set of helper functions used by the editing commands |
| 52 | 55 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 PassRefPtrWillBeRawPtr<Range> createRange(Document&, const VisiblePosition& star
t, const VisiblePosition& end, ExceptionState&); | 207 PassRefPtrWillBeRawPtr<Range> createRange(Document&, const VisiblePosition& star
t, const VisiblePosition& end, ExceptionState&); |
| 205 | 208 |
| 206 // ------------------------------------------------------------------------- | 209 // ------------------------------------------------------------------------- |
| 207 // HTMLElement | 210 // HTMLElement |
| 208 // ------------------------------------------------------------------------- | 211 // ------------------------------------------------------------------------- |
| 209 | 212 |
| 210 // Functions returning HTMLElement | 213 // Functions returning HTMLElement |
| 211 | 214 |
| 212 PassRefPtrWillBeRawPtr<HTMLElement> createDefaultParagraphElement(Document&); | 215 PassRefPtrWillBeRawPtr<HTMLElement> createDefaultParagraphElement(Document&); |
| 213 PassRefPtrWillBeRawPtr<HTMLBRElement> createBreakElement(Document&); | 216 PassRefPtrWillBeRawPtr<HTMLBRElement> createBreakElement(Document&); |
| 214 PassRefPtrWillBeRawPtr<HTMLElement> createOrderedListElement(Document&); | 217 PassRefPtrWillBeRawPtr<HTMLOListElement> createOrderedListElement(Document&); |
| 215 PassRefPtrWillBeRawPtr<HTMLElement> createUnorderedListElement(Document&); | 218 PassRefPtrWillBeRawPtr<HTMLUListElement> createUnorderedListElement(Document&); |
| 216 PassRefPtrWillBeRawPtr<HTMLElement> createListItemElement(Document&); | 219 PassRefPtrWillBeRawPtr<HTMLLIElement> createListItemElement(Document&); |
| 217 PassRefPtrWillBeRawPtr<HTMLElement> createHTMLElement(Document&, const Qualified
Name&); | 220 PassRefPtrWillBeRawPtr<HTMLElement> createHTMLElement(Document&, const Qualified
Name&); |
| 218 PassRefPtrWillBeRawPtr<HTMLElement> createHTMLElement(Document&, const AtomicStr
ing&); | 221 PassRefPtrWillBeRawPtr<HTMLElement> createHTMLElement(Document&, const AtomicStr
ing&); |
| 219 | 222 |
| 220 HTMLElement* enclosingList(Node*); | 223 HTMLElement* enclosingList(Node*); |
| 221 HTMLElement* outermostEnclosingList(Node*, HTMLElement* rootList = 0); | 224 HTMLElement* outermostEnclosingList(Node*, HTMLElement* rootList = 0); |
| 222 Node* enclosingListChild(Node*); | 225 Node* enclosingListChild(Node*); |
| 223 | 226 |
| 224 // ------------------------------------------------------------------------- | 227 // ------------------------------------------------------------------------- |
| 225 // Element | 228 // Element |
| 226 // ------------------------------------------------------------------------- | 229 // ------------------------------------------------------------------------- |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. | 271 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. |
| 269 return character == '\'' || character == rightSingleQuotationMark || charact
er == hebrewPunctuationGershayim; | 272 return character == '\'' || character == rightSingleQuotationMark || charact
er == hebrewPunctuationGershayim; |
| 270 } | 273 } |
| 271 | 274 |
| 272 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); | 275 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); |
| 273 const String& nonBreakingSpaceString(); | 276 const String& nonBreakingSpaceString(); |
| 274 | 277 |
| 275 } | 278 } |
| 276 | 279 |
| 277 #endif | 280 #endif |
| OLD | NEW |