| 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 // specified position due by canonicalization. | 253 // specified position due by canonicalization. |
| 254 CORE_EXPORT VisiblePosition lastEditableVisiblePositionBeforePositionInRoot(cons
t Position&, ContainerNode&); | 254 CORE_EXPORT VisiblePosition lastEditableVisiblePositionBeforePositionInRoot(cons
t Position&, ContainerNode&); |
| 255 CORE_EXPORT VisiblePositionInFlatTree lastEditableVisiblePositionBeforePositionI
nRoot(const PositionInFlatTree&, ContainerNode&); | 255 CORE_EXPORT VisiblePositionInFlatTree lastEditableVisiblePositionBeforePositionI
nRoot(const PositionInFlatTree&, ContainerNode&); |
| 256 VisiblePosition visiblePositionBeforeNode(Node&); | 256 VisiblePosition visiblePositionBeforeNode(Node&); |
| 257 VisiblePosition visiblePositionAfterNode(Node&); | 257 VisiblePosition visiblePositionAfterNode(Node&); |
| 258 | 258 |
| 259 bool lineBreakExistsAtVisiblePosition(const VisiblePosition&); | 259 bool lineBreakExistsAtVisiblePosition(const VisiblePosition&); |
| 260 | 260 |
| 261 int comparePositions(const VisiblePosition&, const VisiblePosition&); | 261 int comparePositions(const VisiblePosition&, const VisiblePosition&); |
| 262 | 262 |
| 263 int indexForVisiblePosition(const VisiblePosition&, RefPtrWillBeRawPtr<Container
Node>& scope); | 263 int indexForVisiblePosition(const VisiblePosition&, RawPtr<ContainerNode>& scope
); |
| 264 EphemeralRange makeRange(const VisiblePosition&, const VisiblePosition&); | 264 EphemeralRange makeRange(const VisiblePosition&, const VisiblePosition&); |
| 265 EphemeralRange normalizeRange(const EphemeralRange&); | 265 EphemeralRange normalizeRange(const EphemeralRange&); |
| 266 EphemeralRangeInFlatTree normalizeRange(const EphemeralRangeInFlatTree&); | 266 EphemeralRangeInFlatTree normalizeRange(const EphemeralRangeInFlatTree&); |
| 267 VisiblePosition visiblePositionForIndex(int index, ContainerNode* scope); | 267 VisiblePosition visiblePositionForIndex(int index, ContainerNode* scope); |
| 268 | 268 |
| 269 // ------------------------------------------------------------------------- | 269 // ------------------------------------------------------------------------- |
| 270 // HTMLElement | 270 // HTMLElement |
| 271 // ------------------------------------------------------------------------- | 271 // ------------------------------------------------------------------------- |
| 272 | 272 |
| 273 // Functions returning HTMLElement | 273 // Functions returning HTMLElement |
| 274 | 274 |
| 275 PassRefPtrWillBeRawPtr<HTMLElement> createDefaultParagraphElement(Document&); | 275 RawPtr<HTMLElement> createDefaultParagraphElement(Document&); |
| 276 PassRefPtrWillBeRawPtr<HTMLElement> createHTMLElement(Document&, const Qualified
Name&); | 276 RawPtr<HTMLElement> createHTMLElement(Document&, const QualifiedName&); |
| 277 | 277 |
| 278 HTMLElement* enclosingList(Node*); | 278 HTMLElement* enclosingList(Node*); |
| 279 HTMLElement* outermostEnclosingList(Node*, HTMLElement* rootList = nullptr); | 279 HTMLElement* outermostEnclosingList(Node*, HTMLElement* rootList = nullptr); |
| 280 Node* enclosingListChild(Node*); | 280 Node* enclosingListChild(Node*); |
| 281 | 281 |
| 282 // ------------------------------------------------------------------------- | 282 // ------------------------------------------------------------------------- |
| 283 // Element | 283 // Element |
| 284 // ------------------------------------------------------------------------- | 284 // ------------------------------------------------------------------------- |
| 285 | 285 |
| 286 // Functions returning Element | 286 // Functions returning Element |
| 287 | 287 |
| 288 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&); | 288 RawPtr<HTMLSpanElement> createTabSpanElement(Document&); |
| 289 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&, const St
ring& tabText); | 289 RawPtr<HTMLSpanElement> createTabSpanElement(Document&, const String& tabText); |
| 290 | 290 |
| 291 Element* rootEditableElementOf(const Position&, EditableType = ContentIsEditable
); | 291 Element* rootEditableElementOf(const Position&, EditableType = ContentIsEditable
); |
| 292 Element* rootEditableElementOf(const PositionInFlatTree&, EditableType = Content
IsEditable); | 292 Element* rootEditableElementOf(const PositionInFlatTree&, EditableType = Content
IsEditable); |
| 293 Element* rootEditableElementOf(const VisiblePosition&); | 293 Element* rootEditableElementOf(const VisiblePosition&); |
| 294 Element* unsplittableElementForPosition(const Position&); | 294 Element* unsplittableElementForPosition(const Position&); |
| 295 | 295 |
| 296 // Boolean functions on Element | 296 // Boolean functions on Element |
| 297 | 297 |
| 298 bool canMergeLists(Element* firstList, Element* secondList); | 298 bool canMergeLists(Element* firstList, Element* secondList); |
| 299 | 299 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 326 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. | 326 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. |
| 327 return character == '\'' || character == rightSingleQuotationMarkCharacter |
| character == hebrewPunctuationGershayimCharacter; | 327 return character == '\'' || character == rightSingleQuotationMarkCharacter |
| character == hebrewPunctuationGershayimCharacter; |
| 328 } | 328 } |
| 329 | 329 |
| 330 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); | 330 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); |
| 331 const String& nonBreakingSpaceString(); | 331 const String& nonBreakingSpaceString(); |
| 332 | 332 |
| 333 } // namespace blink | 333 } // namespace blink |
| 334 | 334 |
| 335 #endif | 335 #endif |
| OLD | NEW |