OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
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 1864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1875 unsigned Node::lengthOfContents() const | 1875 unsigned Node::lengthOfContents() const |
1876 { | 1876 { |
1877 // This switch statement must be consistent with that of Range::processConte
ntsBetweenOffsets. | 1877 // This switch statement must be consistent with that of Range::processConte
ntsBetweenOffsets. |
1878 switch (nodeType()) { | 1878 switch (nodeType()) { |
1879 case Node::TEXT_NODE: | 1879 case Node::TEXT_NODE: |
1880 return toCharacterData(this)->length(); | 1880 return toCharacterData(this)->length(); |
1881 case Node::ELEMENT_NODE: | 1881 case Node::ELEMENT_NODE: |
1882 case Node::DOCUMENT_NODE: | 1882 case Node::DOCUMENT_NODE: |
1883 case Node::DOCUMENT_FRAGMENT_NODE: | 1883 case Node::DOCUMENT_FRAGMENT_NODE: |
1884 return toContainerNode(this)->countChildren(); | 1884 return toContainerNode(this)->countChildren(); |
1885 return 0; | |
1886 } | 1885 } |
1887 ASSERT_NOT_REACHED(); | 1886 ASSERT_NOT_REACHED(); |
1888 return 0; | 1887 return 0; |
1889 } | 1888 } |
1890 | 1889 |
1891 v8::Handle<v8::Object> Node::wrap(v8::Handle<v8::Object> creationContext, v8::Is
olate* isolate) | 1890 v8::Handle<v8::Object> Node::wrap(v8::Handle<v8::Object> creationContext, v8::Is
olate* isolate) |
1892 { | 1891 { |
1893 ASSERT(!DOMDataStore::containsWrapperNonTemplate(this, isolate)); | 1892 ASSERT(!DOMDataStore::containsWrapperNonTemplate(this, isolate)); |
1894 | 1893 |
1895 const WrapperTypeInfo* wrapperType = wrapperTypeInfo(); | 1894 const WrapperTypeInfo* wrapperType = wrapperTypeInfo(); |
(...skipping 23 matching lines...) Expand all Loading... |
1919 node->showTreeForThis(); | 1918 node->showTreeForThis(); |
1920 } | 1919 } |
1921 | 1920 |
1922 void showNodePath(const blink::Node* node) | 1921 void showNodePath(const blink::Node* node) |
1923 { | 1922 { |
1924 if (node) | 1923 if (node) |
1925 node->showNodePathForThis(); | 1924 node->showNodePathForThis(); |
1926 } | 1925 } |
1927 | 1926 |
1928 #endif | 1927 #endif |
OLD | NEW |