Simplify jettisoning of style resolvers on memory pressure.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Mar 2014 17:29:09 +0000 (17:29 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Mar 2014 17:29:09 +0000 (17:29 +0000)
commit3a9423ffc89f290575c12f40980cbdba73fbccd9
tree5e16c97baaa5833baf508215b90b95cd7befa019
parent7dec93dc1a2e535322fe5feb7c4704b08e4d2790
Simplify jettisoning of style resolvers on memory pressure.
<https://webkit.org/b/129644>

Now that we have Document::allDocuments(), we can jettison all the
style resolvers by walking the set of live documents and calling
clearStyleResolver() on each one, instead of having a function on
Page that walks the frame tree of every living page, etc.

Reviewed by Antti Koivisto.

* page/Page.cpp:
* page/Page.h:
* platform/mac/MemoryPressureHandlerMac.mm:
(WebCore::MemoryPressureHandler::releaseMemory):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@165629 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/page/Page.cpp
Source/WebCore/page/Page.h
Source/WebCore/platform/mac/MemoryPressureHandlerMac.mm