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

Side by Side Diff: Source/core/dom/Node.cpp

Issue 159513002: Remove Unused measure DocumentTypeEntities (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 months 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 | « Source/core/dom/NamedNodeMap.h ('k') | no next file » | 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 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after
1321 const DocumentType* documentTypeOther = toDocumentType(other); 1321 const DocumentType* documentTypeOther = toDocumentType(other);
1322 1322
1323 if (documentTypeThis->publicId() != documentTypeOther->publicId()) 1323 if (documentTypeThis->publicId() != documentTypeOther->publicId())
1324 return false; 1324 return false;
1325 1325
1326 if (documentTypeThis->systemId() != documentTypeOther->systemId()) 1326 if (documentTypeThis->systemId() != documentTypeOther->systemId())
1327 return false; 1327 return false;
1328 1328
1329 if (documentTypeThis->internalSubset() != documentTypeOther->internalSub set()) 1329 if (documentTypeThis->internalSubset() != documentTypeOther->internalSub set())
1330 return false; 1330 return false;
1331
1332 // FIXME: We don't compare entities or notations because currently both are always empty.
1333 } 1331 }
1334 1332
1335 return true; 1333 return true;
1336 } 1334 }
1337 1335
1338 bool Node::isDefaultNamespace(const AtomicString& namespaceURIMaybeEmpty) const 1336 bool Node::isDefaultNamespace(const AtomicString& namespaceURIMaybeEmpty) const
1339 { 1337 {
1340 const AtomicString& namespaceURI = namespaceURIMaybeEmpty.isEmpty() ? nullAt om : namespaceURIMaybeEmpty; 1338 const AtomicString& namespaceURI = namespaceURIMaybeEmpty.isEmpty() ? nullAt om : namespaceURIMaybeEmpty;
1341 1339
1342 switch (nodeType()) { 1340 switch (nodeType()) {
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after
2560 node->showTreeForThis(); 2558 node->showTreeForThis();
2561 } 2559 }
2562 2560
2563 void showNodePath(const WebCore::Node* node) 2561 void showNodePath(const WebCore::Node* node)
2564 { 2562 {
2565 if (node) 2563 if (node)
2566 node->showNodePathForThis(); 2564 node->showNodePathForThis();
2567 } 2565 }
2568 2566
2569 #endif 2567 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/NamedNodeMap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698