OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2007 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 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 | 815 |
816 ASSERT_NOT_REACHED(); | 816 ASSERT_NOT_REACHED(); |
817 return nullptr; | 817 return nullptr; |
818 } | 818 } |
819 | 819 |
820 PassRefPtrWillBeRawPtr<HTMLBRElement> createBreakElement(Document& document) | 820 PassRefPtrWillBeRawPtr<HTMLBRElement> createBreakElement(Document& document) |
821 { | 821 { |
822 return HTMLBRElement::create(document); | 822 return HTMLBRElement::create(document); |
823 } | 823 } |
824 | 824 |
825 PassRefPtrWillBeRawPtr<HTMLElement> createOrderedListElement(Document& document) | 825 PassRefPtrWillBeRawPtr<HTMLOListElement> createOrderedListElement(Document& docu
ment) |
826 { | 826 { |
827 return HTMLOListElement::create(document); | 827 return HTMLOListElement::create(document); |
828 } | 828 } |
829 | 829 |
830 PassRefPtrWillBeRawPtr<HTMLElement> createUnorderedListElement(Document& documen
t) | 830 PassRefPtrWillBeRawPtr<HTMLUListElement> createUnorderedListElement(Document& do
cument) |
831 { | 831 { |
832 return HTMLUListElement::create(document); | 832 return HTMLUListElement::create(document); |
833 } | 833 } |
834 | 834 |
835 PassRefPtrWillBeRawPtr<HTMLElement> createListItemElement(Document& document) | 835 PassRefPtrWillBeRawPtr<HTMLLIElement> createListItemElement(Document& document) |
836 { | 836 { |
837 return HTMLLIElement::create(document); | 837 return HTMLLIElement::create(document); |
838 } | 838 } |
839 | 839 |
840 PassRefPtrWillBeRawPtr<HTMLElement> createHTMLElement(Document& document, const
QualifiedName& name) | 840 PassRefPtrWillBeRawPtr<HTMLElement> createHTMLElement(Document& document, const
QualifiedName& name) |
841 { | 841 { |
842 return createHTMLElement(document, name.localName()); | 842 return createHTMLElement(document, name.localName()); |
843 } | 843 } |
844 | 844 |
845 PassRefPtrWillBeRawPtr<HTMLElement> createHTMLElement(Document& document, const
AtomicString& tagName) | 845 PassRefPtrWillBeRawPtr<HTMLElement> createHTMLElement(Document& document, const
AtomicString& tagName) |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1218 // if the selection starts just before a paragraph break, skip over it | 1218 // if the selection starts just before a paragraph break, skip over it |
1219 if (isEndOfParagraph(visiblePosition)) | 1219 if (isEndOfParagraph(visiblePosition)) |
1220 return visiblePosition.next().deepEquivalent().downstream(); | 1220 return visiblePosition.next().deepEquivalent().downstream(); |
1221 | 1221 |
1222 // otherwise, make sure to be at the start of the first selected node, | 1222 // otherwise, make sure to be at the start of the first selected node, |
1223 // instead of possibly at the end of the last node before the selection | 1223 // instead of possibly at the end of the last node before the selection |
1224 return visiblePosition.deepEquivalent().downstream(); | 1224 return visiblePosition.deepEquivalent().downstream(); |
1225 } | 1225 } |
1226 | 1226 |
1227 } // namespace blink | 1227 } // namespace blink |
OLD | NEW |