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

Issue 13454026: Update all float attributes in HTMLMediaElement and related objects to double (Closed)

Created:
7 years, 8 months ago by acolwell GONE FROM CHROMIUM
Modified:
7 years, 8 months ago
Reviewers:
jamesr, eseidel
CC:
blink-reviews, Stephen Chennney, abarth_chromum.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Update all float attributes in HTMLMediaElement and related objects to double. This will bring HTMLMediaElement and TimeRanges into compliance with the HTML5 spec declarations and will remove script visible truncations to the float range once the Chromium-side changes land. BUG=227156 TEST=All existing media LayoutTests still pass. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=147968

Patch Set 1 #

Patch Set 2 : Removed GTK change since the file is gone now. #

Total comments: 6

Patch Set 3 : Removed changes to other non-chromium files. #

Patch Set 4 : Updated playback rate and volume LayoutTests to verify proper behavior w/ extreme values. #

Patch Set 5 : Change WebMediaPlayer to only have the xxxFloat methods. #

Total comments: 6

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -267 lines) Patch
M LayoutTests/media/video-playbackrate.html View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M LayoutTests/media/video-playbackrate-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M LayoutTests/media/video-volume.html View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/media/video-volume-expected.txt View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M Source/WebCore/html/HTMLMediaElement.h View 1 2 3 4 5 12 chunks +25 lines, -25 lines 0 comments Download
M Source/WebCore/html/HTMLMediaElement.cpp View 1 2 3 4 5 34 chunks +47 lines, -47 lines 0 comments Download
M Source/WebCore/html/HTMLMediaElement.idl View 1 2 3 4 5 2 chunks +6 lines, -6 lines 0 comments Download
M Source/WebCore/html/MediaController.h View 2 chunks +12 lines, -12 lines 0 comments Download
M Source/WebCore/html/MediaController.cpp View 5 chunks +11 lines, -11 lines 0 comments Download
M Source/WebCore/html/MediaControllerInterface.h View 1 chunk +9 lines, -9 lines 0 comments Download
M Source/WebCore/html/TimeRanges.h View 2 chunks +11 lines, -11 lines 0 comments Download
M Source/WebCore/html/TimeRanges.cpp View 7 chunks +17 lines, -17 lines 0 comments Download
M Source/WebCore/html/TimeRanges.idl View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M Source/WebCore/html/shadow/MediaControlElementTypes.h View 3 chunks +5 lines, -5 lines 0 comments Download
M Source/WebCore/html/shadow/MediaControlElementTypes.cpp View 7 chunks +11 lines, -12 lines 0 comments Download
M Source/WebCore/html/shadow/MediaControlElements.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M Source/WebCore/html/shadow/MediaControlElements.cpp View 1 2 3 4 5 3 chunks +3 lines, -4 lines 0 comments Download
M Source/WebCore/html/shadow/MediaControls.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/WebCore/html/shadow/MediaControlsChromium.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/WebCore/html/track/TextTrackCue.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/WebCore/html/track/TextTrackCue.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/WebCore/platform/Clock.h View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/WebCore/platform/ClockGeneric.h View 2 chunks +5 lines, -5 lines 0 comments Download
M Source/WebCore/platform/ClockGeneric.cpp View 3 chunks +4 lines, -7 lines 0 comments Download
M Source/WebCore/platform/graphics/MediaPlayer.h View 1 2 3 4 5 4 chunks +14 lines, -14 lines 0 comments Download
M Source/WebCore/platform/graphics/MediaPlayer.cpp View 1 2 3 4 5 9 chunks +18 lines, -18 lines 0 comments Download
M Source/WebCore/platform/graphics/MediaPlayerPrivate.h View 1 2 3 4 5 3 chunks +11 lines, -9 lines 0 comments Download
M Source/WebKit/chromium/public/WebMediaPlayer.h View 1 2 3 4 3 chunks +8 lines, -8 lines 0 comments Download
M Source/WebKit/chromium/public/WebMediaPlayerClient.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/WebKit/chromium/src/WebMediaPlayerClientImpl.h View 1 2 3 4 chunks +10 lines, -10 lines 0 comments Download
M Source/WebKit/chromium/src/WebMediaPlayerClientImpl.cpp View 1 2 3 7 chunks +20 lines, -20 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
acolwell GONE FROM CHROMIUM
7 years, 8 months ago (2013-04-05 20:51:09 UTC) #1
jamesr
Seems reasonable, but I'm probably not the best reviewer for something like this. Do we ...
7 years, 8 months ago (2013-04-05 21:30:12 UTC) #2
acolwell GONE FROM CHROMIUM
On 2013/04/05 21:30:12, jamesr wrote: > Seems reasonable, but I'm probably not the best reviewer ...
7 years, 8 months ago (2013-04-05 21:36:12 UTC) #3
eseidel
Can you add a bit more description to your change? Did you try this in ...
7 years, 8 months ago (2013-04-05 21:44:14 UTC) #4
eseidel
You're going to have trouble landing this with non-chromium changes in the diff, as those ...
7 years, 8 months ago (2013-04-05 21:44:38 UTC) #5
acolwell GONE FROM CHROMIUM
On 2013/04/05 21:44:14, Eric Seidel (Google) wrote: > Can you add a bit more description ...
7 years, 8 months ago (2013-04-05 22:18:10 UTC) #6
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/13454026/diff/2002/Source/WebCore/html/HTMLMediaElement.idl File Source/WebCore/html/HTMLMediaElement.idl (right): https://codereview.chromium.org/13454026/diff/2002/Source/WebCore/html/HTMLMediaElement.idl#newcode68 Source/WebCore/html/HTMLMediaElement.idl:68: readonly attribute double startTime; On 2013/04/05 21:44:14, Eric Seidel ...
7 years, 8 months ago (2013-04-05 22:29:11 UTC) #7
acolwell GONE FROM CHROMIUM
On 2013/04/05 21:44:38, Eric Seidel (Google) wrote: > You're going to have trouble landing this ...
7 years, 8 months ago (2013-04-05 22:29:39 UTC) #8
eseidel
Since this is web observable, I would like to see a LayoutTest, otherwise I'm ready ...
7 years, 8 months ago (2013-04-05 22:30:51 UTC) #9
acolwell GONE FROM CHROMIUM
On 2013/04/05 22:30:51, Eric Seidel (Google) wrote: > Since this is web observable, I would ...
7 years, 8 months ago (2013-04-06 00:26:53 UTC) #10
acolwell GONE FROM CHROMIUM
This patch now relies on https://codereview.chromium.org/13431009/ landing first.
7 years, 8 months ago (2013-04-06 02:13:56 UTC) #11
eseidel
https://codereview.chromium.org/13454026/diff/13001/Source/WebKit/chromium/src/WebMediaPlayerClientImpl.cpp File Source/WebKit/chromium/src/WebMediaPlayerClientImpl.cpp (right): https://codereview.chromium.org/13454026/diff/13001/Source/WebKit/chromium/src/WebMediaPlayerClientImpl.cpp#newcode530 Source/WebKit/chromium/src/WebMediaPlayerClientImpl.cpp:530: m_webMediaPlayer->setVolumeFloat(volume); Float? https://codereview.chromium.org/13454026/diff/13001/Source/WebKit/chromium/src/WebMediaPlayerClientImpl.cpp#newcode550 Source/WebKit/chromium/src/WebMediaPlayerClientImpl.cpp:550: return m_webMediaPlayer->maxTimeSeekableFloat(); Float? https://codereview.chromium.org/13454026/diff/13001/Source/WebKit/chromium/src/WebMediaPlayerClientImpl.cpp#newcode668 Source/WebKit/chromium/src/WebMediaPlayerClientImpl.cpp:668: ...
7 years, 8 months ago (2013-04-06 04:04:46 UTC) #12
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/13454026/diff/13001/Source/WebKit/chromium/src/WebMediaPlayerClientImpl.cpp File Source/WebKit/chromium/src/WebMediaPlayerClientImpl.cpp (right): https://codereview.chromium.org/13454026/diff/13001/Source/WebKit/chromium/src/WebMediaPlayerClientImpl.cpp#newcode530 Source/WebKit/chromium/src/WebMediaPlayerClientImpl.cpp:530: m_webMediaPlayer->setVolumeFloat(volume); On 2013/04/06 04:04:46, Eric Seidel (Google) wrote: > ...
7 years, 8 months ago (2013-04-06 04:17:06 UTC) #13
acolwell GONE FROM CHROMIUM
I'm sorry. I should have outlined this from the start. Here is the plan: 1. ...
7 years, 8 months ago (2013-04-06 04:27:55 UTC) #14
eseidel
lgtm
7 years, 8 months ago (2013-04-06 04:51:53 UTC) #15
eseidel
lgtm lgtm
7 years, 8 months ago (2013-04-06 04:51:53 UTC) #16
acolwell GONE FROM CHROMIUM
jamesr: Can I get an OWNERS LGTM for the following files: Source/WebKit/chromium/public/WebMediaPlayer.h Source/WebKit/chromium/public/WebMediaPlayerClient.h This are ...
7 years, 8 months ago (2013-04-09 20:56:33 UTC) #17
jamesr
/public/ lgtm
7 years, 8 months ago (2013-04-09 21:01:57 UTC) #18
acolwell GONE FROM CHROMIUM
7 years, 8 months ago (2013-04-09 21:08:40 UTC) #19
Message was sent while issue was closed.
Committed patchset #6 manually as r147968 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698