2014-01-23 Mark Hahnenberg Merge branch up to ToT r161658. 2014-01-23 Mark Hahnenberg Merge branch up to ToT r160556. * WebCoreSupport/DumpRenderTreeSupportEfl.cpp: * ewk/ewk_frame.cpp: 2013-12-03 Joseph Pecoraro Web Inspector: Push Remote Inspector debugging connection management into JavaScriptCore https://bugs.webkit.org/show_bug.cgi?id=124613 Reviewed by Timothy Hatcher. * WebCoreSupport/InspectorClientEfl.h: 2013-11-23 Xabier Rodriguez Calvar [GStreamer] Remove 0.10 codepath https://bugs.webkit.org/show_bug.cgi?id=124534 Reviewed by Philippe Normand. * WebCoreSupport/FullscreenVideoControllerEfl.cpp: Removed. 2013-11-21 Peter Molnar Remove ENABLE_WORKERS https://bugs.webkit.org/show_bug.cgi?id=105784 Reviewed by Darin Adler. * ewk/ewk_settings.cpp: (ewk_settings_memory_cache_clear): 2013-11-18 Ryuan Choi [EFL] Initialize efreet before getting directories https://bugs.webkit.org/show_bug.cgi?id=124560 Reviewed by Gyuyoung Kim. efreet is used to get several directories including home dierectory since r123731, but it does not call efreet_init/efreet_shutdown explicitly. * ewk/ewk_main.cpp: Call efreet_init()/efreet_shutdown() explicitly. (ewk_init): (ewk_shutdown): 2013-11-18 Ryuan Choi [EFL] Add EWebKitConfig.cmake and EWebKit2Config.cmake https://bugs.webkit.org/show_bug.cgi?id=124478 Reviewed by Gyuyoung Kim. EWebKit is built using CMake but applications use *.pc to use it. This patch provides EWebKitConfig.cmake and EWebKit2Config.cmake for applications which use EWebkit and is compiled by CMake. * EWebKitConfig.cmake.in: Added. * EWebKitConfigVersion.cmake.in: Added. 2013-11-15 Alberto Garcia [EFL] Leak in ewk_frame_certificate_status_get() https://bugs.webkit.org/show_bug.cgi?id=124401 Reviewed by Carlos Garcia Campos. The SoupMessage object is being leaked. In in this case that object is not even necessary since ResourceRequest already provides a way to get the soup flags directly. * ewk/ewk_frame.cpp: (ewk_frame_certificate_status_get): 2013-11-10 Tibor Meszaros Cleanup the EFL --minimal build from unused parameters https://bugs.webkit.org/show_bug.cgi?id=124048 Reviewed by Gyuyoung Kim. * WebCoreSupport/ChromeClientEfl.cpp: (WebCore::ChromeClientEfl::createWindow): * ewk/ewk_settings.cpp: (ewk_settings_web_database_path_set): * ewk/ewk_view.cpp: (ewk_view_visibility_state_set): (ewk_view_visibility_state_get): 2013-11-05 Xabier Rodriguez Calvar [GStreamer] Remove NATIVE_FULLSCREEN_VIDEO support https://bugs.webkit.org/show_bug.cgi?id=123437 Reviewed by Philippe Normand. Removed some dead code as no GStreamer port is using the native fullscreen video support. * WebCoreSupport/FullscreenVideoControllerEfl.h: Removed. 2013-11-01 Ryuan Choi [EFL][WK1] Rendering is broken when scrolled ewk_view_single repeatedly https://bugs.webkit.org/show_bug.cgi?id=123609 Reviewed by Gyuyoung Kim. ewk_view_single adds wrong updateRects except last one in scrolls_process, because previous updateRects are not considered accumulated scrollOffsets. * ewk/ewk_view_single.cpp: (_ewk_view_single_smart_scrolls_process): Merged scrollOffsets to calculate updateRects once. It will also reduce unnecessary memory copy operations. 2013-10-16 Jochen Eisinger A page should exit fullscreen mode if it opens a new popup https://bugs.webkit.org/show_bug.cgi?id=122865 Reviewed by Jer Noble. If a fullscreen page opens a popup, the popup would be hidden and therefore invisible to the user. To avoid this, exit fullscreen mode before opening a new window. * WebCoreSupport/ChromeClientEfl.cpp: (WebCore::ChromeClientEfl::createWindow): 2013-10-07 Sam Weinig Consolidate findString functions https://bugs.webkit.org/show_bug.cgi?id=122480 Reviewed by Darin Adler. * ewk/ewk_frame.cpp: (ewk_frame_text_search): * ewk/ewk_view.cpp: (ewk_view_text_search): 2013-10-07 Sam Weinig CTTE: Use references in and around DragController https://bugs.webkit.org/show_bug.cgi?id=122427 Reviewed by Andreas Kling. * WebCoreSupport/DragClientEfl.cpp: (WebCore::DragClientEfl::willPerformDragDestinationAction): (WebCore::DragClientEfl::willPerformDragSourceAction): (WebCore::DragClientEfl::actionMaskForDrag): (WebCore::DragClientEfl::startDrag): * WebCoreSupport/DragClientEfl.h: 2013-10-04 Anders Carlsson FramePolicyFunction should be an std::function https://bugs.webkit.org/show_bug.cgi?id=122362 Reviewed by Darin Adler. * WebCoreSupport/FrameLoaderClientEfl.cpp: (WebCore::FrameLoaderClientEfl::callPolicyFunction): (WebCore::FrameLoaderClientEfl::dispatchWillSubmitForm): (WebCore::FrameLoaderClientEfl::dispatchDecidePolicyForResponse): (WebCore::FrameLoaderClientEfl::dispatchDecidePolicyForNewWindowAction): (WebCore::FrameLoaderClientEfl::dispatchDecidePolicyForNavigationAction): * WebCoreSupport/FrameLoaderClientEfl.h: 2013-10-03 Sam Weinig Remove shouldRubberBandInDirection from the WKBundlePageUIClient https://bugs.webkit.org/show_bug.cgi?id=122309 Reviewed by Andreas Kling. * WebCoreSupport/ChromeClientEfl.h: 2013-10-01 Sam Weinig CTTE: DOMWrapperWorlds should be passed around by reference https://bugs.webkit.org/show_bug.cgi?id=122206 Reviewed by Andreas Kling. * WebCoreSupport/DumpRenderTreeSupportEfl.cpp: (DumpRenderTreeSupportEfl::evaluateScriptInIsolatedWorld): * WebCoreSupport/FrameLoaderClientEfl.cpp: (WebCore::FrameLoaderClientEfl::dispatchDidClearWindowObjectInWorld): * WebCoreSupport/FrameLoaderClientEfl.h: 2013-09-30 Sam Weinig Fix the build. * ewk/ewk_settings.cpp: 2013-09-30 Sam Weinig Remove support for DOMFileSystem https://bugs.webkit.org/show_bug.cgi?id=122137 Reviewed by Anders Carlsson. * ewk/ewk_settings.cpp: (ewk_settings_file_system_path_set): 2013-09-28 Darin Adler Add Frame::mainFrame and Frame::isMainFrame https://bugs.webkit.org/show_bug.cgi?id=122064 Reviewed by Andreas Kling. * WebCoreSupport/FrameLoaderClientEfl.cpp: (WebCore::FrameLoaderClientEfl::dispatchWillSendRequest): (WebCore::FrameLoaderClientEfl::assignIdentifierToInitialRequest): (WebCore::FrameLoaderClientEfl::updateGlobalHistory): Call isMainFrame. 2013-09-26 Darin Adler rename KURL to URL https://bugs.webkit.org/show_bug.cgi?id=16214 Reviewed by Andreas Kling. * many files: Renamed, using script. 2013-09-27 Darin Adler Add empty MainFrame class https://bugs.webkit.org/show_bug.cgi?id=121770 Reviewed by Andreas Kling. * WebCoreSupport/AcceleratedCompositingContextEfl.cpp: * WebCoreSupport/InspectorClientEfl.cpp: * ewk/ewk_view.cpp: Include MainFrame.h instead of Frame.h as needed. 2013-09-25 Brent Fulgham Refactor RuntimeEnabledFeatures as a Singleton. https://bugs.webkit.org/show_bug.cgi?id=121883. Reviewed by Jer Noble. * WebCoreSupport/DumpRenderTreeSupportEfl.cpp: (DumpRenderTreeSupportEfl::setCSSRegionsEnabled): Use singleton. (DumpRenderTreeSupportEfl::setSeamlessIFramesEnabled): Ditto. * ewk/ewk_settings.cpp: (ewk_settings_shadow_dom_enable_get): Ditto. (ewk_settings_shadow_dom_enable_set): * ewk/ewk_view.cpp: (_ewk_view_priv_new): Ditto. 2013-09-20 Mario Sanchez Prada [ATK] Do not expose aria-help in ATK based platforms https://bugs.webkit.org/show_bug.cgi?id=121675 Reviewed by Chris Fleizach. Removed accessibilityHelpText() helper method from DumpRenderSupportEfl's API, since it's not longer needed. * WebCoreSupport/DumpRenderTreeSupportEfl.cpp: Removed method. * WebCoreSupport/DumpRenderTreeSupportEfl.h: Ditto. 2013-09-16 Enrica Casucci Remove unused function didSetSelectionTypesForPasteboard from EditorClient. https://bugs.webkit.org/show_bug.cgi?id=121464 Reviewed by Darin Adler. * WebCoreSupport/EditorClientEfl.cpp: * WebCoreSupport/EditorClientEfl.h: 2013-09-12 Mikhail Pozdnyakov Remove home-brewed nullptr https://bugs.webkit.org/show_bug.cgi?id=119624 Reviewed by Anders Carlsson. The standard C++11 nullptr and std::nullptr_t type should be used now. * tests/UnitTestUtils/EWKTestView.cpp: 2013-09-10 Marcelo Morais [EFL] WebInspector: Move to new webinspector https://bugs.webkit.org/show_bug.cgi?id=119559 Reviewed by Gyuyoung Kim. Loading the new Web Inspector page instead of the old inspector. Co-author: Andre Loureiro * WebCoreSupport/InspectorClientEfl.cpp: (WebCore::InspectorClientEfl::openInspectorFrontend): 2013-09-05 Ryuan Choi [CMAKE] Add c++0x into CXX_FLAGS as a default https://bugs.webkit.org/show_bug.cgi?id=120812 Unreviewed build fix for EFL ports. * tests/UnitTestUtils/EWKTestConfig.h: Add space between strings. 2013-08-28 Ryuan Choi [EFL] Let Page create the main Frame https://bugs.webkit.org/show_bug.cgi?id=120360 Reviewed by Darin Adler. Page always creates the main Frame by itself after r154616. This patch follows the changes for WebKit/Efl like other ports. * WebCoreSupport/FrameLoaderClientEfl.cpp: (WebCore::FrameLoaderClientEfl::createFrame): Moved the logic of ewk_view_frame_create. * ewk/ewk_frame.cpp: (ewk_frame_init): (ewk_frame_child_add): Moved construction logic of Frame and FrameLoderClientEfl from ewk_view. (EWKPrivate::setCoreFrame): * ewk/ewk_frame_private.h: * ewk/ewk_view.cpp: Removed _ewk_view_core_frame_new. (_ewk_view_priv_new): (_ewk_view_smart_add): (ewk_view_frame_rect_changed): * ewk/ewk_view_private.h: 2013-08-24 Darin Adler Frame::tree should return a reference instead of a pointer https://bugs.webkit.org/show_bug.cgi?id=120259 Reviewed by Andreas Kling. * WebCoreSupport/DumpRenderTreeSupportEfl.cpp: (DumpRenderTreeSupportEfl::clearFrameName): (DumpRenderTreeSupportEfl::frameChildren): (DumpRenderTreeSupportEfl::frameParent): * ewk/ewk_frame.cpp: (_ewk_frame_children_iterator_next): (ewk_frame_child_find): (ewk_frame_name_get): (ewk_frame_child_add): * ewk/ewk_view.cpp: (ewk_view_frame_create): Use tree(). instead of tree()->. 2013-08-22 Andreas Kling EFL build juice. * WebCoreSupport/ChromeClientEfl.cpp: (kit): 2013-08-20 Pratik Solanki Document::markers() should return a reference Reviewed by Andreas Kling. Document::m_markers is never NULL so return a reference from Document::markers(). Also mark m_markers as const and initialize it in member initialization. * ewk/ewk_frame.cpp: (ewk_frame_text_matches_unmark_all): (ewk_frame_text_matches_nth_pos_get): 2013-08-19 Pratik Solanki Frame::selection() should return a reference Reviewed by Darin Adler. m_selection is never NULL so return a reference from Frame::selection(). Also removed some unnecessary null checks and assert diff ts exposed as a result. * WebCoreSupport/DumpRenderTreeSupportEfl.cpp: (DumpRenderTreeSupportEfl::selectionRectangle): (DumpRenderTreeSupportEfl::firstRectForCharacterRange): (DumpRenderTreeSupportEfl::selectedRange): * WebCoreSupport/EditorClientEfl.cpp: (WebCore::EditorClientEfl::handleEditingKeyboardEvent): * ewk/ewk_frame.cpp: (ewk_frame_text_selection_type_get): 2013-08-16 Jaehun Lim [EFL] Unreviewed build fix after r154192 * WebCoreSupport/DumpRenderTreeSupportEfl.cpp: (DumpRenderTreeSupportEfl::evaluateScriptInIsolatedWorld): 2013-08-16 Pratik Solanki Frame::scriptController() should return a reference Reviewed by Andreas Kling. m_script is never NULL so we can just return a reference. Also remove some pointless null checks as a result of doing this. * WebCoreSupport/DumpRenderTreeSupportEfl.cpp: (DumpRenderTreeSupportEfl::evaluateScriptInIsolatedWorld): (DumpRenderTreeSupportEfl::globalContextRefForFrame): * WebCoreSupport/FrameLoaderClientEfl.cpp: (WebCore::FrameLoaderClientEfl::dispatchDidClearWindowObjectInWorld): * ewk/ewk_frame.cpp: (ewk_frame_script_execute): * ewk/ewk_view.cpp: (ewk_view_js_object_add): 2013-08-15 Ryuan Choi [EFL] Unreviewed build fix after r154142 and r154144. * ewk/ewk_frame.cpp: Follow the changes of r154142. (ewk_frame_uri_set): (ewk_frame_certificate_status_get): 2013-08-15 Anders Carlsson Frame::loader() should return a reference Reviewed by Andreas Kling. * WebCoreSupport/ChromeClientEfl.cpp: (kit): * WebCoreSupport/DumpRenderTreeSupportEfl.cpp: (DumpRenderTreeSupportEfl::callShouldCloseOnWebView): (DumpRenderTreeSupportEfl::clearOpener): (DumpRenderTreeSupportEfl::frameChildren): (DumpRenderTreeSupportEfl::responseMimeType): (DumpRenderTreeSupportEfl::provisionalURL): * WebCoreSupport/FrameLoaderClientEfl.cpp: (WebCore::FrameLoaderClientEfl::callPolicyFunction): (WebCore::FrameLoaderClientEfl::dispatchDecidePolicyForNewWindowAction): (WebCore::FrameLoaderClientEfl::dispatchDecidePolicyForNavigationAction): (WebCore::FrameLoaderClientEfl::updateGlobalHistoryRedirectLinks): (WebCore::FrameLoaderClientEfl::updateGlobalHistory): * ewk/ewk_frame.cpp: (_ewk_frame_loader_efl_get): (_ewk_frame_smart_del): (_ewk_frame_contents_set_internal): (ewk_frame_stop): (ewk_frame_reload): (ewk_frame_reload_full): (ewk_frame_child_add): * ewk/ewk_view.cpp: (ewk_view_frame_focused_get): (ewk_view_setting_user_agent_set): (ewk_view_setting_encoding_custom_get): (ewk_view_setting_encoding_custom_set): 2013-08-12 Ryuan Choi [EFL][WK1] URL printing code in DumpRenderTree doesn't match WTR or Mac DRT https://bugs.webkit.org/show_bug.cgi?id=119585 Reviewed by Gyuyoung Kim. * WebCoreSupport/DumpRenderTreeSupportEfl.cpp: (DumpRenderTreeSupportEfl::provisionalURL): Implemented to pass provisionalURL of main frame to DumpRenderTreeChrome. * WebCoreSupport/DumpRenderTreeSupportEfl.h: 2013-08-09 Alexey Proskuryakov REGRESSION (r142755): window.open creates an invisible window when width and height are 0 https://bugs.webkit.org/show_bug.cgi?id=119633 Reviewed by Darin Adler. * WebCoreSupport/ChromeClientEfl.cpp: (WebCore::ChromeClientEfl::setWindowRect): Once again, the passed rect cannot be empty. 2013-07-27 Mark Rowe Logging should be configurable using human-readable channel names rather than crazy bitmasks Implement shared logic for initializing logging channels based on human-readable channel names in WTF, and rework the WebCore, WebKit and WebKit2 logging initialization on top of it. Logging channels may now be enabled by providing a comma-separated list of channel names, with the special "all" name enabling all channels. Channel names prefixed with a leading "-" will result in the named channel being disabled. For instance, specifying "all,-history,-loading" will result in all logging channels except for history and loading being enabled. For OS X developers, this also changes the name of the user defaults used to enable logging. This is done to allow the old user defaults to remain set for those people that need to switch between version of WebKit before and after this change. Where the old user default keys were WebCoreLogLevel, WebKitLogLevel and WebKit2LogLevel, the new user default keys are WebCoreLogging, WebKitLogging and WebKit2Logging. For GTK developers, this changes the separator used in the WEBKIT_DEBUG environment variable to a comma for consistency with the other platforms and to enable more code sharing. While doing this work I've also taken the opportunity to eliminate the need to touch multiple files when adding a new logging channel. Now only the header in the relevant project needs to be updated. Reviewed by Sam Weinig. * ewk/ewk_main.cpp: Switch from WebCore's InitializeLogging.h to Logging.h. 2013-07-27 Jacky Jiang Replace all uses of GraphicsLayer::create function with the one that takes a GraphicsLayerFactory https://bugs.webkit.org/show_bug.cgi?id=119186 Reviewed by Anders Carlsson. * WebCoreSupport/AcceleratedCompositingContextEfl.cpp: (WebCore::AcceleratedCompositingContext::attachRootGraphicsLayer): 2013-07-25 Andreas Kling ChromeClient::focusedNodeChanged() should be focusedElementChanged(). Reviewed by Anders Carlsson. * WebCoreSupport/ChromeClientEfl.cpp: (WebCore::ChromeClientEfl::focusedElementChanged): * WebCoreSupport/ChromeClientEfl.h: 2013-07-15 Kwang Yul Seo NetworkStorageSession::createDefaultSession is only implemented by Soup https://bugs.webkit.org/show_bug.cgi?id=118679 Reviewed by Alexey Proskuryakov. Replace NetworkStorageSession::createDefaultSession() with NetworkStorageSession::defaultStorageSession(). * ewk/ewk_view.cpp: (_ewk_view_priv_new): (EWKPrivate::storageSession): 2013-07-09 Ryuan Choi [EFL] Add ewk_view_device_pixel_ratio_set https://bugs.webkit.org/show_bug.cgi?id=118521 Reviewed by Gyuyoung Kim. ewebkit and ewebkit2 have different approach about getting device pixel ratio. ewebkit depends on deprecatedTargetDPI and ecore_x_dpi_get, but ewebkit2 use Page::deviceScaleFactor. This patch will add ewk_view_device_pixel_ratio_set and use Page::deviceScaleFactor() instead of ViewportArguments::deprecatedTargetDPI like ewebkit2. * ewk/ewk_view.cpp: (_ewk_view_priv_new): (_ewk_view_viewport_attributes_compute): Use Page::deviceScaleFactor(). (ewk_view_viewport_attributes_get): Ditto. (ewk_view_device_pixel_ratio_set): Added. (ewk_view_device_pixel_ratio_get): * ewk/ewk_view.h: Update document of ewk_view_device_pixel_ratio_get (from ewebkit2) and added ewk_view_device_pixel_ratio_set. 2013-06-27 Kangil Han Adopt is/toHTMLInputElement for code cleanup https://bugs.webkit.org/show_bug.cgi?id=118130 Reviewed by Antti Koivisto. To enhance readability, this patch adopts is/toHTMLInputElement. This also helps out to reduce duplicated use of static_cast. * ewk/ewk_view.cpp: (ewk_view_input_method_state_set): 2013-06-26 Ryuan Choi [EFL][REGRESSION] Crash after r151540 with debug build https://bugs.webkit.org/show_bug.cgi?id=118111 Reviewed by Gyuyoung Kim. * ewk/ewk_view.cpp: (ewk_view_scroll): Fixed ASSERT conditions wrongly refactored. 2013-06-21 Christophe Dumez REGRESSION (r150663): Using webkitAudioContext in Inspector makes it undefined everywhere https://bugs.webkit.org/show_bug.cgi?id=117825 Reviewed by Kentaro Hara. Use Settings to enable Web Audio instead of RuntimeEnabledFeatures. * WebCoreSupport/DumpRenderTreeSupportEfl.cpp: (DumpRenderTreeSupportEfl::setWebAudioEnabled): * WebCoreSupport/DumpRenderTreeSupportEfl.h: * ewk/ewk_view.cpp: (_ewk_view_priv_new): 2013-06-17 Seokju Kwon [EFL] Remove unneeded WebCore namespace in FrameLoaderClientEfl https://bugs.webkit.org/show_bug.cgi?id=117718 Reviewed by Christophe Dumez. * WebCoreSupport/FrameLoaderClientEfl.cpp: Remove 'using namespace WebCore'. 2013-06-17 Ruth Fong REGRESSION: Important controls are missing from