flutter_flutter/engine/core/html/HTMLTElement.h
Elliott Sprehn 0275d42ac7 Add the <t> element and ignore whitespace outside it.
We now only preserve the whitespace inside a <t> element inside
the parser. This removes the known n^2 from reattaching whitespace
which should make parsing and appending nodes faster. I also
removed the dead WhitespaceMode code from the parser, and made
the dom-seralizer.sky auto indent the markup so the test output
would be readable.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/867963006
2015-01-23 16:50:00 -08:00

27 lines
627 B
C++

// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SKY_ENGINE_CORE_HTML_HTMLITELEMENT_H_
#define SKY_ENGINE_CORE_HTML_HTMLITELEMENT_H_
#include "sky/engine/core/html/HTMLElement.h"
namespace blink {
class Document;
class HTMLTElement final : public HTMLElement {
DEFINE_WRAPPERTYPEINFO();
public:
static PassRefPtr<HTMLTElement> create(Document&);
private:
explicit HTMLTElement(Document&);
~HTMLTElement();
};
} // namespace blink
#endif // SKY_ENGINE_CORE_HTML_HTMLITELEMENT_H_