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

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

Issue 1637323002: Editing: Tidy up HTML document structure before execCommand(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 if (isTextNode()) { 1527 if (isTextNode()) {
1528 String value = nodeValue(); 1528 String value = nodeValue();
1529 value.replaceWithLiteral('\\', "\\\\"); 1529 value.replaceWithLiteral('\\', "\\\\");
1530 value.replaceWithLiteral('\n', "\\n"); 1530 value.replaceWithLiteral('\n', "\\n");
1531 WTFLogAlways("%s%s\t%p \"%s\"\n", prefix, nodeName().utf8().data(), this , value.utf8().data()); 1531 WTFLogAlways("%s%s\t%p \"%s\"\n", prefix, nodeName().utf8().data(), this , value.utf8().data());
1532 } else { 1532 } else {
1533 StringBuilder attrs; 1533 StringBuilder attrs;
1534 appendAttributeDesc(this, attrs, idAttr, " ID"); 1534 appendAttributeDesc(this, attrs, idAttr, " ID");
1535 appendAttributeDesc(this, attrs, classAttr, " CLASS"); 1535 appendAttributeDesc(this, attrs, classAttr, " CLASS");
1536 appendAttributeDesc(this, attrs, styleAttr, " STYLE"); 1536 appendAttributeDesc(this, attrs, styleAttr, " STYLE");
1537 if (hasEditableStyle())
yosin_UTC9 2016/01/27 08:38:04 It seems this change is also in http://crrev.com/1
tkent 2016/01/27 08:48:37 oops. It's by accident.
1538 attrs.appendLiteral(" (editable)");
1537 WTFLogAlways("%s%s\t%p%s\n", prefix, nodeName().utf8().data(), this, att rs.toString().utf8().data()); 1539 WTFLogAlways("%s%s\t%p%s\n", prefix, nodeName().utf8().data(), this, att rs.toString().utf8().data());
1538 } 1540 }
1539 } 1541 }
1540 1542
1541 void Node::showTreeForThis() const 1543 void Node::showTreeForThis() const
1542 { 1544 {
1543 showTreeAndMark(this, "*"); 1545 showTreeAndMark(this, "*");
1544 } 1546 }
1545 1547
1546 void Node::showTreeForThisInComposedTree() const 1548 void Node::showTreeForThisInComposedTree() const
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after
2403 2405
2404 void showNodePath(const blink::Node* node) 2406 void showNodePath(const blink::Node* node)
2405 { 2407 {
2406 if (node) 2408 if (node)
2407 node->showNodePathForThis(); 2409 node->showNodePathForThis();
2408 else 2410 else
2409 fprintf(stderr, "Cannot showNodePath for (nil)\n"); 2411 fprintf(stderr, "Cannot showNodePath for (nil)\n");
2410 } 2412 }
2411 2413
2412 #endif 2414 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698