Граф коммитов

51 Коммитов

Автор SHA1 Сообщение Дата
Bill McCloskey f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book 8a1350b5a6 Backed out changeset 4f6302a98ae4 (bug 1372405)
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Bill McCloskey 6b3e84ed5f Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book ea1b86680c Backed out changeset 9846de3bd954 (bug 1372405)
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey 4592152411 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
bechen e915d55250 Bug 1368489 - Fixing TimeMarchesOn step 13, sort the tasks by "text track cue order". r=rillian.
1. Sort by TextTrack. 2. Sort by time. 3. Sort by the order of added to TextTrack.

MozReview-Commit-ID: 4nwx6U5dMpy

--HG--
extra : rebase_source : 2998c48982e40604b068ffca525691c5b69ae2cf
2017-06-13 09:52:27 +08:00
bechen 5eb2235537 Bug 1325001 - TextTrackList::GetShowingCues should return cues whose kind is Subtitles or Captions. r=rillian
We should only render the Subtitles/Captions cue on the screen. In addition, rename the activeCues to showingCues.
Because the meaning of "active" and "showing" are different. Showing means we can see the cue on the screen, active means the current playback time touches the cue.

MozReview-Commit-ID: 1BfHhxFXBDP

--HG--
extra : rebase_source : 2c4d6b0b052758f1bb01a7794365bf75b556304c
2017-05-22 11:30:22 +08:00
bechen ef9d27cec4 Bug 1364185 - Call DispatchUpdateCueDisplay() in TextTrackManager::NotifyCueUpdated. r=alwu
If the video is paused, then set the "TextTrack.mode=hidden/showing", in this case, TimeMarchesOn will return at step 7,
not update the screen. So call DispatchUpdateCueDisplay explicitly to update the screen.

MozReview-Commit-ID: IuazaeSXX31

--HG--
extra : rebase_source : fbc72c1fa9327e9719e54b63b70cbcd3be3e4069
2017-05-17 14:57:51 +08:00
bechen 9fa41c62a2 Bug 1343797 - Label runnables in TextTrackManager.cpp. r=jwwang
MozReview-Commit-ID: 2rP55aUyNi

--HG--
extra : rebase_source : ad1617a36efdc4b179ec7fae12895d86ef01912c
2017-03-27 16:51:17 +08:00
bechen 5bd89ec1d3 Bug 1334112 - part1: Add IsLoaded functions for TextTrack, TextTrackList, TextTrackManager. r=rillian
MozReview-Commit-ID: GBEKZvLUiPn

--HG--
extra : rebase_source : 9c3e5ba8a7ac6b9e3bb99fe9ae10e554422ff268
2017-02-20 15:27:06 +08:00
Tom Tromey 5f8f360823 Bug 1060419 - make log_print use Printf.h, r=froydnj
MozReview-Commit-ID: BIZ1GQEZ1vs

--HG--
extra : rebase_source : 2f1f0aa12493c44f352d9a7e8683e7bb72d2d75b
2016-12-15 20:16:31 -07:00
Ralph Giles cb066b204d Bug 1333931 - Handle nullptr TextTrack objects in sorting. r=kinetik
Check for nullptr arguments passed to CompareTextTracks. Based
on Ben Kelly's analysis this can happen if the cycle collector
has cleared a TextTrack pointer while comparision is still
happening, perhaps in a queued event task.

This change makes nullptr sort to the end, and adds a
MOZ_DIAGNOSTIC_ASSERT for trying to get the position
of a nullptr track should someone add another call at
a later date.

--HG--
extra : rebase_source : 596dbe2fb718535946a65e02619ae1a7c4c6ce10
2017-01-31 17:24:17 -08:00
bechen c50e308aa3 Bug 1329117 - Run HonorUserPreferencesForTrackSelection at stable state. r=jwwang
MozReview-Commit-ID: FwZyHHFa8KD

--HG--
extra : rebase_source : cebc0fe4ac3c33817a310f173c0aafbf7e32e8ac
2017-01-23 11:12:22 +08:00
bechen 5c9dc72fcc Bug 1310162 - mTrack in SimpleTextTrackEvent might be null. r=jwwang
MozReview-Commit-ID: ESqYqBem7kQ

--HG--
extra : rebase_source : b8ad44e919992a7eaa3e8e1db9b0c5258c66d617
2016-12-28 15:51:37 +08:00
bechen 9a94b5158f Bug 1304948 - Part 2: Don't run TimeMarchesOn when shutdown. r=rillian
MozReview-Commit-ID: AE6FE74ESHN

--HG--
extra : rebase_source : c6bd95af29d063c237e07c3fbdefb0daf76874f1
2016-09-29 17:47:33 +08:00
Paul Bignier 563356ec62 Bug 1305674 - initialize mUpdateCueDisplayDispatched. r=mrbkap
* There is no visible initializer function to that class so the variable could be accessed to, uninitialized
2016-09-27 12:19:17 +02:00
bechen ec4090fd59 Bug 1275492 - Add logs for TextTrackManager. r=jwwang
MozReview-Commit-ID: LyNTDhjj0fR

--HG--
extra : rebase_source : 1332a79a3a83670aeac6f57ed9431e0ecebb5d73
2016-08-25 10:58:49 +08:00
bechen 235bef146b Bug 1294142 - TextTrackManager::mTextTracks is null after CC. r=jwwang
MozReview-Commit-ID: 7EU54n1erpZ

--HG--
extra : rebase_source : de8b3461afdfe02402433eeb397103bf05a4f5c4
2016-08-11 18:09:06 +08:00
bechen c610f50aae Bug 1285897 - Async dispatch cuechange event on TextTrack object. r=rillian
MozReview-Commit-ID: DKWCAEaT58J

--HG--
extra : transplant_source : %F4%CAT%AD%05v%A4%94%B8%13%2C%8E%9Ex%DDg%89Q%CFR
2016-07-12 17:41:41 +08:00
Carsten "Tomcat" Book 202195f87d Backed out changeset 5c7dda18ec02 (bug 1285897)
--HG--
extra : rebase_source : 6a116dd44fa98910566178693e2d318e66f7011e
2016-07-21 08:03:10 +02:00
bechen 291a5d1475 Bug 1285897 - Async dispatch cuechange event on TextTrack object. r=rillian
MozReview-Commit-ID: DKWCAEaT58J

--HG--
extra : transplant_source : %F4%CAT%AD%05v%A4%94%B8%13%2C%8E%9Ex%DDg%89Q%CFR
2016-07-12 17:41:41 +08:00
bechen a54b4b6946 Bug 1281999 - Update the display when we remove an active cue by changing the texttrackmode to disabled. r=rillian
MozReview-Commit-ID: GeF5Icd9jLu

--HG--
extra : transplant_source : %D40%3Ed%07%F1%17%5B%9FG%EC%C5%80%C3f%EDJ%22%7Bd
2016-07-18 15:39:14 +08:00
Alastor Wu c90f6cf6dc Bug 1280644 - part2 : modify naming and add scope indentifier. r=rillian
MozReview-Commit-ID: 9ysNb5SiQOP

--HG--
extra : rebase_source : 1819e7a3310d5cf486112ed71270edf404542601
2016-07-11 10:51:13 +08:00
Alastor Wu 255936c33f Bug 1280644 - part1 : add Telemetry for webvtt. r=bsmedberg,rillian
MozReview-Commit-ID: 4a6JmfolqkW

--HG--
extra : rebase_source : 24e81ac1da3f3926c241e7311ef74511bd493bb8
2016-07-11 10:51:08 +08:00
bechen 30cae3d32d Bug 1279865 - Don't run TimeMarchesOn if the MediaElement is not played. r=rillian
1. If mHasUserInteraction MediaElement is false, don't run the TimeMarchesOn because the element is not played. 2. Update the activeCueList only in TimeMarchesOn(). 3. Run TimeMarchesOn() at the beginning of play. r=rillian

MozReview-Commit-ID: BhwsIfRm3B2

--HG--
extra : rebase_source : 9713d4f467f1d708f65a25e54435d0c6e8ff1816
2016-06-30 13:31:56 +08:00
Ray Lin e1b4b9465e Bug 985915 - Vertically move up closed caption to not overlap control bar. r=rillian
MozReview-Commit-ID: HzJ3ppbmQnk

--HG--
extra : rebase_source : dda5febc3c799c375e4dbe39cf52f96504740b55
2016-06-27 11:22:15 +08:00
bechen fe0f6b220c Bug 1278151 - Fix web-platform/meta/html/semantics/embedded-content/media-elements/interfaces/TextTrack/cues.html. r=rillian
MozReview-Commit-ID: 7VuUfyegq2d

--HG--
extra : rebase_source : d7d69c1511f65cba09337e7123ffba5c43f91127
2016-06-22 16:03:46 +08:00
bechen 385d3a7e3b Bug 1280814 - Prevent the media::Interval crash due to the unexpected playback position. r=rillian
MozReview-Commit-ID: AZ9Gb2Y0wDF

--HG--
extra : transplant_source : %8F%FD%8EW%F2%23%0Ck%A5%A4x%FAB%3D%C3%25%09%89%84%A5
2016-06-20 15:58:58 +08:00
bechen dd6f87a7f3 Bug 1276530 - part2: The id of cue might be empty, so don't use it for checking. r=rillian
MozReview-Commit-ID: CyjEkOmDNG0

--HG--
extra : transplant_source : 3%E1%9FSk%8F%E3_%0Fy%D0%82%E2D9%91%7Cc%60%88
2016-06-17 17:20:24 +08:00
bechen 5f7ef9b5d7 Bug 882717 - Invoke TimeMarchesOn when the startTime/endTime/pauseOnExit be changed of TextTrackCue. r=rillian
MozReview-Commit-ID: 7Xol9x83lLx

--HG--
extra : transplant_source : %DD%5C%E9%5C%98Y4%7B%AE%24%E1%7C%9F%F8%60C%85%0D%D5W
2016-06-08 16:53:30 +08:00
bechen 6193b9598d Bug 1274884 - Add/Remove cue into MediaElement when TextTrack::mMode changed. r=rillian
MozReview-Commit-ID: 9PGEV5g8iv3

--HG--
extra : transplant_source : b%06Jsa%B8%08%A3%A2aS%0F%5C%C5T%9B%C9y%B5%C8
2016-06-02 16:08:32 +08:00
bechen d120c38a97 Bug 1275808 - Move the UpdateCueDisplay() into TimeMarchesOn() as step 18. r=rillian
MozReview-Commit-ID: GrcZCjstBy9

--HG--
extra : rebase_source : 7848e6477595dcf0d83753a1c29489ea3f5cb689
2016-06-01 17:37:26 +08:00
bechen 8d39d5edd7 Bug 882718 - Do not dispatch task to main thread when shutdown. r=rillian
MozReview-Commit-ID: 5Y79Fbhyoc3

--HG--
extra : rebase_source : bb4d1c2bba2f8ef788c18fc03f3eea6ff7de6714
2016-06-01 15:13:45 +08:00
bechen e355a8b526 Bug 882718 - 1. Fix testcase crash/failed . 2. The cuechange event should be fired in TimeMarchesOn. r=rillian
MozReview-Commit-ID: EYi9iZ1mfjg

--HG--
extra : rebase_source : 2f652a3d4f072c87ba44de3650ff1358694444c1
2016-06-01 15:13:43 +08:00
bechen 30214bd891 Bug 882718 - triggerTimeMarchesOn. r=rillian
MozReview-Commit-ID: 2OOqr1Z6X9

--HG--
extra : rebase_source : 33b12ef88c838cab247d0267f5195edfee02560c
2016-06-01 13:35:58 +08:00
Andrew Quartey c70c946e3e Bug 882718 - Implement "TimeMarchesOn". r=rillian
MozReview-Commit-ID: 1RqUmgz056N
* * *
[mq]: hotfix

MozReview-Commit-ID: CPByIPsUag4

--HG--
extra : rebase_source : 4b1fea4f04553ea5b3a0c3c4ddfdb60b485b803e
2016-06-01 13:35:56 +08:00
Sebastian Hengst 33dc9fca70 Backed out changeset f6363fdbbf29 (bug 882718) 2016-05-31 18:54:41 +02:00
Sebastian Hengst 200b6282f2 Backed out changeset 7f61a6bd8a3d (bug 882718) 2016-05-31 18:54:41 +02:00
Sebastian Hengst de05b7902e Backed out changeset 883bfabfde46 (bug 882718) 2016-05-31 18:54:41 +02:00
Sebastian Hengst db844b8bcb Backed out changeset 830cccc16bd9 (bug 882718) 2016-05-31 18:54:41 +02:00
bechen 0ae4309ec5 Bug 882718 - Do not dispatch task to main thread when shutdown. r=rillian
MozReview-Commit-ID: 5Y79Fbhyoc3

--HG--
extra : transplant_source : %FEi%D2%BB%10%EFj%CE%EA%C9%E6%95%99%A9v%8C%7D%C9%5B%05
2016-05-30 12:03:15 +08:00
bechen db0d961dac Bug 882718 - 1. Fix testcase crash/failed . 2. The cuechange event should be fired in TimeMarchesOn. r=rillian
MozReview-Commit-ID: EYi9iZ1mfjg

--HG--
extra : transplant_source : %B3%A1%B5g%D1s%08%18%25%8A%09%C0%A1%D7%7C%E9%D7F%97%A1
2016-05-26 11:45:43 +08:00
bechen bb5b50f7ee Bug 882718 - triggerTimeMarchesOn. r=rillian
MozReview-Commit-ID: 2OOqr1Z6X9

--HG--
extra : transplant_source : %A8%E2KG%82%29M%8EVA%20%9BJ%D1u%9B%85%8C%1D%1E
2016-05-25 16:11:28 +08:00
Andrew Quartey cce4f6652c Bug 882718 - Implement "TimeMarchesOn". r=rillian
MozReview-Commit-ID: 1RqUmgz056N
* * *
[mq]: hotfix

MozReview-Commit-ID: CPByIPsUag4

--HG--
extra : transplant_source : %B6%EE%C8%C6%3F%A5%A5%3C%9E%92%D5%16%C6%9EX%CF%C9l%B5%D1
2016-05-25 16:11:27 +08:00
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Andrew McCreight ae5fe6a2ad Bug 1210591, part 1 - Use nsVariantCC in various places. r=smaug
Most of these will end up in DataTransfer:mItems, so this is needed
for it to do anything useful.
2015-10-09 10:24:23 -07:00
Andrew McCreight 0ff7248107 Bug 1210517 - Create nsVariant directly rather than via do_CreateInstance(). r=froydnj
The goal here is to leave creation stuff mostly for JS, so we can
convert it entirely over to a non-threadsafe cycle-collected version
without breaking any existing C++ users.

I didn't do this for a remaining use in nsGlobalWindow.h to avoid
including nsVariant.h all over the place.
2015-10-07 08:17:42 -07:00
Andrew McCreight 9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Olli Pettay 6420704d50 Bug 1108721, HTMLMediaElement.textTracks needs to be nullable in Gecko for now, r=peterv
--HG--
extra : rebase_source : 8c4b0b13e50a200907f1b4ba923fee4165318ca9
2015-01-12 13:07:38 +02:00