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

Issue 1619793002: Remove use of minimumValueForLength in HTMLAreaElement::getRegion (Closed)

Created:
4 years, 11 months ago by fs
Modified:
4 years, 10 months ago
Reviewers:
tkent
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove use of minimumValueForLength in HTMLAreaElement::getRegion While the 'coords' attribute on HTMLAreaElement is stored as a Vector<Length>, the Lengths will all be of the type 'Fixed'. This means that the only effect of minimumValueForLength() will be to round-trip through LayoutUnit - resulting in a clamp to the allowed range of LayoutUnit. Replace the uses of minimumValueForLength() with a new function (clampCoordinate) that only does this clamping. No functional changes. BUG=578114 Committed: https://crrev.com/41260e42ad6324ca4faa72576757244bf4596218 Cr-Commit-Position: refs/heads/master@{#371184}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -14 lines) Patch
M third_party/WebKit/Source/core/html/HTMLAreaElement.cpp View 3 chunks +20 lines, -14 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
fs
4 years, 11 months ago (2016-01-21 18:35:58 UTC) #2
tkent
This change needs a test. According to crbug.com/578114, now web-platform-tests has a test for this, ...
4 years, 11 months ago (2016-01-21 23:04:54 UTC) #3
fs
On 2016/01/21 at 23:04:54, tkent wrote: > This change needs a test. It does not ...
4 years, 11 months ago (2016-01-22 10:15:38 UTC) #5
fs
On 2016/01/22 at 10:15:38, fs wrote: > On 2016/01/21 at 23:04:54, tkent wrote: ... > ...
4 years, 11 months ago (2016-01-22 14:41:43 UTC) #7
tkent
lgtm. I'm sorry that I jumped to a wrong conclusion!
4 years, 10 months ago (2016-01-25 01:46:19 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1619793002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1619793002/1
4 years, 10 months ago (2016-01-25 01:46:46 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 10 months ago (2016-01-25 04:13:12 UTC) #11
commit-bot: I haz the power
4 years, 10 months ago (2016-01-25 04:14:08 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/41260e42ad6324ca4faa72576757244bf4596218
Cr-Commit-Position: refs/heads/master@{#371184}

Powered by Google App Engine
This is Rietveld 408576698