| 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 |
| 11 * License as published by the Free Software Foundation; either | 11 * License as published by the Free Software Foundation; either |
| 12 * version 2 of the License, or (at your option) any later version. | 12 * version 2 of the License, or (at your option) any later version. |
| 13 * | 13 * |
| 14 * This library is distributed in the hope that it will be useful, | 14 * This library is distributed in the hope that it will be useful, |
| 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 * Library General Public License for more details. | 17 * Library General Public License for more details. |
| 18 * | 18 * |
| 19 * You should have received a copy of the GNU Library General Public License | 19 * You should have received a copy of the GNU Library General Public License |
| 20 * along with this library; see the file COPYING.LIB. If not, write to | 20 * along with this library; see the file COPYING.LIB. If not, write to |
| 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 22 * Boston, MA 02110-1301, USA. | 22 * Boston, MA 02110-1301, USA. |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #include "config.h" | 25 #include "sky/engine/config.h" |
| 26 #include "core/dom/Range.h" | 26 #include "sky/engine/core/dom/Range.h" |
| 27 | 27 |
| 28 #include "bindings/core/v8/ExceptionState.h" | 28 #include "sky/engine/bindings/core/v8/ExceptionState.h" |
| 29 #include "core/dom/ClientRect.h" | 29 #include "sky/engine/core/dom/ClientRect.h" |
| 30 #include "core/dom/ClientRectList.h" | 30 #include "sky/engine/core/dom/ClientRectList.h" |
| 31 #include "core/dom/DocumentFragment.h" | 31 #include "sky/engine/core/dom/DocumentFragment.h" |
| 32 #include "core/dom/ExceptionCode.h" | 32 #include "sky/engine/core/dom/ExceptionCode.h" |
| 33 #include "core/dom/Node.h" | 33 #include "sky/engine/core/dom/Node.h" |
| 34 #include "core/dom/NodeTraversal.h" | 34 #include "sky/engine/core/dom/NodeTraversal.h" |
| 35 #include "core/dom/NodeWithIndex.h" | 35 #include "sky/engine/core/dom/NodeWithIndex.h" |
| 36 #include "core/dom/Text.h" | 36 #include "sky/engine/core/dom/Text.h" |
| 37 #include "core/editing/TextIterator.h" | 37 #include "sky/engine/core/editing/markup.h" |
| 38 #include "core/editing/VisiblePosition.h" | 38 #include "sky/engine/core/editing/TextIterator.h" |
| 39 #include "core/editing/VisibleUnits.h" | 39 #include "sky/engine/core/editing/VisiblePosition.h" |
| 40 #include "core/editing/markup.h" | 40 #include "sky/engine/core/editing/VisibleUnits.h" |
| 41 #include "core/events/ScopedEventQueue.h" | 41 #include "sky/engine/core/events/ScopedEventQueue.h" |
| 42 #include "core/html/HTMLElement.h" | 42 #include "sky/engine/core/html/HTMLElement.h" |
| 43 #include "core/rendering/RenderBoxModelObject.h" | 43 #include "sky/engine/core/rendering/RenderBoxModelObject.h" |
| 44 #include "core/rendering/RenderText.h" | 44 #include "sky/engine/core/rendering/RenderText.h" |
| 45 #include "platform/geometry/FloatQuad.h" | 45 #include "sky/engine/platform/geometry/FloatQuad.h" |
| 46 #include "wtf/RefCountedLeakCounter.h" | 46 #include "sky/engine/wtf/RefCountedLeakCounter.h" |
| 47 #include "wtf/text/CString.h" | 47 #include "sky/engine/wtf/text/CString.h" |
| 48 #include "wtf/text/StringBuilder.h" | 48 #include "sky/engine/wtf/text/StringBuilder.h" |
| 49 #ifndef NDEBUG | 49 #ifndef NDEBUG |
| 50 #include <stdio.h> | 50 #include <stdio.h> |
| 51 #endif | 51 #endif |
| 52 | 52 |
| 53 namespace blink { | 53 namespace blink { |
| 54 | 54 |
| 55 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, rangeCounter, ("Range")); | 55 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, rangeCounter, ("Range")); |
| 56 | 56 |
| 57 inline Range::Range(Document& ownerDocument) | 57 inline Range::Range(Document& ownerDocument) |
| 58 : m_ownerDocument(&ownerDocument) | 58 : m_ownerDocument(&ownerDocument) |
| (...skipping 1461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1520 | 1520 |
| 1521 void showTree(const blink::Range* range) | 1521 void showTree(const blink::Range* range) |
| 1522 { | 1522 { |
| 1523 if (range && range->boundaryPointsValid()) { | 1523 if (range && range->boundaryPointsValid()) { |
| 1524 range->startContainer()->showTreeAndMark(range->startContainer(), "S", r
ange->endContainer(), "E"); | 1524 range->startContainer()->showTreeAndMark(range->startContainer(), "S", r
ange->endContainer(), "E"); |
| 1525 fprintf(stderr, "start offset: %d, end offset: %d\n", range->startOffset
(), range->endOffset()); | 1525 fprintf(stderr, "start offset: %d, end offset: %d\n", range->startOffset
(), range->endOffset()); |
| 1526 } | 1526 } |
| 1527 } | 1527 } |
| 1528 | 1528 |
| 1529 #endif | 1529 #endif |
| OLD | NEW |