Shadow trees may have their own author style. Factor the related code out so we can use it outside document context.
Created attachment 261794 [details] patch
The patch is large because copy-moves, not because it changes that much.
Created attachment 261800 [details] patch
Attachment 261800 [details] did not pass style-queue: ERROR: Source/WebCore/dom/DOMAllInOne.cpp:30: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 1 in 34 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 261800 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=261800&action=review r=me > Source/WebCore/ChangeLog:14 > + AuthorStyleSheets - author stylesheets and optimization code > + ExtensionStyleSheets - user stylesheets, injected author stylesheets, content extension stylesheets This is a nice split. > Source/WebCore/dom/AuthorStyleSheets.cpp:65 > + , m_pendingStylesheets(0) > + , m_injectedStyleSheetCacheValid(false) > + , m_hadActiveLoadingStylesheet(false) > + , m_pendingUpdateType(NoUpdate) > + , m_usesFirstLineRules(false) > + , m_usesFirstLetterRules(false) > + , m_usesRemUnits(false) > + , m_usesStyleBasedEditability(false) You know where we could do all this instead? :)
https://webkit.org/b/149446