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

Unified Diff: sky/engine/core/dom/Node.cpp

Issue 867963006: Add the <t> element and ignore whitespace outside it. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Do it for a whole subtree. Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/dom/Node.h ('k') | sky/engine/core/dom/Text.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Node.cpp
diff --git a/sky/engine/core/dom/Node.cpp b/sky/engine/core/dom/Node.cpp
index ca66bb24cfb77243fe14ff75790e4dfe95863bea..c93bb6993605ca230212a59c3767efacfba4fd63 100644
--- a/sky/engine/core/dom/Node.cpp
+++ b/sky/engine/core/dom/Node.cpp
@@ -711,23 +711,6 @@ void Node::detach(const AttachContext& context)
setChildNeedsStyleRecalc();
}
-void Node::reattachWhitespaceSiblings(Text* start)
-{
- for (Node* sibling = start; sibling; sibling = sibling->nextSibling()) {
- if (sibling->isTextNode() && toText(sibling)->containsOnlyWhitespace()) {
- bool hadRenderer = !!sibling->renderer();
- sibling->reattach();
- // If the reattach didn't toggle the visibility of the whitespace we don't
- // need to continue reattaching siblings since they won't toggle visibility
- // either.
- if (hadRenderer == !!sibling->renderer())
- return;
- } else if (sibling->renderer()) {
- return;
- }
- }
-}
-
// FIXME: This code is used by editing. Seems like it could move over there and not pollute Node.
Node *Node::previousNodeConsideringAtomicNodes() const
{
« no previous file with comments | « sky/engine/core/dom/Node.h ('k') | sky/engine/core/dom/Text.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698