Revert "Remove LayoutTab#mInsetBorderVertical and related logic"
This reverts commit d4fc9d34. Reason for revert: <INSERT REASONING HERE> Original change's description: > Remove LayoutTab#mInsetBorderVertical and related logic > > TabLayer::SetProperties() currently has a param, inset_border, that changes the > geometry logic for showing tabs in the tab switcher. Currently, we're always > setting the param to true. We then use it to set another variable: > > const bool inset_toolbar = !inset_border; > > which is always false. This is immediately followed by this check, which always > passes: > > if (!inset_toolbar) {...} > > > In addition to being unnecessary, this param is also extremely > confusing/misleading. We do actually start out with the toolbar inset on top of > the tab thumbnail (before we fade it into the tab title), and we only inset the > top and bottom borders, not the ones on the left and right. > > This CL removes this unnecessary logic. > > Bug: 849401 > Change-Id: I5ccfa35f766baf477837be1d886a2974d0009a54 > Reviewed-on: https://chromium-review.googlesource.com/1114330 > Reviewed-by: David Trainor <dtrainor@chromium.org> > Commit-Queue: Ryan Landay <rlanday@chromium.org> > Cr-Commit-Position: refs/heads/master@{#570971} TBR=dtrainor@chromium.org,rlanday@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 849401 Change-Id: I124cce58f105b75164acc05ce6b6cb6831db8a91 Reviewed-on: https://chromium-review.googlesource.com/1124820Reviewed-by:Yusuf Ozuysal <yusufo@chromium.org> Commit-Queue: Yusuf Ozuysal <yusufo@chromium.org> Cr-Commit-Position: refs/heads/master@{#572258}
Showing
Please register or sign in to comment