Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Issue 138903031: Don't let RenderScrollbarPart have padding. (Closed)

Created:
6 years, 10 months ago by mstensho (USE GERRIT)
Modified:
6 years, 10 months ago
CC:
blink-reviews, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr.
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Don't let RenderScrollbarPart have padding. Return 0 padding for all sides. While RenderScrollbarPart isn't laid out normally and padding is ignored anyway, the padding getters may still be used from outside layout, and if padding is percent-based, a containing block is required, which not all RenderScrollbarPart objects have, so it would crash. BUG=341004 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167640

Patch Set 1 #

Patch Set 2 : Code review - add test. #

Total comments: 6

Patch Set 3 : Rebase master #

Patch Set 4 : Code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -0 lines) Patch
A LayoutTests/scrollbars/viewport-scrollbar-corner-with-percent-padding-crash.html View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/scrollbars/viewport-scrollbar-corner-with-percent-padding-crash-expected.txt View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderScrollbarPart.h View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
mstensho (USE GERRIT)
6 years, 10 months ago (2014-02-11 13:45:15 UTC) #1
Julien - ping for review
Morten, could you add a reduced layout test to ensure we don't regress this? (while ...
6 years, 10 months ago (2014-02-12 02:41:40 UTC) #2
mstensho (USE GERRIT)
On 2014/02/12 02:41:40, Julien Chaffraix - PST wrote: > Morten, could you add a reduced ...
6 years, 10 months ago (2014-02-12 10:32:53 UTC) #3
Julien - ping for review
lgtm with some suggestions. https://codereview.chromium.org/138903031/diff/50001/LayoutTests/scrollbars/viewport-scrollbar-corner-with-percent-padding-crash.html File LayoutTests/scrollbars/viewport-scrollbar-corner-with-percent-padding-crash.html (right): https://codereview.chromium.org/138903031/diff/50001/LayoutTests/scrollbars/viewport-scrollbar-corner-with-percent-padding-crash.html#newcode4 LayoutTests/scrollbars/viewport-scrollbar-corner-with-percent-padding-crash.html:4: <title>Viewport scrollbar corner with percent ...
6 years, 10 months ago (2014-02-19 16:25:13 UTC) #4
mstensho (USE GERRIT)
https://codereview.chromium.org/138903031/diff/50001/LayoutTests/scrollbars/viewport-scrollbar-corner-with-percent-padding-crash.html File LayoutTests/scrollbars/viewport-scrollbar-corner-with-percent-padding-crash.html (right): https://codereview.chromium.org/138903031/diff/50001/LayoutTests/scrollbars/viewport-scrollbar-corner-with-percent-padding-crash.html#newcode4 LayoutTests/scrollbars/viewport-scrollbar-corner-with-percent-padding-crash.html:4: <title>Viewport scrollbar corner with percent padding and background image</title> ...
6 years, 10 months ago (2014-02-22 20:54:50 UTC) #5
mstensho (USE GERRIT)
The CQ bit was checked by mstensho@opera.com
6 years, 10 months ago (2014-02-22 20:55:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mstensho@opera.com/138903031/130001
6 years, 10 months ago (2014-02-22 20:55:10 UTC) #7
commit-bot: I haz the power
6 years, 10 months ago (2014-02-22 23:39:51 UTC) #8
Message was sent while issue was closed.
Change committed as 167640

Powered by Google App Engine
This is Rietveld 408576698