Skip to content

Implement file reading task source - #12448

Merged
bors-servo merged 3 commits into
servo:masterfrom
jdm:file-reading-task-source-2
Jul 14, 2016
Merged

bors-servo merged 3 commits into
servo:masterfrom
jdm:file-reading-task-source-2

Conversation

@jdm

@jdm jdm commented Jul 14, 2016 •

Copy link
Copy Markdown
Member

Implement the task source API for the File Reader task source, enabling using task sources from non-main threads.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix (partially) Implement HTML5 task sources #7959 (github issue number if applicable).
  • These changes do not require tests because they're refactoring existing code

This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @KiChjang: components/script/task_source/file_reading.rs, components/script/dom/bindings/global.rs, components/script/dom/storage.rs, components/script/dom/workerglobalscope.rs, components/script/dom/htmldetailselement.rs, components/script/dom/htmlformelement.rs, components/script/task_source/user_interaction.rs, components/script/dom/filereader.rs, components/script/dom/htmlmediaelement.rs, components/script/dom/htmlimageelement.rs, components/script/script_thread.rs, components/script/dom/window.rs, components/script/task_source/dom_manipulation.rs, components/script/task_source/mod.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 14, 2016
@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!

@jdm
jdm force-pushed the file-reading-task-source-2 branch from d226cbe to aa5f34f Compare July 14, 2016 17:28
@jdm jdm assigned jdm and KiChjang and unassigned metajack and jdm Jul 14, 2016
@jdm

jdm commented Jul 14, 2016

Copy link
Copy Markdown
Member Author

@KiChjang I rebased your change from #11645 and added supporting code that allows using the file reader task source in workers. Want to review the changes I made?

}

pub fn file_reading_task_source(&self) -> FileReadingTaskSource {
FileReadingTaskSource(self.script_chan())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aha! I was definitely missing this part that would allow task sources to work in workers.

@KiChjang

Copy link
Copy Markdown
Contributor

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit aa5f34f has been approved by KiChjang

@highfive highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Jul 14, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit aa5f34f with merge 48a912f...

bors-servo pushed a commit that referenced this pull request Jul 14, 2016
Implement file reading task source

Implement the task source API for the File Reader task source, enabling using task sources from non-main threads.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix (partially) #7959 (github issue number if applicable).
- [X] These changes do not require tests because they're refactoring existing code

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12448)
<!-- Reviewable:end -->
@highfive highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jul 14, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows

@bors-servo
bors-servo merged commit aa5f34f into servo:master Jul 14, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jul 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants