Memory instrumentation: do not report memory occupied by objects referenced using client interfaces
https://bugs.webkit.org/show_bug.cgi?id=100824

Reviewed by Alexander Pavlov.

In many classes we have pointer to a client object. These references should be
reported as weak pointers and the client's memory usage should be reported when
the client is reached from its instrumented owner where we know exact type of
the client. Otherwise we would need to add reportMemoryUsage to all client
interfaces which places additional burden on the client implementers and blurs
the instrumentation boundaries.

* inspector/InspectorController.cpp:
(WebCore::InspectorController::reportMemoryUsage):
* inspector/InspectorDebuggerAgent.cpp:
(WebCore::InspectorDebuggerAgent::reportMemoryUsage):
* inspector/InspectorMemoryAgent.cpp:
(WebCore::InspectorMemoryAgent::reportMemoryUsage):
* inspector/InspectorOverlay.cpp:
(WebCore::InspectorOverlay::reportMemoryUsage):
* inspector/InspectorResourceAgent.cpp:
(WebCore::InspectorResourceAgent::reportMemoryUsage):
* page/Page.cpp:
(WebCore::Page::reportMemoryUsage):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132998 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, attempt to fix the release build by not exporting symbols that aren't defined there.

* WebCore.exp.in:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132999 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][DRT] EventSender requires contextClick implementation
https://bugs.webkit.org/show_bug.cgi?id=86091

Patch by Michał Pakuła vel Rutka <m.pakula@samsung.com> on 2012-10-31
Reviewed by Gyuyoung Kim.

Source/WebKit:

Add new unit test file, needed due to ewk API changes.

* PlatformEfl.cmake:

Source/WebKit/efl:

Add a pointer to parent menu in Ewk_Context_Menu_Item and a getter
function to allow selecting a context menu item without having
parent menu pointer in DumpRenderTree EventSender.
Three unit tests added due ewk API changes.

* ewk/ewk_contextmenu.cpp:
(_Ewk_Context_Menu_Item):
(ewk_context_menu_item_new):
(ewk_context_menu_item_parent_get):
(ewk_context_menu_item_append):
* ewk/ewk_contextmenu.h:
* ewk/ewk_view.cpp:
(ewk_view_context_menu_get):
* ewk/ewk_view.h:
* tests/test_ewk_contextmenu.cpp: Added.
(TEST_F):
* tests/test_ewk_view.cpp:
(TEST_F):

Tools:

Add contextClick for DumpRenderTreeEventSender basing on WebKit GTK
implementation.

* DumpRenderTree/efl/EventSender.cpp:
(getMenuItemTitleCallback):
(setMenuItemTitleCallback):
(menuItemClickCallback):
(contextClickCallback):

LayoutTests:

Move contextClick dependent tests to WebKit2 TestExpectations and
add new expected results.

* platform/efl-wk2/TestExpectations:
* platform/efl/TestExpectations:
* platform/efl/editing/selection/5354455-2-expected.txt: Added.
* platform/efl/fast/events/context-no-deselect-expected.txt: Added.
* platform/efl/fast/events/context-onmousedown-event-expected.png: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@133000 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2] Change the scope of locking in CoreIPC::Connection class.
https://bugs.webkit.org/show_bug.cgi?id=98998

Patch by Byungwoo Lee <bw80.lee@samsung.com> on 2012-10-31
Reviewed by Laszlo Gombos.

Release the m_incomingMessagesLock and m_outgoingMessagesLock mutexes
immediately after the protected resource is no longer modified to
prevent a possible source of a deadlock.

The change allows the EFL port to prevent an actual dead-lock
situation with some upcoming changes.

* Platform/CoreIPC/Connection.cpp:
(CoreIPC::Connection::sendMessage):
(CoreIPC::Connection::enqueueIncomingMessage):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@133001 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-10-31  Pavel Podivilov  <podivilov@google.com>

        [chromium] Unreviewed, mark two touchadjustment tests as failing on mac.

        * platform/chromium/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@133002 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Add new baselines for fast/forms/basic-inputs.html and fast/forms/indeterminate.html on linux.

* platform/chromium-linux/fast/forms/indeterminate-expected.png:
* platform/efl-wk1/fast/forms/indeterminate-expected.png: Renamed from LayoutTests/platform/efl/fast/forms/indeterminate-expected.png.

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