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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #include "core/editing/VisibleUnits.h" | 43 #include "core/editing/VisibleUnits.h" |
44 #include "core/editing/markup.h" | 44 #include "core/editing/markup.h" |
45 #include "core/html/HTMLElement.h" | 45 #include "core/html/HTMLElement.h" |
46 #include "core/platform/graphics/FloatQuad.h" | 46 #include "core/platform/graphics/FloatQuad.h" |
47 #include "core/rendering/RenderBoxModelObject.h" | 47 #include "core/rendering/RenderBoxModelObject.h" |
48 #include "core/rendering/RenderText.h" | 48 #include "core/rendering/RenderText.h" |
49 #include "wtf/RefCountedLeakCounter.h" | 49 #include "wtf/RefCountedLeakCounter.h" |
50 #include "wtf/Vector.h" | 50 #include "wtf/Vector.h" |
51 #include "wtf/text/CString.h" | 51 #include "wtf/text/CString.h" |
52 #include "wtf/text/StringBuilder.h" | 52 #include "wtf/text/StringBuilder.h" |
| 53 #ifndef NDEBUG |
53 #include <stdio.h> | 54 #include <stdio.h> |
| 55 #endif |
54 | 56 |
55 namespace WebCore { | 57 namespace WebCore { |
56 | 58 |
57 using namespace std; | 59 using namespace std; |
58 using namespace HTMLNames; | 60 using namespace HTMLNames; |
59 | 61 |
60 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, rangeCounter, ("Range")); | 62 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, rangeCounter, ("Range")); |
61 | 63 |
62 inline Range::Range(PassRefPtr<Document> ownerDocument) | 64 inline Range::Range(PassRefPtr<Document> ownerDocument) |
63 : m_ownerDocument(ownerDocument) | 65 : m_ownerDocument(ownerDocument) |
(...skipping 1831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1895 | 1897 |
1896 void showTree(const WebCore::Range* range) | 1898 void showTree(const WebCore::Range* range) |
1897 { | 1899 { |
1898 if (range && range->boundaryPointsValid()) { | 1900 if (range && range->boundaryPointsValid()) { |
1899 range->startContainer()->showTreeAndMark(range->startContainer(), "S", r
ange->endContainer(), "E"); | 1901 range->startContainer()->showTreeAndMark(range->startContainer(), "S", r
ange->endContainer(), "E"); |
1900 fprintf(stderr, "start offset: %d, end offset: %d\n", range->startOffset
(), range->endOffset()); | 1902 fprintf(stderr, "start offset: %d, end offset: %d\n", range->startOffset
(), range->endOffset()); |
1901 } | 1903 } |
1902 } | 1904 } |
1903 | 1905 |
1904 #endif | 1906 #endif |
OLD | NEW |