1. 18 8月, 2016 1 次提交
    • A
      Add stubs for text handling on Fuchsia (#2935) · a5c3a313
      Adam Barth 提交于
      We don't yet have support for text on Fuchsia. This patch add stub
      implementations of Paragraph and ParagraphBuilder so that Flutter apps
      that use text don't error out. Instead, the text is 0x0 and invisible.
      
      Also, teach MojoServices not to crash if it hasn't been created by the
      time Dart tries to use it.
      a5c3a313
  2. 13 8月, 2016 1 次提交
  3. 10 8月, 2016 1 次提交
  4. 06 8月, 2016 1 次提交
  5. 04 8月, 2016 1 次提交
  6. 11 6月, 2016 2 次提交
  7. 30 3月, 2016 2 次提交
  8. 19 1月, 2016 1 次提交
    • A
      Remove integration between tonic and WTFString · 0140555b
      Adam Barth 提交于
      We used to share memory between Dart strings and WTF::String objects by
      way of the Dart externalized strings. That used to be important when the
      DOM shared many strings between C++ and Dart. However, now that we don't
      retain strings in C++ much anymore, we don't need this complexity.
      
      This patch removes DartStringCache and the integration. It also unwinds
      several cases where we were converting back and forth between
      WTF::String and std::string for no reason. Now we use std::string more
      consistently.
      
      For the case of ParagraphBuilder::addText, we now take a raw const
      char*, which more closely matches the API the DartVM exposes. That means
      we do a single copy out of the VM and into the render tree at that
      point.
      0140555b
  9. 31 12月, 2015 1 次提交
  10. 30 12月, 2015 1 次提交
  11. 26 12月, 2015 1 次提交
  12. 04 12月, 2015 1 次提交
  13. 23 10月, 2015 1 次提交
    • A
      Make NewTextPainter actually work · eb594bff
      Adam Barth 提交于
      The NewTextPainter is still disabled by default. A future patch will flip the
      flag to enable it.
      
      This patch uses a new approach to writing bindings by encoding data into array
      buffers. This approach is more efficient than the existing IDL based approach.
      If this works out well, we should convert our other performance-sensitive
      interfaces to this approach in future patches.
      eb594bff
  14. 12 9月, 2015 1 次提交
    • A
      ParagraphBuilder should be able to build a paragraph · 29ab28d9
      Adam Barth 提交于
      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.
      29ab28d9
  15. 02 9月, 2015 1 次提交
    • A
      Sketch a DOM-free API for laying out and painting text · 68b06c87
      Adam Barth 提交于
      Rather than using the DOM to upload text and styling information into the
      engine, this patch begins sketching a more direct API that bypasses the DOM and
      CSS. Currently, this API doesn't do anything, but it's a first step.
      
      The approach is to have a ParagraphBuilder object that can record a tree of
      style interior nodes and text leaves. The build() function then applies
      container-level styling information (such as TextAlign) and returns a Paragraph
      object that can undergo layout and paint.
      
      The inputs to the builder process are immutable style objects constructed from
      primitive values. These primitives are currently carbon-copies of the primitive
      we use in the framework today. After this patch lands, I'll convert the frame
      to re-expose these values instead of re-defining them.
      68b06c87