[webkit-reviews] review denied: [Bug 75903] matchMedia() MediaQueryList not updating : [Attachment 128599] patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 27 11:22:22 PST 2012


Antti Koivisto <koivisto at iki.fi> has denied Luiz Agostini <luiz at webkit.org>'s
request for review:
Bug 75903: matchMedia() MediaQueryList not updating
https://bugs.webkit.org/show_bug.cgi?id=75903

Attachment 128599: patch
https://bugs.webkit.org/attachment.cgi?id=128599&action=review

------- Additional Comments from Antti Koivisto <koivisto at iki.fi>
View in context: https://bugs.webkit.org/attachment.cgi?id=128599&action=review


> Source/WebCore/dom/Document.cpp:3031
> +void Document::viewportDependentStyleSelectorChange(StyleSelectorUpdateFlag
updateFlag)
> +{

Why does this have an argument? You only ever invoke it with
RecalcStyleImmediately.

Why didn't you follow the naming suggestion?

> Source/WebCore/dom/Document.cpp:3039
> +    if (m_mediaQueryMatcher)
> +	   m_mediaQueryMatcher->styleSelectorChanged();

Why are you calling styleSelectorChanged() even when style selector did not
change?

> Source/WebCore/dom/Document.cpp:3050
>  void Document::styleSelectorChanged(StyleSelectorUpdateFlag updateFlag)
>  {
> +    updateStyleSelector(updateFlag);
> +    if (m_mediaQueryMatcher)
> +	   m_mediaQueryMatcher->styleSelectorChanged();
> +}
> +
> +void Document::updateStyleSelector(StyleSelectorUpdateFlag updateFlag)
> +{

Why are you adding a new function? It adds no obvious value.


More information about the webkit-reviews mailing list