MediaStream API: Rename MockConstraints::verify to verifyConstraints
https://bugs.webkit.org/show_bug.cgi?id=97779

Reviewed by Csaba Osztrogonác.

The Mac OS X sdk has a macro called verify :/

* DumpRenderTree/chromium/MockConstraints.cpp:
(MockConstraints::verifyConstraints):
* DumpRenderTree/chromium/MockConstraints.h:
(MockConstraints):
* DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
(MockWebRTCPeerConnectionHandler::initialize):
* DumpRenderTree/chromium/WebUserMediaClientMock.cpp:
(WebUserMediaClientMock::requestUserMedia):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129761 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: NMI: move visited and countObjectSize methods implementation into separate class.
https://bugs.webkit.org/show_bug.cgi?id=97461

Reviewed by Yury Semikhatsky.

These methods and the data collected by them need to be used in the instrumentation code for other components.
As example when we are visiting bitmaps we need to visit platform specific objects.
These objects will be instrumented with help of component's own instrumentation code
but we have to keep the single set of visited objects and the map of counters.

Source/WebCore:

* inspector/InspectorMemoryAgent.cpp:
(WebCore):
(WebCore::collectDomTreeInfo):
(WebCore::InspectorMemoryAgent::getProcessMemoryDistribution):
* inspector/MemoryInstrumentationImpl.cpp:
(WebCore::MemoryInstrumentationClientImpl::countObjectSize):
(WebCore):
(WebCore::MemoryInstrumentationClientImpl::visited):
(WebCore::MemoryInstrumentationImpl::selfSize):
* inspector/MemoryInstrumentationImpl.h:
(WebCore::MemoryInstrumentationClientImpl::MemoryInstrumentationClientImpl):
(WebCore::MemoryInstrumentationClientImpl::selfSize):
(MemoryInstrumentationClientImpl):
(WebCore::MemoryInstrumentationClientImpl::visitedObjects):
(WebCore):
(MemoryInstrumentationImpl):
(WebCore::MemoryInstrumentationImpl::MemoryInstrumentationImpl):
(WebCore::MemoryInstrumentationImpl::checkInstrumentedObjects):

Source/WebKit/chromium:

* tests/MemoryInstrumentationTest.cpp:
(InstrumentationTestHelper):
(WebCore::InstrumentationTestHelper::InstrumentationTestHelper):
(WebCore::InstrumentationTestHelper::addRootObject):
(WebCore::InstrumentationTestHelper::reportedSizeForAllTypes):
(WebCore::InstrumentationTestHelper::visitedObjects):
(WebCore::InstrumentationTestHelper::totalSize):
(WebCore):
(WebCore::TEST):

Source/WTF:

* wtf/MemoryInstrumentation.h:
(MemoryInstrumentationClient):
(WTF::MemoryInstrumentationClient::~MemoryInstrumentationClient):
(WTF):
(WTF::MemoryInstrumentation::MemoryInstrumentation):
(MemoryInstrumentation):
(WTF::MemoryInstrumentation::countObjectSize):
(WTF::MemoryInstrumentation::visited):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129762 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed Chromium expectations

Cleanup after a night of building. I think some of these failures are
due to premature rebaselining earlier.

* platform/chromium-linux-x86/fast/forms/placeholder-position-expected.png: Removed.
* platform/chromium-linux-x86/platform/chromium/compositing/webgl-loses-compositor-context-expected.png: Added.
* platform/chromium-linux-x86/platform/chromium/fast/forms/date: Added.
* platform/chromium-linux-x86/platform/chromium/fast/forms/date/date-suggestion-picker-appearance-rtl-expected.png: Added.
* platform/chromium-linux/fast/forms/placeholder-position-expected.png:
* platform/chromium-linux/platform/chromium/compositing/3d-corners-expected.png:
* platform/chromium-linux/platform/chromium/compositing/backface-visibility-transformed-expected.png:
* platform/chromium-linux/platform/chromium/compositing/child-layer-3d-sorting-expected.png: Removed.
* platform/chromium-linux/platform/chromium/compositing/huge-layer-rotated-expected.png:
* platform/chromium-linux/platform/chromium/compositing/img-layer-grow-expected.png: Removed.
* platform/chromium-linux/platform/chromium/compositing/layout-width-change-expected.png:
* platform/chromium-linux/platform/chromium/compositing/lost-compositor-context-expected.png: Removed.
* platform/chromium-linux/platform/chromium/compositing/lost-compositor-context-permanently-expected.png: Removed.
* platform/chromium-linux/platform/chromium/compositing/lost-compositor-context-twice-expected.png: Removed.
* platform/chromium-linux/platform/chromium/compositing/lost-compositor-context-with-rendersurface-expected.png: Removed.
* platform/chromium-linux/platform/chromium/compositing/lost-compositor-context-with-video-expected.png: Removed.
* platform/chromium-linux/platform/chromium/compositing/perpendicular-layer-sorting-expected.png:
* platform/chromium-linux/platform/chromium/compositing/render-surface-alpha-blending-expected.png: Removed.
* platform/chromium-linux/platform/chromium/compositing/tiny-layer-rotated-expected.png:
* platform/chromium-linux/platform/chromium/compositing/video-frame-size-change-expected.png:
* platform/chromium-linux/platform/chromium/compositing/webgl-loses-compositor-context-expected.png:
* platform/chromium-linux/platform/chromium/fast/forms/date: Added.
* platform/chromium-linux/platform/chromium/fast/forms/date/date-suggestion-picker-appearance-expected.png: Added.
* platform/chromium-linux/platform/chromium/fast/forms/date/date-suggestion-picker-appearance-rtl-expected.png: Added.
* platform/chromium-linux/platform/chromium/fast/forms/date/date-suggestion-picker-appearance-with-scroll-bar-expected.png: Added.
* platform/chromium-linux/svg/zoom/page/zoom-svg-through-object-with-percentage-size-expected.txt: Added.
* platform/chromium-mac-snowleopard/platform/chromium/compositing/3d-corners-expected.png: Removed.
* platform/chromium-mac-snowleopard/platform/chromium/compositing/backface-visibility-transformed-expected.png: Removed.
* platform/chromium-mac-snowleopard/platform/chromium/compositing/child-layer-3d-sorting-expected.png: Removed.
* platform/chromium-mac-snowleopard/platform/chromium/compositing/huge-layer-rotated-expected.png: Removed.
* platform/chromium-mac-snowleopard/platform/chromium/compositing/img-layer-grow-expected.png: Removed.
* platform/chromium-mac-snowleopard/platform/chromium/compositing/layout-width-change-expected.png:
* platform/chromium-mac-snowleopard/platform/chromium/compositing/lost-compositor-context-expected.png:
* platform/chromium-mac-snowleopard/platform/chromium/compositing/lost-compositor-context-permanently-expected.png:
* platform/chromium-mac-snowleopard/platform/chromium/compositing/lost-compositor-context-twice-expected.png:
* platform/chromium-mac-snowleopard/platform/chromium/compositing/lost-compositor-context-with-rendersurface-expected.png:
* platform/chromium-mac-snowleopard/platform/chromium/compositing/lost-compositor-context-with-video-expected.png: Removed.
* platform/chromium-mac-snowleopard/platform/chromium/compositing/perpendicular-layer-sorting-expected.png: Removed.
* platform/chromium-mac-snowleopard/platform/chromium/compositing/render-surface-alpha-blending-expected.png:
* platform/chromium-mac-snowleopard/platform/chromium/compositing/tiny-layer-rotated-expected.png: Removed.
* platform/chromium-mac-snowleopard/platform/chromium/compositing/video-frame-size-change-expected.png:
* platform/chromium-mac-snowleopard/platform/chromium/compositing/webgl-loses-compositor-context-expected.png:
* platform/chromium-mac-snowleopard/platform/chromium/fast/forms/date: Added.
* platform/chromium-mac-snowleopard/platform/chromium/fast/forms/date/date-suggestion-picker-appearance-expected.png: Added.
* platform/chromium-mac-snowleopard/platform/chromium/fast/forms/date/date-suggestion-picker-appearance-rtl-expected.png: Added.
* platform/chromium-mac-snowleopard/platform/chromium/fast/forms/date/date-suggestion-picker-appearance-with-scroll-bar-expected.png: Added.
* platform/chromium-mac/platform/chromium/compositing/backface-visibility-transformed-expected.png: Added.
* platform/chromium-mac/platform/chromium/compositing/child-layer-3d-sorting-expected.png: Added.
* platform/chromium-mac/platform/chromium/compositing/perpendicular-layer-sorting-expected.png: Added.
* platform/chromium-mac/platform/chromium/fast/forms/date/date-suggestion-picker-appearance-expected.png:
* platform/chromium-mac/platform/chromium/fast/forms/date/date-suggestion-picker-appearance-with-scroll-bar-expected.png:
* platform/chromium-win-xp/fast/text/line-breaks-expected.txt:
* platform/chromium-win-xp/platform/chromium/compositing/3d-corners-expected.png: Removed.
* platform/chromium-win-xp/platform/chromium/compositing/backface-visibility-transformed-expected.png: Removed.
* platform/chromium-win-xp/platform/chromium/compositing/child-layer-3d-sorting-expected.png: Removed.
* platform/chromium-win-xp/platform/chromium/compositing/huge-layer-rotated-expected.png: Removed.
* platform/chromium-win-xp/platform/chromium/compositing/img-layer-grow-expected.png: Removed.
* platform/chromium-win-xp/platform/chromium/compositing/layout-width-change-expected.png: Removed.
* platform/chromium-win-xp/platform/chromium/compositing/lost-compositor-context-expected.png: Removed.
* platform/chromium-win-xp/platform/chromium/compositing/lost-compositor-context-permanently-expected.png: Removed.
* platform/chromium-win-xp/platform/chromium/compositing/lost-compositor-context-twice-expected.png: Removed.
* platform/chromium-win-xp/platform/chromium/compositing/lost-compositor-context-with-rendersurface-expected.png: Removed.
* platform/chromium-win-xp/platform/chromium/compositing/lost-compositor-context-with-video-expected.png: Removed.
* platform/chromium-win-xp/platform/chromium/compositing/perpendicular-layer-sorting-expected.png: Removed.
* platform/chromium-win-xp/platform/chromium/compositing/render-surface-alpha-blending-expected.png: Removed.
* platform/chromium-win-xp/platform/chromium/compositing/tiny-layer-rotated-expected.png: Removed.
* platform/chromium-win-xp/platform/chromium/compositing/video-frame-size-change-expected.png: Removed.
* platform/chromium-win-xp/platform/chromium/compositing/webgl-loses-compositor-context-expected.png:
* platform/chromium-win-xp/platform/chromium/fast/forms/date: Added.
* platform/chromium-win-xp/platform/chromium/fast/forms/date/date-suggestion-picker-appearance-rtl-expected.png: Added.
* platform/chromium-win-xp/svg/wicd/test-rightsizing-b-expected.png:
* platform/chromium-win-xp/svg/zoom/page/zoom-mask-with-percentages-expected.png:
* platform/chromium-win/platform/chromium/fast/forms/date: Added.
* platform/chromium-win/platform/chromium/fast/forms/date/date-suggestion-picker-appearance-expected.png: Added.
* platform/chromium-win/platform/chromium/fast/forms/date/date-suggestion-picker-appearance-rtl-expected.png: Added.
* platform/chromium-win/platform/chromium/fast/forms/date/date-suggestion-picker-appearance-with-scroll-bar-expected.png: Added.
* platform/chromium/TestExpectations:
* platform/chromium/fast/js/eval-cross-window-expected.txt: Replaced.
* platform/chromium/http/tests/security/cross-frame-access-call-expected.txt: Replaced.
* platform/chromium/platform/chromium/compositing/backface-visibility-transformed-expected.png: Removed.
* platform/chromium/platform/chromium/compositing/child-layer-3d-sorting-expected.png: Removed.
* platform/chromium/platform/chromium/compositing/perpendicular-layer-sorting-expected.png: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129763 268f45cc-cd09-0410-ab3c-d52691b4dbfc