DescriptionMove StyleSheetContents cache to StyleEngine.
Blink should not share StyleSheetContents cache between different WebFrames.
If shares, WebFrameImpl::reload uses StyleSheetContents created by another WebFrameImpl.
So when changing allowImage setting (controlled by chrome) and reloading some page, the
reloaded frame might use StyleSheetContents cache.
Since StyleImages are cached in CSSValues and are not managed by FrameLoader, allowImage
change doesn't work.
BUG=346264
TEST=fast/css/background-image-reload.html, fast/css/two-different-iframe-not-share-style-image.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169414
Patch Set 1 #Patch Set 2 : clear per localFrame #Patch Set 3 : per-LocalFrame StyleSheetContents cache #Patch Set 4 : Move StyleSheetContents cache to StyleEngine #
Total comments: 2
Patch Set 5 : #Patch Set 6 : Rebased #
Total comments: 7
Patch Set 7 : Added activeClients to StyleSheetContents #Patch Set 8 : Trace m_activeClients #
Total comments: 13
Patch Set 9 : Changed m_clients to have only active CSSStyleSheets #
Total comments: 2
Patch Set 10 : Fixed patch conflict and added layout test #Patch Set 11 : Patch for landing #Messages
Total messages: 32 (0 generated)
|