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

Unified Diff: sky/engine/core/html/parser/HTMLElementStack.h

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
Index: sky/engine/core/html/parser/HTMLElementStack.h
diff --git a/sky/engine/core/html/parser/HTMLElementStack.h b/sky/engine/core/html/parser/HTMLElementStack.h
index 769c7f256d3d5f2f6f71019b42d62d02b767dd72..5d1da783dae1c0197dcb795059ca1e85f70177ec 100644
--- a/sky/engine/core/html/parser/HTMLElementStack.h
+++ b/sky/engine/core/html/parser/HTMLElementStack.h
@@ -71,6 +71,8 @@ public:
unsigned stackDepth() const { return m_stackDepth; }
+ bool preserveWhiteSpace() const { return m_preserveWhiteSpaceCount; }
+
// Inlining this function is a (small) performance win on the parsing
// benchmark.
Element* top() const
@@ -107,6 +109,7 @@ private:
ContainerNode* m_rootNode;
unsigned m_stackDepth;
+ unsigned m_preserveWhiteSpaceCount;
};
} // namespace blink
« no previous file with comments | « sky/engine/core/html/parser/HTMLConstructionSite.cpp ('k') | sky/engine/core/html/parser/HTMLElementStack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698