Eliminate GetLayoutInsets(TAB).
Callers outside Tab only referred to the vertical insets, which are now either 0 or Tab::GetStrokeWidth(), a new function added for this purpose, depending on the context. Inside Tab this is subsumed into GetTabEndcapWidth(), which itself has been split into two parts: a general-purpose routine and a pre-refresh-specific "paint" width routine. This may be cleaned up further depending on how I solve narrow tabs in the end. BUG=none TEST=none Change-Id: Ifca96b76b694f3f922e0252cf5198c7a9bb475e3 Reviewed-on: https://chromium-review.googlesource.com/1112773Reviewed-by:Allen Bauer <kylixrd@chromium.org> Commit-Queue: Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#570168}
Showing
This diff is collapsed.
Please register or sign in to comment