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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 | 274 |
275 // ------------------------------------------------------------------------- | 275 // ------------------------------------------------------------------------- |
276 // Element | 276 // Element |
277 // ------------------------------------------------------------------------- | 277 // ------------------------------------------------------------------------- |
278 | 278 |
279 // Functions returning Element | 279 // Functions returning Element |
280 | 280 |
281 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&); | 281 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&); |
282 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&, const St
ring& tabText); | 282 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&, const St
ring& tabText); |
283 | 283 |
284 Element* editableRootElementForPosition(const Position&, EditableType = ContentI
sEditable); | 284 Element* rootEditableElementOf(const Position&, EditableType = ContentIsEditable
); |
285 Element* editableRootElementForPosition(const PositionInComposedTree&, EditableT
ype = ContentIsEditable); | 285 Element* rootEditableElementOf(const PositionInComposedTree&, EditableType = Con
tentIsEditable); |
286 Element* rootEditableElementOf(const VisiblePosition&); | 286 Element* rootEditableElementOf(const VisiblePosition&); |
287 Element* unsplittableElementForPosition(const Position&); | 287 Element* unsplittableElementForPosition(const Position&); |
288 | 288 |
289 // Boolean functions on Element | 289 // Boolean functions on Element |
290 | 290 |
291 bool canMergeLists(Element* firstList, Element* secondList); | 291 bool canMergeLists(Element* firstList, Element* secondList); |
292 | 292 |
293 // ------------------------------------------------------------------------- | 293 // ------------------------------------------------------------------------- |
294 // VisibleSelection | 294 // VisibleSelection |
295 // ------------------------------------------------------------------------- | 295 // ------------------------------------------------------------------------- |
(...skipping 23 matching lines...) Expand all Loading... |
319 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. | 319 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. |
320 return character == '\'' || character == rightSingleQuotationMarkCharacter |
| character == hebrewPunctuationGershayimCharacter; | 320 return character == '\'' || character == rightSingleQuotationMarkCharacter |
| character == hebrewPunctuationGershayimCharacter; |
321 } | 321 } |
322 | 322 |
323 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); | 323 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); |
324 const String& nonBreakingSpaceString(); | 324 const String& nonBreakingSpaceString(); |
325 | 325 |
326 } | 326 } |
327 | 327 |
328 #endif | 328 #endif |
OLD | NEW |