mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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
28 lines
597 B
C++
28 lines
597 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.
|
|
|
|
#include "sky/engine/config.h"
|
|
#include "sky/engine/core/html/HTMLTElement.h"
|
|
|
|
#include "gen/sky/core/HTMLNames.h"
|
|
#include "sky/engine/core/dom/Document.h"
|
|
|
|
namespace blink {
|
|
|
|
HTMLTElement::HTMLTElement(Document& document)
|
|
: HTMLElement(HTMLNames::tTag, document)
|
|
{
|
|
}
|
|
|
|
HTMLTElement::~HTMLTElement()
|
|
{
|
|
}
|
|
|
|
PassRefPtr<HTMLTElement> HTMLTElement::create(Document& document)
|
|
{
|
|
return adoptRef(new HTMLTElement(document));
|
|
}
|
|
|
|
}
|