DescriptionEnable Media query evaluation in the preload scanner
This CL enables Media Query evaluation inside the preload scanner, without joining the main thread.
That is to enable resource fetching based on the media attribute, without hampering future resource fetching improvements.
Major changes:
* Added a MediaValues class that "freezes" the various media values needed for MQE when it is initialized.
* Initialize MediaValues and provide them to the PreloadScanner during its initialization.
* Run MQE inside the PreloadScanner, according to provided MediaValues.
* Removed mediaAttribute passing to the HTMLResourcePreloader, that runs on the main thread.
BUG=
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170314
Patch Set 1 #
Total comments: 2
Patch Set 2 : Review fixes #Patch Set 3 : Removed comment #Patch Set 4 : Fix android build issue #
Total comments: 2
Patch Set 5 : Removed GC transition types and commented code #
Total comments: 26
Patch Set 6 : Fixed review issues #Patch Set 7 : Rebase #Patch Set 8 : Fix debug build #Patch Set 9 : Debug and clang fixes #
Total comments: 12
Patch Set 10 : Fixed resolution MQs and review nits. #Patch Set 11 : Fix debug compile error #Patch Set 12 : Fix Debug crash. Values based MediaValues::create #
Messages
Total messages: 31 (0 generated)
|