1. 24 Oct, 2016 23 commits
  2. 23 Oct, 2016 14 commits
  3. 22 Oct, 2016 3 commits
    • nainar's avatar
      Revert of Move Layout Tree Construction code into Element::rebuildLayoutTree()... · 352b0454
      nainar authored
      Revert of Move Layout Tree Construction code into Element::rebuildLayoutTree() (patchset #12 id:240001 of https://codereview.chromium.org/2398293003/ )
      
      Reason for revert:
      Suspected to cause crbug.com/658322.
      
      Original issue's description:
      > Move Layout Tree Construction code into Element::rebuildLayoutTree()
      >
      > This patch uses the two dirty bits (NeedsReattachLayoutTree and
      > ChildNeedsReattachLayoutTree) on Node and adds the relevant
      > getters/setters for them.
      >
      > It makes rebuildLayoutTree() public to be accessed in Document.cpp.
      >
      > It also moves reattachWhitespaceSiblingsIfNeeded() to rebuildLayoutTree() and
      > uses dirtyBits to call either reattachLayoutTree() on node itself or call
      > rebuildLayoutTree() on children nodes.
      >
      > Also added some comments explaining some design decisions. Will be removed
      > upon completion of separation.
      >
      > BUG=595137
      >
      > Committed: https://crrev.com/09b7a8cf0647abca732b3718987a629d12a67fee
      > Cr-Commit-Position: refs/heads/master@{#426353}
      
      TBR=esprehn@chromium.org,bugsnash@chromium.org
      # Not skipping CQ checks because original CL landed more than 1 days ago.
      BUG=595137
      
      Review-Url: https://chromiumcodereview.appspot.com/2439973005
      Cr-Commit-Position: refs/heads/master@{#426991}
      352b0454
    • fs's avatar
      Avoid copying value in ComputedStyle CoW comparions (compareEqual) · 12052640
      fs authored
      Because of the cast of the RHS, |u|, a copy would be generated, with
      code and cycle bloat as the result. In some cases this can even have
      prevented inlining. Particularly nasty examples:
      
       bool compareEqual(const Vector<LengthPoint>&, const Vector<LengthPoint>&) [210 bytes]
       bool compareEqual(const Vector<CSSPropertyID>&, const Vector<CSSPropertyID>&) [274 bytes]
       bool compareEqual(const Vector<GridTrackSize>&, const Vector<GridTrackSize>&) [182 bytes]
       bool compareEqual(const HashMap<String, GridArea>&, const HashMap<String, GridArea>&) [308 bytes]
       bool compareEqual(const TransformOperations&, const TransformOperations&) [441 bytes]
       bool compareEqual(const LengthBox&, const LengthBox&) [249 bytes]
      
      Remove the U->T cast in compareEqual to avoid the copies. Nothing seems
      to require this coercion (anymore?) This eliminates the above symbols
      entirely. A total binary size reduction of >30k (x86-64; non-official) also
      indicates even the simpler cases/types may have benefited.
      
      Review-Url: https://chromiumcodereview.appspot.com/2438353002
      Cr-Commit-Position: refs/heads/master@{#426990}
      12052640
    • rego's avatar
      [css-grid] Use order-modified document order for m_gridItemsIndexesMap · bb707101
      rego authored
      We were storing the index in the DOM for the grid items
      in m_gridItemsIndexesMap. However, we can already store the index
      following the order-modified document order.
      
      This allows us to simplify the sorter in painting,
      as we don't need to check the order property now,
      just simply use the stored index.
      
      No new tests, as it's already covered by current tests.
      
      CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
      
      Review-Url: https://chromiumcodereview.appspot.com/2438253003
      Cr-Commit-Position: refs/heads/master@{#426989}
      bb707101