1. 19 May, 2015 7 commits
  2. 18 May, 2015 3 commits
    • Eric Seidel's avatar
      Add Canvas.drawPicture · 29356307
      Eric Seidel authored
      I wrote another copy of paint_element_into_displaylist
      using this new technology.
      
      R=abarth@chromium.org
      
      Review URL: https://codereview.chromium.org/1129353010
      29356307
    • Eric Seidel's avatar
      Make it possible to Paint elements into a display list. · 20459183
      Eric Seidel authored
      Currently said elements need to be in the DOM and have
      already been laid out for this to work, but follow-up patches
      will remove these restrictions.
      
      R=abarth@chromium.org
      
      Review URL: https://codereview.chromium.org/1144673002
      20459183
    • John McCutchan's avatar
      Rationalize Dart mojo and sky package structure. · 57ec759e
      John McCutchan authored
      NOTE: This CL appears far larger than it actually is for two reasons:
      
      1) Many files were moved around to use the Dart package directory structure.
      2) Many .dart files had to have import paths updated.
      
      - Organize mojo/public/dart so that it uses standard Dart package layout
      - Organize mojo/dart/apptest so that it uses a standard Dart package layout
      - Organize sky/sdk so that it uses a standard Dart package layout
      - Create a mojo/testing package (used by unittests)
      - Introduce the 'dart_pkg' gn rule which populates gen/Config/dart-pkg
      - All internally vended Dart packages must have a corresponding dart_pkg rule
      - It is now possible to use dependency_overrides: in pubspec.yaml to mix internal and external package dependencies (enables analyzer, editor, webstorm usage for internal developers).
      - Package root for dart content handler ends with "packages/"
      - Imports of mojo package uris no longer need the "public/dart"
      - mojo/public/tools/dart_package.py is a clone of mojo/public/tools/gn/zip.py
      - Sky tests no longer run 'deploy_sdk' script.
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1132063007
      57ec759e
  3. 15 May, 2015 1 commit
  4. 14 May, 2015 4 commits
  5. 13 May, 2015 3 commits
    • Matt Perry's avatar
      Flesh out the Painting API a bit. · 769cef59
      Matt Perry authored
      This exposes most methods from Skia's C canvas API to Dart. For now, SkRect and
      SkMatrix are represented simply as an array of floats, which requires a
      conversion at the bindings layer. More complex types like SkPath are still TODO.
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1144483002
      769cef59
    • Eric Seidel's avatar
      Make it possible to custom-paint without an Element. · a0609d1f
      Eric Seidel authored
      This adds a new abstract 'Canvas' which is similar to SkCanvas.
      PaintContext implements Canvas while still having its
      own commit() method to cause the paint actions to apply to
      the Element for the next frame.
      This adds a new PictureRecorder which also implements Canvas
      and has an endRecording() method which returns a Picture
      (another new interface) which can be held from Dart.
      
      There is also now a rootPicture setter on Document which takes
      a Picture and will then make the Document draw that Picture
      until changed.
      
      This piggybacks on the existing custom painting system
      which adds the painting at background-and-borders paint
      time so technically if you both set rootPicture as well as
      construct a DOM you will draw the DOM on top of your picture. :)
      
      R=mpcomplete@chromium.org
      
      Review URL: https://codereview.chromium.org/1122423009
      a0609d1f
    • Colin Blundell's avatar
      Create wrapper script around mojom's generate.dart in the Sky package. · 3a138caa
      Colin Blundell authored
      This CL does the following:
      - Moves mojom's generate.dart from bin/ to lib/ to make it available for use
        by a wrapper scripts in the Sky package, thus avoiding all consumers of Sky
        needing to directly depend on mojom to be able to call
        "pub run mojom:generate".
      - Adds a sky->mojom pub dependency and creates a wrapper script around mojom's
        generate.dart in the Sky package.
      - Augments the Sky README to explain the usage of this script.
      
      R=eseidel@chromium.org, sethladd@google.com
      
      Review URL: https://codereview.chromium.org/1136503002
      3a138caa
  6. 12 May, 2015 1 commit
    • Hixie's avatar
      [Effen] Use the checkbox widget in the stocks app. · 09183a7f
      Hixie authored
      - add a checkbox to the stock app, so that we're testing the checkbox widget
        (it's not currently wired up to anything, that can come later)
      - make InkSplash use FlexContainer so that we can use flex in the popup menu items
      - make effen's Text be more similar to Image and Container, so that it can be styled
      - make layout.dart's RenderCSSText correctly support being styled
      - also fixes a bug with the stock list where we were rendering one too few a row when scrolling
      - check in the code to dump the DOM so I don't have to keep remembering how to do this
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1134163003
      09183a7f
  7. 04 May, 2015 1 commit
  8. 28 Apr, 2015 4 commits
  9. 27 Apr, 2015 2 commits
  10. 21 Apr, 2015 3 commits
    • Hixie's avatar
      fix 'feeback' typo in stock app in menus · ab3b684f
      Hixie authored
      TBR=eseidel
      
      Review URL: https://codereview.chromium.org/1065653009
      ab3b684f
    • Hixie's avatar
      [Effen] fix warnings · 43988833
      Hixie authored
      remove members that are never read
      remove imports that are never used
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1099203002
      43988833
    • Hixie's avatar
      [Effen] Prevent scrolling past the bottom of a scrollable list. · ebc879ba
      Hixie authored
      - make the ScrollBehavior instance long-lived, rather than recreating
        it each time we update the list contents.
      - have OverscrollBehavior track the total height of the contents and
        the height of the scrollable region, so that it can determine when
        to stop scrolling down.
      - teach OverscrollBehavior about how to determine when to stop
        scrolling down, and how to bounce when it's too far down.
      - replace the 'energy' concept in Particles with a method that sets
        the energy and direction at the same time, instead of assuming that
        the direction is always positive when setting energy.
      - make FixedHeightScrollable lists track the number of items in the
        list and have them update their ScrollBehavior regarding this
        information as it changes.
      - track how many items are currently showing in the list stock list.
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1097373002
      ebc879ba
  11. 20 Apr, 2015 1 commit
    • Hixie's avatar
      [Effen] Only skip rows we're showing, when skipping past the rows that we've... · 23283319
      Hixie authored
      [Effen] Only skip rows we're showing, when skipping past the rows that we've scrolled beyond in the stock list.
      
      Currently, if you then scroll down N items with a filter set, we select which
      stock to show by taking the entire list of stocks, skipping the first N, then
      filtering the list, then selecting as many stocks as needed to fill the list.
      
      So suppose the list is A, B, Cx, Dx, Ex, F, and the filter is "x", and you've
      scrolled down 1 item.
      
      Currently we'd show Cx, Dx, Ex.
      
      Scroll down 1 again.
      
      We still show Cx, Dx, Ex.
      
      What we _should_ show is Dx, Ex if you've scrolled down 1, and just Ex if you've
      scrolled two.
      
      This patch fixes this. We now skip rows _after_ filtering. This fixes
      the bug whereby if you set a filter then fling the list, we show the
      same item over and over as if in a loop.
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1057603006
      23283319
  12. 15 Apr, 2015 1 commit
  13. 14 Apr, 2015 3 commits
  14. 10 Apr, 2015 1 commit
  15. 09 Apr, 2015 2 commits
  16. 07 Apr, 2015 2 commits
  17. 06 Apr, 2015 1 commit
    • Ojan Vafai's avatar
      Remove all uses of display:block and display:inline-block. · a03a911e
      Ojan Vafai authored
      -Make display:flex, flex-direction: column, flex-shrink: 1 the default.
      -Simplify StyleAdjuster::adjustStyleForAlignment to remove special cases we
      won't need as we make flex the default and remove absolute positioning.
      -Fix a bug this exposed in column flexboxes where we'd apply the wrong edge
      of border/padding/margin.
      -For now leave the default of align-items:stretch. The main change here is
      that iframe/img will do width:auto the same as blocks (i.e. the width of
      the parent). I think this is a good change, but we'll have to see how it feels
      in practice.
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1061163002
      a03a911e