Make the border widths consistent (1px) for range/meter/progress/radio/checkbox
This change updates the rendering of range/meter/checkbox so their border widths are 1px regardless of the zoom level (same behavior progress and radio currently have) To prevent the borders from growing on zoom, the ThemePainterDefault are updated for checkbox and range so the painting context is not modified when zoom level is not 1. The zoom info are then embedded in ButtonExtraParams and SliderExtraParams and passed to NativeThemeAura so PaintCheckbox can render border-radius correctly and PaintSliderTrack can render track height correctly. For meter the border-width is changed from 1px on thin. Tests: meter: meter-extreme-values.html range: range-appearance-basic.html checkbox: checkbox-appearance-basic.html Bug: 1021319 Change-Id: Icee5d83a859556909bdf930c314d70ddd17d7784 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1910864 Commit-Queue: Alex Keng <shihken@microsoft.com> Reviewed-by:Elly Fong-Jones <ellyjones@chromium.org> Reviewed-by:
Mason Freed <masonfreed@chromium.org> Reviewed-by:
Kent Tamura <tkent@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#714868}
Showing


12.9 KB
12 KB
12.7 KB
12.9 KB
12 KB
12.7 KB
12.9 KB
12 KB
12.7 KB
12.9 KB
12 KB
12.7 KB









13 KB
