Skip to content

Instantly share code, notes, and snippets.

@kewlbear
Created May 11, 2017 00:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kewlbear/699c3bb15b25eef58df85f8c4f4c1b76 to your computer and use it in GitHub Desktop.
Save kewlbear/699c3bb15b25eef58df85f8c4f4c1b76 to your computer and use it in GitHub Desktop.
Webkit document.querySelector('meta[name=viewport]').content = 'width=320' call flow
...
JSC::callCustomSetter(...)
WebCore::setJSHTMLMetaElementContentFunction(...)
...
WebCore::HTMLMetaElement::process()
WebCore::Document::processViewport(...)
...
WebCore::Chrome::dispatchViewportPropertiesDidChange(...)
WebKit::WebChromeClient::dispatchViewportPropertiesDidChange(...)
WebKit::WebPage::viewportPropertiesDidChange(...)
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment