| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999 Lars Knoll (knoll@kde.org) | 2 * (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Gunnstein Lye (gunnstein@netcom.no) | 3 * (C) 2000 Gunnstein Lye (gunnstein@netcom.no) |
| 4 * (C) 2000 Frederik Holljen (frederik.holljen@hig.no) | 4 * (C) 2000 Frederik Holljen (frederik.holljen@hig.no) |
| 5 * (C) 2001 Peter Kelly (pmk@post.com) | 5 * (C) 2001 Peter Kelly (pmk@post.com) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2011 Motorola Mobility. All rights reserved. | 7 * Copyright (C) 2011 Motorola Mobility. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 1790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1801 end = endOfParagraph(end); | 1801 end = endOfParagraph(end); |
| 1802 } else if (unit == "document") { | 1802 } else if (unit == "document") { |
| 1803 start = startOfDocument(start); | 1803 start = startOfDocument(start); |
| 1804 end = endOfDocument(end); | 1804 end = endOfDocument(end); |
| 1805 } else | 1805 } else |
| 1806 return; | 1806 return; |
| 1807 setStart(start.deepEquivalent().containerNode(), start.deepEquivalent().comp
uteOffsetInContainerNode(), exceptionState); | 1807 setStart(start.deepEquivalent().containerNode(), start.deepEquivalent().comp
uteOffsetInContainerNode(), exceptionState); |
| 1808 setEnd(end.deepEquivalent().containerNode(), end.deepEquivalent().computeOff
setInContainerNode(), exceptionState); | 1808 setEnd(end.deepEquivalent().containerNode(), end.deepEquivalent().computeOff
setInContainerNode(), exceptionState); |
| 1809 } | 1809 } |
| 1810 | 1810 |
| 1811 PassRefPtr<ClientRectList> Range::getClientRects() const | 1811 PassRefPtrWillBeRawPtr<ClientRectList> Range::getClientRects() const |
| 1812 { | 1812 { |
| 1813 if (!m_start.container()) | 1813 if (!m_start.container()) |
| 1814 return ClientRectList::create(); | 1814 return ClientRectList::create(); |
| 1815 | 1815 |
| 1816 m_ownerDocument->updateLayoutIgnorePendingStylesheets(); | 1816 m_ownerDocument->updateLayoutIgnorePendingStylesheets(); |
| 1817 | 1817 |
| 1818 Vector<FloatQuad> quads; | 1818 Vector<FloatQuad> quads; |
| 1819 getBorderAndTextQuads(quads); | 1819 getBorderAndTextQuads(quads); |
| 1820 | 1820 |
| 1821 return ClientRectList::create(quads); | 1821 return ClientRectList::create(quads); |
| 1822 } | 1822 } |
| 1823 | 1823 |
| 1824 PassRefPtr<ClientRect> Range::getBoundingClientRect() const | 1824 PassRefPtrWillBeRawPtr<ClientRect> Range::getBoundingClientRect() const |
| 1825 { | 1825 { |
| 1826 return ClientRect::create(boundingRect()); | 1826 return ClientRect::create(boundingRect()); |
| 1827 } | 1827 } |
| 1828 | 1828 |
| 1829 void Range::getBorderAndTextQuads(Vector<FloatQuad>& quads) const | 1829 void Range::getBorderAndTextQuads(Vector<FloatQuad>& quads) const |
| 1830 { | 1830 { |
| 1831 Node* startContainer = m_start.container(); | 1831 Node* startContainer = m_start.container(); |
| 1832 Node* endContainer = m_end.container(); | 1832 Node* endContainer = m_end.container(); |
| 1833 Node* stopNode = pastLastNode(); | 1833 Node* stopNode = pastLastNode(); |
| 1834 | 1834 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1894 | 1894 |
| 1895 void showTree(const WebCore::Range* range) | 1895 void showTree(const WebCore::Range* range) |
| 1896 { | 1896 { |
| 1897 if (range && range->boundaryPointsValid()) { | 1897 if (range && range->boundaryPointsValid()) { |
| 1898 range->startContainer()->showTreeAndMark(range->startContainer(), "S", r
ange->endContainer(), "E"); | 1898 range->startContainer()->showTreeAndMark(range->startContainer(), "S", r
ange->endContainer(), "E"); |
| 1899 fprintf(stderr, "start offset: %d, end offset: %d\n", range->startOffset
(), range->endOffset()); | 1899 fprintf(stderr, "start offset: %d, end offset: %d\n", range->startOffset
(), range->endOffset()); |
| 1900 } | 1900 } |
| 1901 } | 1901 } |
| 1902 | 1902 |
| 1903 #endif | 1903 #endif |
| OLD | NEW |