mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This patch start down the road of implementing text layout and painting without the DOM. We can construct a basic paragraph consisting of a single run of text and we can get through layout without crashing.
20 lines
533 B
C++
20 lines
533 B
C++
// Copyright 2015 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_TEXT_TEXTBASELINE_H_
|
|
#define SKY_ENGINE_CORE_TEXT_TEXTBASELINE_H_
|
|
|
|
#include "sky/engine/tonic/dart_converter.h"
|
|
#include "sky/engine/platform/graphics/GraphicsTypes.h"
|
|
|
|
namespace blink {
|
|
|
|
template <>
|
|
struct DartConverter<TextBaseline>
|
|
: public DartConverterEnum<int> {};
|
|
|
|
} // namespace blink
|
|
|
|
#endif // SKY_ENGINE_CORE_TEXT_TEXTALIGN_H_
|