Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: sky/engine/core/dom/Node.cpp

Issue 697183003: Fix more Windows compile errors (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: remove NONCLIENTMETRICS_XP Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/BUILD.gn ('k') | sky/engine/wtf/ByteOrder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « sky/engine/BUILD.gn ('k') | sky/engine/wtf/ByteOrder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698