Chromium Code Reviews
DescriptionDon't trigger a link resource fetch on media change.
Changing the media attribute called process() which would clear the
current stylesheet and re-fetch it. If a stylesheet is loaded, set the
media queries on that stylesheet and trigger style changes it may cause.
If loading is in progress, the media queries will be set on the
stylesheet when it finishes loading.
Note that setting the media attribute will not change the blocking state
if changed while the sheet is loading. However, we do not change the
blocking state if the mq evaluation change during loading.
If the blocking state needs to happen we need to do pending stylesheet
changes like we do for setDisabledState.
R=horo@chromium.org,tkent@chromium.org
BUG=591654
Patch Set 1 #Patch Set 2 : Fixed test and made mediaChanged() virtual #
Total comments: 3
Messages
Total messages: 21 (8 generated)
|