1. 21 Apr, 2015 1 commit
    • 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
  2. 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
  3. 15 Apr, 2015 1 commit
  4. 14 Apr, 2015 3 commits
  5. 10 Apr, 2015 1 commit
  6. 09 Apr, 2015 2 commits
  7. 07 Apr, 2015 2 commits
  8. 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
  9. 01 Apr, 2015 1 commit
  10. 27 Mar, 2015 1 commit
  11. 26 Mar, 2015 5 commits
  12. 25 Mar, 2015 4 commits
  13. 24 Mar, 2015 3 commits
  14. 23 Mar, 2015 4 commits
  15. 20 Mar, 2015 6 commits
  16. 16 Mar, 2015 1 commit
  17. 19 Mar, 2015 3 commits
    • Adam Barth's avatar
      Add a basic custom painting facility to Sky · 11155a2b
      Adam Barth authored
      This CL adds just enough custom painting to Sky to make
      sky/examples/painting/circle.sky draw a circle. Over time, we should be able to
      elaborate this system into something interesting and to make it actually work
      in a reasonable way.
      
      R=ojan@chromium.org
      
      Review URL: https://codereview.chromium.org/1017593005
      11155a2b
    • Adam Barth's avatar
      Improve Material ink effects · 9d9d2d52
      Adam Barth authored
      1) Factors InkWell out of Material so that components can use an ink well
         without needing the shadow/level machinery.
      
      2) Makes the ink effect move at a different velocity once the tap has actually
         occurred, converging with the spec. We don't have the right speeds yet, but
         at least we're approaching the right shape.
      
      3) To support (2), added a primaryPointer attribute to GestureEvents to let
         authors coorelate gesturetapdown events with later gesturetap events.
      
      4) To support (2), modernized SplashAnimation to used AnimatedValue and friends.
      
      5) Added more constants to view-configuration.dart that match Android.
      
      I've also removed the cancelling of the ink effect on scroll. The proper way to
      do that is to notice that someone in the event chain is listening for
      scrollstart and delay the beginning of the ink effect for some period of time.
      
      R=eseidel@chromium.org
      
      Review URL: https://codereview.chromium.org/1019023003
      9d9d2d52
    • Viet-Trung Luu's avatar
      Make the terminal demo able (to try) to connect to anything. · 818df5f4
      Viet-Trung Luu authored
      (Using the query string from the URL.)
      
      R=erg@chromium.org
      
      Review URL: https://codereview.chromium.org/1019323002
      818df5f4