2013-09-24 Lorenzo Tilve [GTK] Fix compilation problems when setting ENABLE_DRAG_SUPPORT = FALSE https://bugs.webkit.org/show_bug.cgi?id=121782 Reviewed by Martin Robinson. Disabled drag functions. * page/gtk/EventHandlerGtk.cpp: * platform/gtk/PasteboardGtk.cpp: 2013-08-28 Chris Curtis https://bugs.webkit.org/show_bug.cgi?id=119548 Refactoring Exception throws. Reviewed by Geoffrey Garen. Gets column information from the error object for reporting exceptions. * bindings/js/JSDOMBinding.cpp: (WebCore::reportException): * bindings/js/ScriptCallStackFactory.cpp: (WebCore::createScriptCallStackFromException): Moved setting an exception into the vm, These functions changed to use the new functionality. * bindings/js/JSAudioBufferSourceNodeCustom.cpp: (WebCore::JSAudioBufferSourceNode::setBuffer): * bindings/js/JSBiquadFilterNodeCustom.cpp: (WebCore::JSBiquadFilterNode::setType): * bindings/js/JSCryptoCustom.cpp: (WebCore::JSCrypto::getRandomValues): * bindings/js/JSDOMBinding.cpp: (WebCore::setDOMException): * bindings/js/JSInjectedScriptHostCustom.cpp: (WebCore::JSInjectedScriptHost::setFunctionVariableValue): * bindings/js/JSJavaScriptCallFrameCustom.cpp: (WebCore::JSJavaScriptCallFrame::evaluate): (WebCore::JSJavaScriptCallFrame::setVariableValue): * bindings/js/JSNodeFilterCondition.cpp: (WebCore::JSNodeFilterCondition::acceptNode): * bindings/js/JSOscillatorNodeCustom.cpp: (WebCore::JSOscillatorNode::setType): * bindings/js/JSPannerNodeCustom.cpp: (WebCore::JSPannerNode::setPanningModel): (WebCore::JSPannerNode::setDistanceModel): * bindings/js/JSSVGLengthCustom.cpp: (WebCore::JSSVGLength::convertToSpecifiedUnits): * bindings/js/JSWebGLRenderingContextCustom.cpp: (WebCore::getObjectParameter): (WebCore::JSWebGLRenderingContext::getAttachedShaders): (WebCore::JSWebGLRenderingContext::getExtension): (WebCore::JSWebGLRenderingContext::getFramebufferAttachmentParameter): (WebCore::JSWebGLRenderingContext::getParameter): (WebCore::JSWebGLRenderingContext::getProgramParameter): (WebCore::JSWebGLRenderingContext::getShaderParameter): (WebCore::JSWebGLRenderingContext::getUniform): (WebCore::dataFunctionf): (WebCore::dataFunctioni): (WebCore::dataFunctionMatrix): * bindings/js/JSXMLHttpRequestCustom.cpp: (WebCore::JSXMLHttpRequest::open): * bindings/js/SerializedScriptValue.cpp: (WebCore::CloneBase::throwStackOverflow): (WebCore::CloneDeserializer::throwValidationError): (WebCore::SerializedScriptValue::maybeThrowExceptionIfSerializationFailed): * bindings/js/WorkerScriptController.cpp: (WebCore::WorkerScriptController::evaluate): (WebCore::WorkerScriptController::setException): * bridge/c/c_instance.cpp: (JSC::Bindings::CInstance::moveGlobalExceptionToExecState): (JSC::Bindings::CInstance::invokeMethod): (JSC::Bindings::CInstance::invokeDefaultMethod): (JSC::Bindings::CInstance::invokeConstruct): (JSC::Bindings::CInstance::toJSPrimitive): * bridge/objc/objc_instance.mm: (ObjcInstance::invokeMethod): * bridge/objc/objc_runtime.mm: (JSC::Bindings::ObjcArray::setValueAt): (JSC::Bindings::ObjcArray::valueAt): * bridge/objc/objc_utility.mm: (JSC::Bindings::throwError): * bridge/qt/qt_instance.cpp: (JSC::Bindings::QtField::valueFromInstance): (JSC::Bindings::QtField::setValueToInstance): * bridge/runtime_array.cpp: (JSC::RuntimeArray::put): (JSC::RuntimeArray::putByIndex): * bridge/runtime_object.cpp: (JSC::Bindings::RuntimeObject::throwInvalidAccessError): 2013-09-13 Gustavo Noronha Silva [GTK] Move to the new web inspector https://bugs.webkit.org/show_bug.cgi?id=120647 Reviewed by Carlos Garcia Campos. No tests for the new inspector UI as of yet. * GNUmakefile.am: no longer install the deprecated inspector UI files. * WebCore.exp.in: add SchemeRegistry symbol that is now used. 2013-09-11 Mario Sanchez Prada [GTK] Remove Gail dependency from build system for GTK3 https://bugs.webkit.org/show_bug.cgi?id=119673 Reviewed by Gustavo Noronha Silva. * GNUmakefile.am: Removed GAIL_CFLAGS. * PlatformGTK.cmake: Removed GAIL3_INCLUDE_DIRS and GAIL3_LIBRARIES. 2013-09-11 Mario Sanchez Prada [GTK] Get rid of Pango/Gail dependencies in accessibility for ATK https://bugs.webkit.org/show_bug.cgi?id=114867 Reviewed by Martin Robinson. Removed all trace of Gail and Pango specific code from the AtkText implementation, now everything has been reimplemented. * accessibility/atk/WebKitAccessibleInterfaceText.cpp: (webkitAccessibleTextGetTextForOffset): Removed fallback code relying in Gail/Pango, now all the related code has been removed. Also, replaced the collection of if statements with a switch, for better readability of the code. 2013-09-10 Mario Sanchez Prada [GTK] Reimplement atk_text_get_text_*_offset for LINE boundaries https://bugs.webkit.org/show_bug.cgi?id=114872 Reviewed by Gustavo Noronha Silva. Re-implement these functions without using GailTextUtil nor Pango. * accessibility/atk/WebKitAccessibleInterfaceText.cpp: (lineAtPositionForAtkBoundary): New helper function to find the line at a given position considering values of AtkTextBoundary. (webkitAccessibleTextLineForBoundary): New function, implementing atk_text_get_text_*_offset for LINE. (webkitAccessibleTextGetTextForOffset): Replace usage of Gail for LINE boundaries with webkitAccessibleTextLineForBoundary(). 2013-09-04 Mario Sanchez Prada [GTK] Reimplement atk_text_get_text_*_offset for SENTENCE boundaries https://bugs.webkit.org/show_bug.cgi?id=114873 Reviewed by Chris Fleizach. Re-implement these functions without using GailTextUtil nor Pango. * accessibility/atk/WebKitAccessibleInterfaceText.cpp: (webkitAccessibleTextWordForBoundary): Renamed from webkitAccessibleTextGetWordForBoundary, to keep it consistent with names for new functions. (isSentenceBoundary): Helper function to know when we are either at the beginning or the end of a sentence. (isWhiteSpaceBetweenSentences): It returns true if we are in the middle of a white space between sentences. Useful for implementing the SENTENCE_END boundary type. (sentenceAtPositionForAtkBoundary): New helper function to find the sentence at a given position considering values of AtkTextBoundary. (webkitAccessibleTextSentenceForBoundary): New function, implementing atk_text_get_text_*_offset for SENTENCE. (webkitAccessibleTextGetTextForOffset): Replace usage of Gail for SENTENCE boundaries with webkitAccessibleTextSentenceForBoundary(). 2013-09-14 Alberto Garcia Missing allow-none introspection annotation for DomDocument.evaluate method https://bugs.webkit.org/show_bug.cgi?id=118310 Reviewed by Martin Robinson. Add (allow-none) introspection annotation to parameters that can be NULL. * bindings/scripts/CodeGeneratorGObject.pm: (GenerateFunction): 2013-09-14 Alberto Garcia [GTK] WebKitGTK+ is linking against libxslt in too many places https://bugs.webkit.org/show_bug.cgi?id=121356 Reviewed by Martin Robinson. Don't use LIBXSLT_CFLAGS when compiling libWebCorePlatform and libWebCoreGtk, no source files use libxslt there. * GNUmakefile.am: 2013-09-06 Anders Carlsson Stop using fastNew/fastDelete in WebCore https://bugs.webkit.org/show_bug.cgi?id=120867 Reviewed by Geoffrey Garen. Using fastNew/fastDelete can be dangerous, especially when put into a smart pointer such as OwnPtr which uses regular delete. Because of this I'd like to remove fastNew/fastDelete. Turns out it's only used in a couple of places in WebCore, so just use new/delete here instead. * platform/audio/FFTFrame.h: * platform/audio/gstreamer/FFTFrameGStreamer.cpp: (WebCore::FFTFrame::FFTFrame): (WebCore::FFTFrame::~FFTFrame): (WebCore::FFTFrame::doFFT): (WebCore::FFTFrame::doInverseFFT): * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp: (WebCore::MediaPlayerPrivateGStreamerBase::MediaPlayerPrivateGStreamerBase): (WebCore::MediaPlayerPrivateGStreamerBase::~MediaPlayerPrivateGStreamerBase): * platform/graphics/gstreamer/VideoSinkGStreamer.cpp: (webkitVideoSinkDispose): 2013-09-09 Claudio Saavedra [GTK] ghost cursor when mouse hovers over an image file in a tab https://bugs.webkit.org/show_bug.cgi?id=120675 Reviewed by Carlos Garcia Campos. No new tests, covered by existing. * platform/gtk/CursorGtk.cpp: (WebCore::createNamedCursor): Use new gdk_cursor_new_from_surface() when compiling against GTK+ 3.9.12 or newer. 2013-09-04 Zan Dobersek [GTK] Add support for the Wayland build target https://bugs.webkit.org/show_bug.cgi?id=120627 Reviewed by Gustavo Noronha Silva. * GNUmakefile.list.am: Reorder the Source/WebCore/plugins/np* source files. The X11-specific source files should only be included if the X11 target is being built. PluginPackageNone and PluginViewNone source files must be included in non-X11-target builds. Other source files that were previously guarded with the TARGET_X11 conditional should also be built for the Wayland target, so the new TARGET_X11_OR_WAYLAND conditional is used. If neither of those two targets is being built we fall back to adding source files to the build as necessary by the actual build target. * platform/gtk/GtkVersioning.c: (gdk_screen_get_monitor_workarea): Additionally guard bits of code that depend on the GDK_WINDOWING_X11 macro being defined - these should only be built when building the X11 target, checked for with PLATFORM(X11). 2013-09-04 Claudio Saavedra [GTK] Color of input button's text broken with recent gnome-themes-standard https://bugs.webkit.org/show_bug.cgi?id=120581 Reviewed by Carlos Garcia Campos. * platform/gtk/RenderThemeGtk3.cpp: (WebCore::getStyleContext): add the "text-button" class. (WebCore::RenderThemeGtk::systemColor): Use the ACTIVE state flag, as this is the one actually used for button labels. 2013-09-04 Andre Moreira Magalhaes [GStreamer] cannot play live streams https://bugs.webkit.org/show_bug.cgi?id=116831 Reviewed by Philippe Normand. Fix issues with rtsp streams embedded on