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

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

Issue 1756763002: 2016-03-02T18:53:01 LayoutPosition Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-04-25T19:02:18 Created 4 years, 7 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
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 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after
1511 WTFLogAlways("%s?%s\t%p\n", prefix, nodeName().utf8().data(), this); 1511 WTFLogAlways("%s?%s\t%p\n", prefix, nodeName().utf8().data(), this);
1512 } else if (isShadowRoot()) { 1512 } else if (isShadowRoot()) {
1513 // nodeName of ShadowRoot is #document-fragment. It's confused with 1513 // nodeName of ShadowRoot is #document-fragment. It's confused with
1514 // DocumentFragment. 1514 // DocumentFragment.
1515 WTFLogAlways("%s#shadow-root\t%p\n", prefix, this); 1515 WTFLogAlways("%s#shadow-root\t%p\n", prefix, this);
1516 } else { 1516 } else {
1517 StringBuilder attrs; 1517 StringBuilder attrs;
1518 appendAttributeDesc(this, attrs, idAttr, " ID"); 1518 appendAttributeDesc(this, attrs, idAttr, " ID");
1519 appendAttributeDesc(this, attrs, classAttr, " CLASS"); 1519 appendAttributeDesc(this, attrs, classAttr, " CLASS");
1520 appendAttributeDesc(this, attrs, styleAttr, " STYLE"); 1520 appendAttributeDesc(this, attrs, styleAttr, " STYLE");
1521 appendAttributeDesc(this, attrs, nameAttr, " NAME");
1522 appendAttributeDesc(this, attrs, typeAttr, " TYPE");
1521 if (hasEditableStyle()) 1523 if (hasEditableStyle())
1522 attrs.appendLiteral(" (editable)"); 1524 attrs.appendLiteral(" (editable)");
1523 if (document().focusedElement() == this) 1525 if (document().focusedElement() == this)
1524 attrs.appendLiteral(" (focused)"); 1526 attrs.appendLiteral(" (focused)");
1525 WTFLogAlways("%s%s\t%p%s\n", prefix, nodeName().utf8().data(), this, att rs.toString().utf8().data()); 1527 WTFLogAlways("%s%s\t%p%s\n", prefix, nodeName().utf8().data(), this, att rs.toString().utf8().data());
1526 } 1528 }
1527 } 1529 }
1528 1530
1529 void Node::showTreeForThis() const 1531 void Node::showTreeForThis() const
1530 { 1532 {
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
2332 2334
2333 void showNodePath(const blink::Node* node) 2335 void showNodePath(const blink::Node* node)
2334 { 2336 {
2335 if (node) 2337 if (node)
2336 node->showNodePathForThis(); 2338 node->showNodePathForThis();
2337 else 2339 else
2338 fprintf(stderr, "Cannot showNodePath for (nil)\n"); 2340 fprintf(stderr, "Cannot showNodePath for (nil)\n");
2339 } 2341 }
2340 2342
2341 #endif 2343 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/editing/DOMSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698