2010-05-04 Tucker Jay Reviewed by Holger Freyther. Animated GIF images does not animate 10x as expected by default. https://bugs.webkit.org/show_bug.cgi?id=36818 Added test case to existing manual test to test the fixed functionality. * manual-tests/qt/qt-10loop-anim.gif: Added. * manual-tests/qt/qt-gif-test.html: * platform/graphics/qt/ImageDecoderQt.cpp: (WebCore::ImageDecoderQt::repetitionCount): 2010-04-21 Zoltan Herczeg Reviewed by Kenneth Rohde Christiansen. [Qt] startAnimation() is not needed to preceede nativeImageForCurrentFrame() https://bugs.webkit.org/show_bug.cgi?id=37844 nativeImageForCurrentFrame() resets the m_decoder parameter under Qt, which is required by startAnimation() to detect frame and repetition counts. Hence, Image::drawTiled cannot start animations under Qt: does not work * platform/graphics/qt/ImageDecoderQt.cpp: (WebCore::ImageDecoderQt::internalHandleCurrentImage): 2010-03-10 Holger Hans Peter Freyther Reviewed by Simon Hausmann. [Qt] Non animated gifs are animated in QtWebKit https://bugs.webkit.org/show_bug.cgi?id=35955 Properly map Qt animated and non-animated values to WebCore's understanding of animated and non-animated images. Currently we can not map anything to the cAnimationLoopNone value. * manual-tests/qt/qt-anim.gif: Added. * manual-tests/qt/qt-gif-test.html: Added. * manual-tests/qt/qt-noanim.gif: Added. * platform/graphics/qt/ImageDecoderQt.cpp: (WebCore::ImageDecoderQt::repetitionCount): 2010-04-26 Simon Hausmann Reviewed by Kenneth Rohde Christiansen. [Qt] Fix compilation with RVCT 4 https://bugs.webkit.org/show_bug.cgi?id=37727 Swap extern and declspec to fix visibility of symbol imported from QtGui. * page/qt/EventHandlerQt.cpp: 2010-04-26 Markus Goetz Reviewed by Simon Hausmann. [Qt] HTTP pipelining efficiency increase https://bugs.webkit.org/show_bug.cgi?id=38062 Increase number of network requests that are fed into QNetworkAccessManager. * platform/network/qt/ResourceRequestQt.cpp: (WebCore::initializeMaximumHTTPConnectionCountPerHost): 2009-11-03 Dan Bernstein Reviewed by Dave Hyatt. Allow a frame to go back to copy-on-scroll when it ceases being overlapped The code was not testing slow-scrolling frames for overlappedness, thinking the answer would not matter. That is not the case if the only reason for the slow-scrolling is being overlapped. * page/FrameView.cpp: (WebCore::FrameView::useSlowRepaintsIfNotOverlapped): Added. Returns whether there is any reason besides being overlapped that the frame would need to fully repaint on scroll. * page/FrameView.h: * rendering/RenderWidget.cpp: (WebCore::RenderWidget::paint): Use useSlowRepaintsIfNotOverlapped(). 2010-04-09 David Leong Reviewed by Simon Hausmann. [Qt] Symbian apps crash on exit due to a bad qObject_cast. https://bugs.webkit.org/show_bug.cgi?id=37303 Added check for NULL to avoid the crash. * plugins/symbian/PluginViewSymbian.cpp: (WebCore::PluginView::platformDestroy): 2009-11-15 Dave Tapuska Reviewed by George Staikos. Compare UChars single unit at a time as opposed to the uint32_t approach as casting to unaligned addresses may cause a bus failure on ARMv5 and below. This change replicates the same defines that exists in AtomicString.cpp https://bugs.webkit.org/show_bug.cgi?id=31475 * platform/text/StringHash.h: (WebCore::StringHash::equal): 2010-03-25 yael aharon Reviewed by Laszlo Gombos. [Qt] Windowed netscape plugins don't work with QGraphicsWebView on Symbian https://bugs.webkit.org/show_bug.cgi?id=35112 Add a proxy widget when loading a QWidget based plugin in a QGraphicsWebView. * plugins/symbian/PluginContainerSymbian.cpp: (PluginContainerSymbian::PluginContainerSymbian): (PluginContainerSymbian::focusInEvent): * plugins/symbian/PluginContainerSymbian.h: (WebCore::PluginContainerSymbian::proxy): * plugins/symbian/PluginViewSymbian.cpp: (WebCore::PluginView::updatePluginWidget): (WebCore::PluginView::platformStart): (WebCore::PluginView::platformDestroy): 2010-03-29 Laszlo Gombos Reviewed for the Qt 4.6 branch by Simon Hausmann. Accept XHTML-MP content type as XHTML content https://bugs.webkit.org/show_bug.cgi?id=34262 Enable processing XHTML-MP mime type as an XHTML document even if XHTML-MP support is not enabled. * platform/MIMETypeRegistry.cpp: (WebCore::initializeSupportedNonImageMimeTypes): 2010-03-22 Jakub Wieczorek Reviewed by Simon Hausmann. [Qt] Don't construct a QLineEdit every time when painting a text field https://bugs.webkit.org/show_bug.cgi?id=36373 Instead, keep one instance per RenderTheme around. * platform/qt/RenderThemeQt.cpp: (WebCore::findFrameLineWidth): 2010-03-26 Janne Koskinen Reviewed by Laszlo Gombos. Don't undefine SKIP_STATIC_CONSTRUCTORS_ON_GCC for Symbian HW targets. https://bugs.webkit.org/show_bug.cgi?id=34081 Defining StringImpl instances as globals will cause a crash on process exit as StringImpl::Remove expects TLS which was already deleted at time of exiting main and ends up constructing one exiting thread. * config.h: 2010-02-02 Alexey Proskuryakov Reviewed by Darin Adler. https://bugs.webkit.org/show_bug.cgi?id=34076 Crash in mangleme in WebCore::Element::getAttribute Test: fast/forms/misplaced-img-form-registration.html * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::registerImgElement): Assert that the same image isn't added to vector again. (WebCore::HTMLFormElement::removeImgElement): Similarly, assert that we're removing something that's actually registered. * html/HTMLImageElement.cpp: (WebCore::HTMLImageElement::~HTMLImageElement): If parser fails to insert the image element, then there will be no removed from tree notification either, need to unregister right away. 2010-01-25 Alexey Proskuryakov Rubber-stamped by Geoffrey Garen. https://bugs.webkit.org/show_bug.cgi?id=34076 An image remains accessible via form.property syntax after being removed from document. Fix crashing regression tests (tables/mozilla/bugs/bug4527.html et al.) * html/HTMLImageElement.cpp: (WebCore::HTMLImageElement::insertedIntoTree): Remove incorrect assertions added in the previous patch - it's mot true that m_for is always a parent; table parsing can reparent the image element, but m_form still needs to be set. 2010-01-25 Alexey Proskuryakov Reviewed by Geoffrey Garen. https://bugs.webkit.org/show_bug.cgi?id=34076 An image remains accessible via form.property syntax after being removed from document. Tests: fast/forms/removed-image-as-property.html fast/forms/reparented-image-as-property.html * html/HTMLImageElement.cpp: (WebCore::HTMLImageElement::~HTMLImageElement): This is called during GC - not a good time to make observable changes to DOM. (WebCore::HTMLImageElement::insertedIntoTree): This is the right place to do any work that depends on connectedness to some ancestor. We still allow for m_form to be set via constructor, which happens during parsing. (WebCore::HTMLImageElement::removedFromTree): Ditto. * html/HTMLImageElement.h: Added removedFromTree/insertedIntoTree, moved removedFromDocument and insertedIntoDocument to private section, as they shouldn't be called directly. 2009-12-08 Brady Eidson Reviewed by Darin Adler. Navigating to a cached page can result in accessing a destroyed HTMLInputElement. and https://webkit.org/b/32293 Test: fast/loader/input-element-page-cache-crash.html * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::parseMappedAttribute): Make sure to unregister for the activation callback after the new m_autocomplete setting has been stored so the unregistration actually takes place. 2009-12-13 Dan Bernstein Reviewed by Simon Fraser. Crash at HTMLParser::popOneBlockCommon() after handling misnested residual style tags Test: fast/parser/residual-style-close-ref-clone.html * html/HTMLParser.cpp: (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks): Gave the block stack a strong reference to the cloned residual style element. 2009-12-23 Dan Bernstein Reviewed by Darin Adler. First line of text cannot be selected https://bugs.webkit.org/show_bug.cgi?id=32749 Test: fast/text/remove-zero-length-run.html * rendering/RenderText.cpp: (WebCore::RenderText::positionLineBox): Changed code that assumed that if a box was being removed, it was the only box in the RenderText. Instead, correctly preserve the list of text boxes. (WebCore::RenderText::checkConsistency): Updated for earlier rename. 2009-12-10 Oliver Hunt Reviewed by Alexey Proskuryakov. Crash in XMLTokenizer::popCurrentNode if window.close() is called during parsing https://bugs.webkit.org/show_bug.cgi?id=31576 Add a RefCounted wrapper object around xmlParserCtxtPtr so we can maintain it's lifetime more effectively. Test: fast/parser/xhtml-close-while-parsing.xhtml * dom/XMLTokenizer.cpp: (WebCore::XMLTokenizer::popCurrentNode): * dom/XMLTokenizer.h: (WebCore::XMLParserContext::context): (WebCore::XMLParserContext::XMLParserContext): (WebCore::XMLTokenizer::context): * dom/XMLTokenizerLibxml2.cpp: (WebCore::XMLParserContext::createStringParser): (WebCore::XMLParserContext::createMemoryParser): (WebCore::XMLParserContext::~XMLParserContext): (WebCore::XMLTokenizer::~XMLTokenizer): (WebCore::XMLTokenizer::doWrite): (WebCore::XMLTokenizer::initializeParserContext): (WebCore::XMLTokenizer::doEnd): (WebCore::XMLTokenizer::lineNumber): (WebCore::XMLTokenizer::columnNumber): (WebCore::XMLTokenizer::stopParsing): (WebCore::parseXMLDocumentFragment): (WebCore::parseAttributes): 2009-11-09 Anders Carlsson Reviewed by Darin Adler and Dan Bernstein. https://bugs.webkit.org/show_bug.cgi?id=31277 When an object tag's style changes (for example when child nodes are added/removed), reuse its Frame (if it has one) instead of creating multiple Frames. Test: fast/dom/HTMLObjectElement/children-changed.html * loader/FrameLoader.cpp: (WebCore::FrameLoader::requestObject): 2009-12-05 Adam Langley Reviewed by Adam Barth. Check that a CSS format() argument is of a valid type. https://bugs.webkit.org/show_bug.cgi?id=31815 http://code.google.com/p/chromium/issues/detail?id=28582 Test: fast/css/url-format-non-string.html * css/CSSParser.cpp: (WebCore::CSSParser::parseFontFaceSrc): 2010-03-19 Miikka Heikkinen Reviewed by Simon Hausmann. [Qt] Support for QT_LIBINFIX in Symbian builds Configuring Qt with -qtlibinfix parameter will enable installing an alternate version of Qt on devices that already have it on ROM. This patch provides support for infixed builds of Webkit. * WebCore.pro: 2010-01-31 Benjamin Poulain Reviewed by Eric Seidel. [Qt] Enable FAST_MOBILE_SCROLLING on Qt embedded platforms https://bugs.webkit.org/show_bug.cgi?id=34168 Enable FAST_MOBILE_SCROLLING for Qt on Maemo 5, Linux embedded and Symbian * WebCore.pro: 2010-01-19 Daniel Bates Reviewed by Adam Treat. https://bugs.webkit.org/show_bug.cgi?id=33408 Implements an optimization to ignore fixed background images (i.e. background-attachment: fixed) when a page does not contain any fixed position elements so as to allow fast repaints (via bit blit) when scrolling a page. Currently, if a page has elements that specify either a fixed background or a fixed position then we perform a slow repaint (i.e disable blitting) so as to avoid rendering artifacts. However, on low-powered/mobile devices slow repaints can cause noticeable delays when scrolling a page with a fixed background image. By sacrificing support for fixed background images when there are no fixed elements on the page and with come care, we don't need to force slow repaints and can avoid rendering artifacts. Hence, on such devices we can improve the responsiveness of scrolling a page with a fixed background image. Note, this optimization is only enabled if the WebKit is built with FAST_MOBILE_SCROLLING enabled. Tests: fast/fast-mobile-scrolling/fixed-position-element.html fast/fast-mobile-scrolling/no-fixed-position-elements.html * rendering/RenderBoxModelObject.cpp: (WebCore::RenderBoxModelObject::calculateBackgroundImageGeometry): Disable fixed background attachment if we can blit on scroll. * rendering/RenderObject.cpp: (WebCore::RenderObject::styleWillChange): 2010-03-11 Simon Hausmann Reviewed by Tor Arne Vestbø. [Qt] Avoid double-buffering with Qt image decoders Pass QIODevice::Unbuffered when opening the QBuffer that wraps the image data, to hint to Qt that no extra buffering is needed. * platform/graphics/qt/ImageDecoderQt.cpp: (WebCore::ImageDecoderQt::setData): 2010-01-14 Diego Gonzalez Reviewed by Kenneth Christiansen. [Qt] Missing fileSystemPath() method in Qt KURL implementation https://bugs.webkit.org/show_bug.cgi?id=33614 No new tests. * platform/qt/KURLQt.cpp: (WebCore::KURL::fileSystemPath): 2010-02-01 Andreas Kling Reviewed by Kenneth Rohde Christiansen. [Qt] In the StyledPainter determine the style from the Render and Scrollbar theme instead of from the paint device https://bugs.webkit.org/show_bug.cgi?id=34054 Getting the style from the painter's paint device is a hack that breaks when the paint device's style is different than the style that is used when calculating the metries earlier when there is no painter available. This change moves us closer to always using the same style. * platform/qt/RenderThemeQt.cpp: (WebCore::StylePainter::StylePainter): (WebCore::StylePainter::init): (WebCore::RenderThemeQt::paintButton): (WebCore::RenderThemeQt::paintTextField): (WebCore::RenderThemeQt::paintMenuList): (WebCore::RenderThemeQt::paintMenuListButton): (WebCore::RenderThemeQt::paintSliderTrack): (WebCore::RenderThemeQt::paintMediaMuteButton): (WebCore::RenderThemeQt::paintMediaPlayButton): (WebCore::RenderThemeQt::paintMediaSliderTrack): (WebCore::RenderThemeQt::paintMediaSliderThumb): * platform/qt/RenderThemeQt.h: * platform/qt/ScrollbarThemeQt.cpp: (WebCore::ScrollbarThemeQt::paint): (WebCore::ScrollbarThemeQt::hitTest): (WebCore::ScrollbarThemeQt::shouldCenterOnThumb): (WebCore::ScrollbarThemeQt::scrollbarThickness): (WebCore::ScrollbarThemeQt::thumbLength): (WebCore::ScrollbarThemeQt::trackPosition): (WebCore::ScrollbarThemeQt::trackLength): (WebCore::ScrollbarThemeQt::paintScrollCorner): (WebCore::ScrollbarThemeQt::style): * platform/qt/ScrollbarThemeQt.h: 2010-01-25 Simon Hausmann Reviewed by Kenneth Rohde Christiansen. [Qt] Use the fallback style on Maemo 5 https://bugs.webkit.org/show_bug.cgi?id=34376 * platform/qt/RenderThemeQt.cpp: (WebCore::RenderThemeQt::RenderThemeQt): (WebCore::RenderThemeQt::fallbackStyle): (WebCore::RenderThemeQt::qStyle): (WebCore::RenderThemeQt::setPaletteFromPageClientIfExists): * platform/qt/RenderThemeQt.h: 2010-01-29 Oswald Buddenhagen Reviewed by Simon Hausmann. [Qt] Speed up the WebCore::String -> QString conversion Use QString(const QChar *, int len) constructor instead of QString::fromUtf16 to avoid BOM checks and byteswapping. * bridge/qt/qt_class.cpp: (JSC::Bindings::QtClass::fieldNamed): * bridge/qt/qt_runtime.cpp: (JSC::Bindings::convertValueToQVariant): 2010-01-14 Andreas Kling Reviewed by Kenneth Rohde Christiansen. [Qt] Enable scrolling optimization for pages with embedded widgets https://bugs.webkit.org/show_bug.cgi?id=33373 Added a basic manual test for scrolling of embedded QWidgets. * manual-tests/qt/qtplugin-scrolling.html: Added. * platform/ScrollView.cpp: (WebCore::ScrollView::scrollContents): (WebCore::ScrollView::setParent): * platform/ScrollView.h: * platform/qt/ScrollViewQt.cpp: (WebCore::ScrollView::platformInit): (WebCore::ScrollView::platformAddChild): (WebCore::ScrollView::platformRemoveChild): * plugins/qt/PluginViewQt.cpp: (WebCore::PluginView::updatePluginWidget): (WebCore::PluginView::invalidateRect): 2010-01-29 Laszlo Gombos Reviewed by Simon Hausmann. [Qt] Turn off websocket support by default for Qt 4.6.x https://bugs.webkit.org/show_bug.cgi?id=34284 * WebCore.pro: 2010-01-26 Holger Hans Peter Freyther Reviewed by Simon Hausmann. [Qt] JavaScript prompt is currently broken. https://bugs.webkit.org/show_bug.cgi?id=30914 Remove the manual test case in favor of an automated test case in WebKit/qt/tests/qwebpage. * manual-tests/qt/java-script-prompt.html: Removed. 2010-01-25 Janne Koskinen Reviewed by Simon Hausmann. [Qt] Phone backup support for QtWebkit for Symbian devices. https://bugs.webkit.org/show_bug.cgi?id=34077 * WebCore.pro: 2010-01-21 Thiago Macieira Reviewed by Simon Hausmann. [Qt] Fix incorrect dependency to QtXmlPatterns in generated include/QtWebKit/QtWebKit header The generated file includes QtXmlPatterns/QtXmlPatterns, which is neither used/required by the public QtWebKit API nor will it be available if Qt is configured with -no-xmlpatterns. * WebCore.pro: Trick syncqt to believe that xmlpatterns is not a dependency, so that it's not included in the generated file. It'll still be used and linked to with this trick. 2010-01-17 Srinidhi Shreedhara Reviewed by Simon Hausmann. [Qt] [Symbian] SetWindow call in npapi plugin does not happen when the cooridnates are negative https://bugs.webkit.org/show_bug.cgi?id=33573 * plugins/symbian/PluginViewSymbian.cpp: (WebCore::PluginView::setNPWindowIfNeeded): Remove tests for negative coordinates for early return. 2010-01-14 Norbert Leser Reviewed by Laszlo Gombos. Platform Symbian specific: Added time-based optimization (-Otime) and increased optimization level to -O3, conditionally for RVCT compiler (for ARM), for increasing performance (primarily affecting JavaScript execution). Default settings are -Ospace and -O2. No new tests needed because no new funtionality is introduced, only potential regression on existing tests needs to be evaluated. * WebCore.pro: 2010-01-13 Girish Ramakrishnan Reviewed by Simon Hausmann. [Qt/Win] Flash in QGraphicsWebView does not process hover correctly. https://bugs.webkit.org/show_bug.cgi?id=33591 Mouse hover does not work as expected with the flash in some sites. - http://www.bbc.co.uk/ Hover over the map - http://www.barbie.com/ Hover over the menu items (Games, Videos) The problem appears to be that Flash queries NPNVnetscapeWindow on every mouse hover. I do not how flash uses this value but returning 0 when flash is in windowless mode solves the problem (When using QGraphicsWebView we inject wmode opaque, thereby putting the plugin in windowless mode). * plugins/win/PluginViewWin.cpp: (windowHandleForPageClient): 2010-01-13 Miikka Heikkinen Reviewed by Simon Hausmann. [Qt/Symbian] Added missing vendor information to qtwebkit.sis This information is necessary to Symbian sign the package. http://bugreports.qt.nokia.com/browse/QTBUG-7290 * WebCore.pro: 2010-01-12 Jakub Wieczorek Reviewed by Adam Barth. [Qt] XSL stylesheets can load documents from a different origin https://bugs.webkit.org/show_bug.cgi?id=33423 * xml/XSLTProcessorQt.cpp: (WebCore::XSLTUriResolver::XSLTUriResolver): (WebCore::XSLTUriResolver::resolve): (WebCore::XSLTProcessor::transformToString): 2010-01-07 Yael Aharon Reviewed by Kenneth Rohde Christiansen. [Qt] Allow the application to override online/offline network status https://bugs.webkit.org/show_bug.cgi?id=32684 Added API to NetworkStateNotifier for forcing network status. * platform/network/NetworkStateNotifier.h: * platform/network/qt/NetworkStateNotifierPrivate.h: * platform/network/qt/NetworkStateNotifierQt.cpp: (WebCore::NetworkStateNotifierPrivate::NetworkStateNotifierPrivate): (WebCore::NetworkStateNotifierPrivate::onlineStateChanged): (WebCore::NetworkStateNotifierPrivate::networkAccessPermissionChanged): (WebCore::NetworkStateNotifier::updateState): (WebCore::NetworkStateNotifier::NetworkStateNotifier): (WebCore::NetworkStateNotifier::setNetworkAccessAllowed): 2010-01-07 Simon Hausmann Reviewed by Tor Arne Vestbø. [Qt] Fix linkage against Qt mobility API bearer management module Use the documented .pro file syntax to link against the correct library and (more importantly) get the include paths correct. * WebCore.pro: 2010-01-07 Laszlo Gombos Reviewed by NOBODY (OOPS!). [RVCT] ACID3 test crash https://bugs.webkit.org/show_bug.cgi?id=33280 Workaround developed by Yongjun Zhang. * dom/Element.cpp: (WebCore::Element::setAttribute): 2010-01-06 Simon Hausmann Unreviewed trivial Qt build fix. Prefix the phonon includes with phonon/ to avoid conflicts with the S60 audio routing API ( http://wiki.forum.nokia.com/index.php/Audio_Routing_API ). * platform/graphics/qt/MediaPlayerPrivatePhonon.cpp: 2009-12-31 Laszlo Gombos Reviewed by Kenneth Rohde Christiansen. Do not include Frame.h under WebCore/html/canvas https://bugs.webkit.org/show_bug.cgi?id=33082 No new tests, as there is no new functionality. * html/canvas/CanvasRenderingContext2D.cpp: 2009-12-30 Janne Koskinen Reviewed by Simon Hausmann. [Qt] Add support for Symbian def files * WebCore.pro: 2009-12-30 Simon Hausmann Unreviewed Qt/Symbian build fix. Don't build network state notifier support when building inside of Qt. Otherwise the Qt build depends on an external module that itself depends on Qt again. * WebCore.pro: 2009-12-30 Laszlo Gombos Reviewed by Simon Hausmann. Turn off DataGrid support by default. No new tests, as there is no new functionality. * WebCore.pro: 2009-12-17 Yael Aharon Reviewed by Kenneth Rohde Christiansen. [Qt] support navigator.onLine and ononline/onoffline events. https://bugs.webkit.org/show_bug.cgi?id=32555 Hooked up Bearer Management to NetworkStateNotifier. This solution is available only if QtMobility's Bearer Management is installed. * WebCore.pro: * platform/network/NetworkStateNotifier.h: * platform/network/qt/NetworkStateNotifierPrivate.h: Added. * platform/network/qt/NetworkStateNotifierQt.cpp: Added. (WebCore::NetworkStateNotifierPrivate::NetworkStateNotifierPrivate): (WebCore::NetworkStateNotifierPrivate::onlineStateChanged): (WebCore::NetworkStateNotifierPrivate::~NetworkStateNotifierPrivate): (WebCore::NetworkStateNotifier::updateState): (WebCore::NetworkStateNotifier::NetworkStateNotifier): 2009-12-17 Simon Hausmann Reviewed by Tor Arne Vestbø. [Qt] Symbian build fix: Don't include QtXml/qxmlstream.h but omit the prefix, to make sure we pick up the header file from QtCore. That is where the implementation is compiled. * dom/XMLTokenizer.h: 2009-12-14 Holger Hans Peter Freyther Reviewed by Kenneth Rohde Christiansen. [Qt] Add manual test for JavaScript prompt corner case https://bugs.webkit.org/show_bug.cgi?id=30914 The patch is based on the work done by Gupta Manish. Verify behavior of the JavaScript prompt function. Currently Qt is not behaving like other WebKit ports and Firefox in regards to accepting the prompt but not entering a text. * manual-tests/qt/java-script-prompt.html: Added. 2009-12-21 Andreas Kling Reviewed by Darin Adler. Fix assertion failure when dragging an SVG image. https://bugs.webkit.org/show_bug.cgi?id=32511 Test: fast/images/drag-svg-as-image.html * svg/graphics/SVGImage.cpp: (WebCore::SVGImage::filenameExtension): Return "svg" * svg/graphics/SVGImage.h: 2009-11-23 Simon Hausmann Reviewed by Kenneth Rohde Christiansen. [Qt] Wrong runtime instance objects of wrapped QObjects may be used if the wrapped object died before the gc removed the instance. https://bugs.webkit.org/show_bug.cgi?id=31681 Before using a cached instance, verify that its wrapped QObject is still alive. * bridge/qt/qt_instance.cpp: (JSC::Bindings::QtInstance::getQtInstance): * bridge/qt/qt_instance.h: (JSC::Bindings::QtInstance::hashKey): 2009-11-25 Jocelyn Turcotte Reviewed by Simon Hausmann. [Qt] Fix crash of QtWebKit on any page with Flash when compiled with MinGW. Fix inline assembly, don't dereference the function pointer twice. * plugins/win/PluginViewWin.cpp: (WebCore::PluginView::hookedBeginPaint): (WebCore::PluginView::hookedEndPaint): 2009-11-22 Jakub Wieczorek Reviewed by Adam Barth. [Qt] Remove the Referer header when redirecting to a non-secure site https://bugs.webkit.org/show_bug.cgi?id=31785 This makes Qt pass two tests introduced in r50226. * platform/network/qt/QNetworkReplyHandler.cpp: (WebCore::QNetworkReplyHandler::sendResponseIfNeeded): 2009-11-19 Olivier Goffart Reviewed by Simon Hausmann. [Qt] Normalize signal and slot signatures. * platform/graphics/qt/MediaPlayerPrivatePhonon.cpp: (WebCore::MediaPlayerPrivate::MediaPlayerPrivate): 2009-11-18 Benjamin Poulain Reviewed by Simon Hausmann. [Qt] WebKit crashes when loading certain SVG images Check if the familly exist before creating the PlatformData from it. https://bugs.webkit.org/show_bug.cgi?id=29443 Test: svg/text/text-font-invalid.html * platform/graphics/qt/FontFallbackListQt.cpp: (WebCore::FontFallbackList::fontDataAt): 2009-11-14 Antonio Gomes Reviewed by Antti Koivisto. [Qt] Broken back/forward after using ErrorPageExtension to set error page https://bugs.webkit.org/show_bug.cgi?id=30573 Make FrameLoader::checkLoadCompleteForThisFrame method to check for any working DocumentLoader instance (through activeDocumentLoader()) instead of only checking for 'm_provisionalDocumentLoader' in order to decide to if it is going to reset of not the back and forward history. after an error page has been loaded. Test: LayoutTests/fast/history/back-forward-reset-after-error-handling.html * loader/FrameLoader.cpp: (WebCore::FrameLoader::checkLoadCompleteForThisFrame): 2009-11-09 Laszlo Gombos Reviewed by Kenneth Rohde Christiansen. [Qt] Few classes have virtual functions but non-virtual destructor https://bugs.webkit.org/show_bug.cgi?id=31269 No new tests as there is no functional change. * platform/qt/QWebPageClient.h: (QWebPageClient::~QWebPageClient): Add virtual destructor. 2009-11-09 Yael Aharon Reviewed by Kenneth Rohde Christiansen. [Qt] Allow setting HTTP headers with empty value in XMLHTTPRequest https://bugs.webkit.org/show_bug.cgi?id=31140 QtNetwork interprets null string as request to remove the header, not add it. Replace null values with empty values before passing them to QtNetwork. Test: http/tests/xmlhttprequest/xmlhttprequest-setrequestheader-no-value.html * platform/network/qt/ResourceRequestQt.cpp: (WebCore::ResourceRequest::toNetworkRequest): 2009-11-05 Jakub Wieczorek Reviewed by Holger Freyther. [Qt] The XML tokenizer reports a parse error twice if it occurs before the document element is found. https://bugs.webkit.org/show_bug.cgi?id=31144 XMLTokenizer::doEnd() uses an additional logic to report a parse failure in documents that end prematurely but are not considered invalid by QXmlStream. This is to stay compatible with the libxml2 implementation. However, that code path would be also hit in situations when it should not, i.e. the error would have already been caught and handled. As a result, the same error would be reported twice. No new tests, because the problem is already covered by fast/parser/xml-declaration-missing-ending-mark.html. * dom/XMLTokenizerQt.cpp: (WebCore::XMLTokenizer::doEnd): 2009-11-05 Yuta Kitamura Reviewed by Eric Seidel. Fix ASSERT(currentStyle = renderStyle()). https://bugs.webkit.org/show_bug.cgi?id=31152 * dom/Element.cpp: (WebCore::Element::pseudoStyleCacheIsInvalid): We should have used "==" instead of "=". 2009-11-04 Yael Aharon Reviewed by Tor Arne Vestbø. [Qt] ASSERT failure when receiving 401 HTTP Authentication response. https://bugs.webkit.org/show_bug.cgi?id=31077 Allow sending the response body under the same conditions that we allow it to finish without reporting an error. * platform/network/qt/QNetworkReplyHandler.cpp: (WebCore::QNetworkReplyHandler::sendResponseIfNeeded): 2009-11-03 Evan Martin Reviewed by Darin Adler. Fix an off-by-one in the CSS lexer that causes memory corruption in hard-to-trigger circumstances. https://bugs.webkit.org/show_bug.cgi?id=30827 Test: fast/css/end-of-buffer-crash.html * css/maketokenizer: Add comments, fix off-by-one. 2009-11-02 Darin Adler Reviewed by Dan Bernstein. Crash due to double-destroy related to CSS run-in property https://bugs.webkit.org/show_bug.cgi?id=31034 rdar://problem/7328458 Test: fast/css/run-in-crash.html * rendering/RenderBlock.cpp: (WebCore::RenderBlock::destroy): Reorder destruction so the continuation is destroyed after anonymous children. See comment in the code for more details of why this is right. * rendering/RenderInline.cpp: (WebCore::RenderInline::destroy): Ditto. 2009-10-30 Kenneth Rohde Christiansen Reviewed by Holger Hans Peter Freyther. If the owner widget of the page has a palette set, we should use that one. This was only working when the owner was a QWebView. This patch fixes that. * platform/qt/RenderThemeQt.cpp: (WebCore::RenderThemeQt::applyTheme): 2009-10-29 Xan Lopez Reviewed by Oliver Hunt. [GTK] Threading problems with some of the tests https://bugs.webkit.org/show_bug.cgi?id=30814 Create strings shared among threads with crossThreadString constructor method. * storage/Database.cpp: (WebCore::Database::Database): 2009-10-30 Tor Arne Vestbø Reviewed by NOBODY (OOPS!). [Qt] Use the default timeout interval for JS as the HTML tokenizer delay for setHtml() This ensures that long-running JavaScript (for example due to a modal alert() dialog), will not trigger a deferred load after only 500ms (the default tokenizer delay) while still giving a reasonable timeout (10 seconds) to prevent deadlock. https://bugs.webkit.org/show_bug.cgi?id=29381 * html/HTMLTokenizer.cpp: Change debug output to print the actual tokenizer delay 2009-10-30 Tor Arne Vestbø Reviewed by NOBODY (OOPS!). Clear the initial request when loading synchronously to prevent duplicate loads MainResourceLoader uses the member m_initialRequest to store a request for future deferred loads. When doing a synchronous load, in handleDataLoadNow(), we therefore have to clear this request so that subsequent entries into the loader will not start yet another load. This can for example happen in setDefersLoading() as a result of a PageGroupLoadDeferrer going out of scope when returning from Chrome::runJavaScriptAlert(), where the alert() came from a script executed as part of the first/original load. https://bugs.webkit.org/show_bug.cgi?id=30879 * loader/MainResourceLoader.cpp: (WebCore::MainResourceLoader::handleDataLoadNow): clear m_initialRequest 2009-11-04 Jocelyn Turcotte Reviewed by Timothy Hatcher. WebInspector: Use a different method to identify the webkit port in InspectorBackent::platform(). This corrects the inspector expected behavior with Qt on Windows. https://bugs.webkit.org/show_bug.cgi?id=31116 * inspector/InspectorBackend.cpp: (WebCore::InspectorBackend::platform): (WebCore::InspectorBackend::port): * inspector/InspectorBackend.h: * inspector/InspectorBackend.idl: * inspector/front-end/InspectorControllerStub.js: (.WebInspector.InspectorControllerStub.prototype.port): * inspector/front-end/inspector.css: * inspector/front-end/inspector.js: (WebInspector.loaded): (WebInspector.toolbarDragStart): 2009-11-12 Benjamin Poulain Reviewed by Kenneth Rohde Christiansen. Custom printing shrink factors https://bugs.webkit.org/show_bug.cgi?id=29042 This reverts commit r49769. The public API for this needs to be reviewed before its inclusion in Qt. * page/PrintContext.cpp: (WebCore::PrintContext::begin): * page/Settings.cpp: (WebCore::Settings::Settings): * page/Settings.h: 2009-11-09 Norbert Leser Reviewed by Kenneth Rohde Christiansen. Moved macro MMP_RULES (LINKEROPTION) into symbian instead of symbian-sbsv2, since adjustment of RW-section base address will be needed for all new symbian tool chains, specifically for arm and gcc compilation targets. Also, change target address to 0xE00000 to be sufficient for all targets. * WebCore.pro: 2009-11-11 Jocelyn Turcotte Reviewed by Eric Seidel. [Qt] Make the default style background color valid. Currently the color is transparent but invalid, this causes list boxes in QtWebKit to be drawn with a black background since r49242. https://bugs.webkit.org/show_bug.cgi?id=31295 * rendering/style/RenderStyle.h: (WebCore::InheritedFlags::initialBackgroundColor): * rendering/style/StyleBackgroundData.cpp: (WebCore::StyleBackgroundData::StyleBackgroundData): 2009-11-11 Simon Hausmann Reviewed by Tor Arne Vestbø. Introduce a function for querying the input method status in QWebPageClient. * platform/qt/QWebPageClient.h: 2009-11-09 Yael Aharon Reviewed by Kenneth Rohde Christiansen. [Qt] Pass credentials provided by XMLHTTPRequest to the network request. https://bugs.webkit.org/show_bug.cgi?id=31208 After r42483, the credentials are no longer passed to the network request in the URL of the request. Pass the credentials from XMLHTTPRequest to the network request, the same way that other ports do. After this patch LayoutTests/http/xmlhttprequest/basic-auth.html passes. * platform/network/qt/ResourceHandleQt.cpp: (WebCore::ResourceHandle::start): (WebCore::ResourceHandle::loadResourceSynchronously): 2009-11-03 Simon Hausmann Unreviewed build fix for WebInspector with Qt build. Simply re-generate the Qt resource file by running WebKitTools/Scripts/generate-qt-inspector-resource * inspector/front-end/WebKit.qrc: 2009-11-03 Simon Hausmann Reviewed by Tor Arne Vestbø. Make QWebPluginDatabase private API for now. https://bugs.webkit.org/show_bug.cgi?id=30775 * WebCore.pro: 2009-11-03 Simon Hausmann Reviewed by Tor Arne Vestbø. Extended the conversion of the WebCore ResourceRequest to the QNetworkRequest with a mandatory originating object argument, which is meant to be the QWebFrame the request belongs to. https://bugs.webkit.org/show_bug.cgi?id=29975 * platform/network/qt/QNetworkReplyHandler.cpp: (WebCore::QNetworkReplyHandler::QNetworkReplyHandler): (WebCore::QNetworkReplyHandler::sendResponseIfNeeded): (WebCore::QNetworkReplyHandler::start): * platform/network/qt/ResourceRequest.h: * platform/network/qt/ResourceRequestQt.cpp: (WebCore::ResourceRequest::toNetworkRequest): 2009-11-02 Jedrzej Nowacki Reviewed by Adam Barth. QWebView crash fix. The QWebView should not crash if the stop() method is called from a function triggered by the loadProgress signal. A null pointer protection was added in the ProgressTracker::incrementProgress. New autotest was created. https://bugs.webkit.org/show_bug.cgi?id=29425 * loader/ProgressTracker.cpp: (WebCore::ProgressTracker::incrementProgress): 2009-11-02 Kai Koehne Reviewed by Holger Freyther. Remove implementation of ImageDecocerQt::clearFrameBufferCache. The implementation was buggy, and will visually break repeating animations anyway. https://bugs.webkit.org/show_bug.cgi?id=31009 * platform/graphics/qt/ImageDecoderQt.cpp: (WebCore::ImageDecoderQt::clearFrameBufferCache): 2009-11-01 Yael Aharon Reviewed by Darin Adler. Don't add '/' to the URL path if the it does not include '/' after the protocol component https://bugs.webkit.org/show_bug.cgi?id=30971 Match IE8 behaviour, that does not add '/' if there is none after the protocol component. * platform/KURL.cpp: (WebCore::KURL::parse): 2009-10-30 Kenneth Rohde Christiansen Reviewed by Holger Hans Peter Freyther. If the owner widget of the page has a palette set, we should use that one. This was only working when the owner was a QWebView. This patch fixes that. * platform/qt/RenderThemeQt.cpp: (WebCore::RenderThemeQt::applyTheme): 2009-10-29 Laszlo Gombos Reviewed by Tor Arne Vestbø. [Qt] Implement DELETE HTTP method for XmlHttpRequest https://bugs.webkit.org/show_bug.cgi?id=30894 No new tests as this functionality is already tested by the xmlhttprequest LayoutTests. As this patch depends on an unreleased version of the dependent QtNetwork library and the tests will be enabled later once the dependent library is released (and the buildbot is updated). * platform/network/qt/QNetworkReplyHandler.cpp: (WebCore::QNetworkReplyHandler::QNetworkReplyHandler): (WebCore::QNetworkReplyHandler::start): 2009-11-02 Tor Arne Vestbø Rubber-stamped by Antti Koivisto. [Qt] Build fix for Windows CE * plugins/PluginDatabase.cpp: 2009-11-02 Jocelyn Turcotte Reviewed by Tor Arne Vestbø. [Qt] Fix Qt build on Windows. https://bugs.webkit.org/show_bug.cgi?id=30905 * WebCore.pro: * platform/graphics/BitmapImage.h: * platform/graphics/qt/ImageQt.cpp: (WebCore::BitmapImage::BitmapImage): (WebCore::BitmapImage::create): 2009-10-28 Adam Barth Reviewed by Eric Seidel. Don't run JavaScript URLs in view source mode https://bugs.webkit.org/show_bug.cgi?id=30881 Just say no. Test: http/tests/security/view-source-no-javascript-url.html * bindings/ScriptControllerBase.cpp: (WebCore::ScriptController::executeIfJavaScriptURL): 2009-10-29 Gustavo Noronha Silva Unreviewed. Fixes style problems pointed out by Evan Martin. * platform/gtk/Language.cpp: (WebCore::defaultLanguage): 2009-10-29 Dan Bernstein Rubber-stamped by Mark Rowe. 64-bit Leopard build fix after r50259 * platform/graphics/mac/ComplexTextControllerATSUI.cpp: Declared ATSUTextInserted in 64-bit. (WebCore::fontHasMirroringInfo): Use %d format and cast to int. (WebCore::disableLigatures): Ditto. (WebCore::initializeATSUStyle): Ditto. (WebCore::ComplexTextController::collectComplexTextRunsForCharacters): Ditto. 2009-10-29 Dan Bernstein Tiger build fix after r50259 * platform/graphics/mac/ComplexTextController.h: * platform/graphics/mac/ComplexTextControllerATSUI.cpp: 2009-10-29 Dan Bernstein Attempted Tiger build fix after r50259 * platform/graphics/mac/ComplexTextControllerATSUI.cpp: 2009-10-28 Steve Falkenburg Rubber stamped by Mark Rowe. https://bugs.webkit.org/show_bug.cgi?id=30899 WebKit fails to build release on 32-bit Windows systems * WebCore.vcproj/WebCore.vcproj: Excluded files from project. * bindings/js/JSBindingsAllInOne.cpp: Added. 2009-10-28 Dan Bernstein Reviewed by Jon Honeycutt. Fixed typos in color names. * inspector/front-end/Color.js: 2009-10-28 Dan Bernstein Reviewed by Sam Weinig. Share code between the ATSUI- and Core Text-based Font implementations by doing the following: - Generalize CoreTextController as ComplexTextController, keeping the Core Text-specific parts in ComplexTextControllerCoreText.cpp. - Generalize FontMacCoreText as FontComplexTextMac using ComplexTextController - Implement ATSUI-specific parts of ComplexTextController in ComplexTextControllerATSUI. - Remove FontMacATSUI. * WebCore.xcodeproj/project.pbxproj: Removed CoreTextController.{cpp,h}, FontMacATSUI.mm, and FontMacCoreText.cpp, and added ComplexTextController.{cpp,h}, ComplexTextControllerATSUI.cpp, ComplexTextControllerCoreText.cpp, and FontComplexTextMac.cpp. * platform/graphics/mac/ComplexTextController.cpp: Copied from CoreTextController.cpp and kept the non-Core Text-specific bits. (WebCore::ComplexTextController::ComplexTextController): Updated for renames, including its own. (WebCore::ComplexTextController::offsetForPosition): Updated for renames and for m_complexTextRuns holding references instead of objects. (WebCore::ComplexTextController::collectComplexTextRuns): Updated for renames, including its own. (WebCore::ComplexTextController::advance): Updated for renames. (WebCore::ComplexTextController::adjustGlyphsAndAdvances): Updated for renames and for m_complexTextRuns holding references instead of objects, and changed to use the glyphs() and advances() accessors. * platform/graphics/mac/ComplexTextController.h: Copied from CoreTextController.h and renamed CoreTextController to ComplexTextController and CoreTextRun to ComplexTextRun. Made the latter RefCounted, added ATSUI-specific members to it, and made some other members Core Text-specific. Renamed m_coreTextRuns to m_complexTextRuns and made it hold references rather than objects. (WebCore::ComplexTextController::ComplexTextRun::create): (WebCore::ComplexTextController::ComplexTextRun::glyphs): (WebCore::ComplexTextController::ComplexTextRun::advances): * platform/graphics/mac/ComplexTextControllerATSUI.cpp: Added. Includes ATSUI-specific parts of the ComplexTextController implementation. (WebCore::ComplexTextController::ComplexTextRun::overrideLayoutOperation): This ATSUI callback populates the ComplexTextRun’s glyphs, advances and indices vectors. It is invoked when the ComplexTextRun constructor calls ATSUGetGlyphBounds(). (WebCore::isArabicLamWithAlefLigature): Helper function, copied from FontMacATSUI.mm. (WebCore::shapeArabic): Helper function, adapted from FontMacATSUI.mm. (WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun): Sets up the ATSUTextLayout, substituting the text buffer if necessary for things like shaping Arabic, mirroring glyphs or directionality overrides, then calls ATSUGetGlyphBounds() in order to get the glyphs, advances and indices vectors populated. (WebCore::fontHasMirroringInfo): Helper function, copied from FontMacATSUI.mm. (WebCore::disableLigatures): Ditto. (WebCore::initializeATSUStyle): Ditto, somewhat cleaned up and simplified. (WebCore::ComplexTextController::collectComplexTextRunsForCharacters): Constructs ComplexTextRuns, either missing-glyphs ones or ATSUTextLayout-based ones. * platform/graphics/mac/ComplexTextControllerCoreText.cpp: Copied from CoreTextController.cpp and kept the Core Text-specific bits. (WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun): Updated for renames, including its own, and moved the code to initialize m_glyphs and m_advances here. Previously this was done in adjustGlyphsAndAdvances(). (WebCore::ComplexTextController::collectComplexTextRunsForCharacters): Updated for renames, including its own. * platform/graphics/mac/CoreTextController.cpp: Removed. * platform/graphics/mac/CoreTextController.h: Removed. * platform/graphics/mac/FontComplexTextMac.cpp: Renamed FontMacCoreText.cpp to this. (WebCore::Font::selectionRectForComplexText): Changed to use ComplexTextController instead of CoreTextController. (WebCore::Font::drawComplexText): Ditto. (WebCore::Font::floatWidthForComplexText): Ditto. (WebCore::Font::offsetForPositionForComplexText): Ditto. * platform/graphics/mac/FontMacATSUI.mm: Removed. * platform/graphics/mac/FontMacCoreText.cpp: Removed. 2009-10-27 Chris Fleizach Reviewed by Darin Adler. WAI-ARIA: add support for 'option' role https://bugs.webkit.org/show_bug.cgi?id=30843 Test: accessibility/aria-option-role.html * accessibility/AccessibilityListBoxOption.h: (WebCore::AccessibilityListBoxOption::canHaveChildren): * accessibility/AccessibilityRenderObject.cpp: (WebCore::RoleEntry::): (WebCore::AccessibilityRenderObject::canHaveChildren): 2009-10-28 Jens Alfke Reviewed by Eric Seidel. Fix GCC compiler warnings in WebCore, and enable -Wall and -Werror for Chromium build. https://bugs.webkit.org/show_bug.cgi?id=30716 * WebCore.gyp/WebCore.gyp: Enable "chromium_code" flag, just on Mac build for now. * accessibility/AccessibilityRenderObject.cpp: (WebCore::createARIARoleMap): Fix struct visibiity warning. * bindings/v8/ScriptCallStack.h: Fix out-of-order member initialization warning. * bindings/v8/V8Collection.h: (WebCore::getV8Object): Function in header should not be 'static' (fixes unused-static warning.) * bindings/v8/V8DOMWrapper.cpp: (WebCore::V8DOMWrapper::convertNewNodeToV8Object): Fix signed/unsigned comparison warning. * bindings/v8/V8GCController.cpp: (WebCore::ObjectGrouperVisitor::applyGrouping): Fix unused-variable warning. * css/CSSPrimitiveValueMappings.h: (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): Enable ListButtonPart case to avoid warning about missing cases in 'switch' statement. * editing/EditorCommand.cpp: (WebCore::createCommandMap): Fix struct visibiity warning. * platform/graphics/skia/PlatformContextSkia.cpp: (PlatformContextSkia::State::State): Fix out-of-order member initialization warning. * rendering/RenderMediaControlsChromium.cpp: (WebCore::RenderMediaControlsChromium::shouldRenderMediaControlPart): Add empty 'default' case in 'switch' statement to avoid missing-case warning. (WebCore::RenderMediaControlsChromium::paintMediaControlsPart): Ditto. * xml/XPathFunctions.cpp: (WebCore::XPath::createFunctionMap): Fix struct visibiity warning. 2009-10-29 Adam Barth Reviewed by Darin Adler. REGRESSION: crashes in WebCore::RedirectScheduler::timerFired(WebCore::Timer*) https://bugs.webkit.org/show_bug.cgi?id=30839 Added null check for the case when the frame is detached from the page. * loader/RedirectScheduler.cpp: (WebCore::RedirectScheduler::timerFired): 2009-10-28 Joanmarie Diggs Reviewed by Xan Lopez. https://bugs.webkit.org/show_bug.cgi?id=30817 Use parentObjectUnignored instead of parentObject in webkit_accessible_get_parent Also removes the hack I had originally added to solve bug 25411, because the fix here is what I should have done in the first place. * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp: (webkit_accessible_get_parent): 2009-10-28 Dmitry Titov Reviewed by David Levin. https://bugs.webkit.org/show_bug.cgi?id=30805 Add MessageQueue::removeIf(Predicate&) to remove certain tasks without pulling them from the queue. Existing Database tests cover this, no change in functionality. * storage/DatabaseThread.cpp: (WebCore::SameDatabasePredicate::SameDatabasePredicate): Added predicate that flags the tasks belonging to a specified database. (WebCore::SameDatabasePredicate::operator()): (WebCore::DatabaseThread::unscheduleDatabaseTasks): changed to use the new removeIf method. 2009-10-28 Pavel Feldman Reviewed by Timothy Hatcher. Web Inspector: Glue subsequent timeline records with same category and title together. https://bugs.webkit.org/show_bug.cgi?id=30885 * English.lproj/localizedStrings.js: * inspector/front-end/TimelinePanel.js: (WebInspector.TimelinePanel.prototype.addRecordToTimeline): (WebInspector.TimelinePanel.prototype._formatRecord): (WebInspector.TimelineRecordTreeElement.prototype.onattach): (WebInspector.TimelineRecordTreeElement.prototype.refresh): 2009-10-28 Gustavo Noronha Silva Reviewed by Xan Lopez. [GTK] Fails new test fast/js/navigator-language.html https://bugs.webkit.org/show_bug.cgi?id=30440 Reimplement WebCore::defaultLanguage to account for changes in locale done by setLocale. Already existing test: fast/js/navigator-language.html * platform/gtk/Language.cpp: (WebCore::defaultLanguage): 2009-10-28 Eric Carlson Reviewed by Simon Fraser. Can't exit full screen mode or restart movie after pressing command -R. * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::removedFromDocument): (WebCore::HTMLMediaElement::documentWillBecomeInactive): Exit from fullscreen if necessary. * html/HTMLMediaElement.h: 2009-10-28 Alexey Proskuryakov Unreviewed - a trivial fix to get Windows bots running. https://bugs.webkit.org/show_bug.cgi?id=30841 WebKit should not pass Referer header through a redirect to a non-secure site * platform/network/cf/ResourceRequestCFNet.cpp: (WebCore::setHeaderFields): Don't try to access empty vector's data. 2009-10-28 Joanmarie Diggs Reviewed by Xan Lopez. https://bugs.webkit.org/show_bug.cgi?id=25897 [Gtk] Extraneous object of ROLE_PANEL in hierarchy for entries Remove the extraneous object of ROLE_PANEL. * accessibility/gtk/AccessibilityObjectAtk.cpp: (AccessibilityObject::accessibilityPlatformIncludesObject): 2009-10-28 Jonathan Dixon Reviewed by Eric Seidel. Bug 30547: (Chromium) searchbox not rendered properly due to the css property -webkit-border-radius https://bugs.webkit.org/show_bug.cgi?id=30547 Test: fast/css/text-input-with-webkit-border-radius.html * rendering/RenderThemeChromiumWin.cpp: (WebCore::RenderThemeChromiumWin::paintTextFieldInternal): Implemented rounded border rendering in Chromium Windows theme renderer. 2009-10-28 Pavel Feldman Reviewed by Timothy Hatcher. Web Inspector: Pull items collections from resources panel and timeline panel into AbstractTimelinePanel. https://bugs.webkit.org/show_bug.cgi?id=30875 * inspector/front-end/AbstractTimelinePanel.js: (WebInspector.AbstractTimelinePanel): (WebInspector.AbstractTimelinePanel.prototype.populateSidebar): (WebInspector.AbstractTimelinePanel.prototype.createItemTreeElement): (WebInspector.AbstractTimelinePanel.prototype.createItemGraph): (WebInspector.AbstractTimelinePanel.prototype._showCategory): (WebInspector.AbstractTimelinePanel.prototype._hideCategory): (WebInspector.AbstractTimelinePanel.prototype.filter): (WebInspector.AbstractTimelinePanel.prototype._createGraph): (WebInspector.AbstractTimelinePanel.prototype.updateMainViewWidth): (WebInspector.AbstractTimelinePanel.prototype.refresh): (WebInspector.AbstractTimelinePanel.prototype.reset): (WebInspector.AbstractTimelinePanel.prototype.get calculator): (WebInspector.AbstractTimelinePanel.prototype.set calculator): (WebInspector.AbstractTimelinePanel.prototype.addItem): (WebInspector.AbstractTimelinePanel.prototype.removeItem): (WebInspector.AbstractTimelinePanel.prototype.refreshItem): (WebInspector.AbstractTimelinePanel.prototype.revealAndSelectItem): (WebInspector.AbstractTimelinePanel.prototype.sortItems): (WebInspector.AbstractTimelinePanel.prototype.adjustScrollPosition): (WebInspector.AbstractTimelineCategory): (WebInspector.AbstractTimelineCategory.prototype.toString): * inspector/front-end/ResourceCategory.js: (WebInspector.ResourceCategory): * inspector/front-end/ResourcesPanel.js: (WebInspector.ResourcesPanel): (WebInspector.ResourcesPanel.prototype.createItemTreeElement): (WebInspector.ResourcesPanel.prototype.createItemGraph): (WebInspector.ResourcesPanel.prototype.isCategoryVisible): (WebInspector.ResourcesPanel.prototype.populateSidebar): (WebInspector.ResourcesPanel.prototype.get searchableViews): (WebInspector.ResourcesPanel.prototype.get searchResultsSortFunction.sortFuction): (WebInspector.ResourcesPanel.prototype.get searchResultsSortFunction): (WebInspector.ResourcesPanel.prototype.searchMatchFound): (WebInspector.ResourcesPanel.prototype.searchCanceled): (WebInspector.ResourcesPanel.prototype.performSearch): (WebInspector.ResourcesPanel.prototype.refresh): (WebInspector.ResourcesPanel.prototype.reset): (WebInspector.ResourcesPanel.prototype.removeResource): (WebInspector.ResourcesPanel.prototype.addMessageToResource): (WebInspector.ResourcesPanel.prototype.clearMessages): (WebInspector.ResourcesPanel.prototype.refreshResource): (WebInspector.ResourcesPanel.prototype.recreateViewForResourceIfNeeded): (WebInspector.ResourcesPanel.prototype.showResource): (WebInspector.ResourcesPanel.prototype._sortResourcesIfNeeded): (WebInspector.ResourcesPanel.prototype._toggleLargerResources): (WebInspector.ResourcesPanel.prototype._toggleResourceTracking): (WebInspector.ResourcesPanel.prototype.get _resources): (WebInspector.ResourceTimeCalculator.prototype._upperBound): * inspector/front-end/TimelinePanel.js: (WebInspector.TimelinePanel): (WebInspector.TimelinePanel.prototype.get categories): (WebInspector.TimelinePanel.prototype.populateSidebar): (WebInspector.TimelinePanel.prototype.addRecordToTimeline): (WebInspector.TimelinePanel.prototype.createItemTreeElement): (WebInspector.TimelinePanel.prototype.createItemGraph): (WebInspector.TimelinePanel.prototype._formatRecord): (WebInspector.TimelineCategory): * inspector/front-end/inspector.css: * inspector/front-end/inspector.html: 2009-10-28 Kelly Norton Reviewed by Pavel Feldman. Resets InspectorFrontend in InspectorTimelineAgent instead of removing it so that it remains active on refreshs and page transitions. https://bugs.webkit.org/show_bug.cgi?id=30874 * inspector/InspectorController.cpp: (WebCore::InspectorController::setFrontendProxyObject): * inspector/InspectorTimelineAgent.cpp: (WebCore::InspectorTimelineAgent::resetFrontendProxyObject): * inspector/InspectorTimelineAgent.h: 2009-10-27 Shinichiro Hamaji Reviewed by Darin Adler. Provide a way to get counter values with layoutTestContoller https://bugs.webkit.org/show_bug.cgi?id=30555 Expose WebCore::counterValueForElement as a WebCore API. * WebCore.base.exp: * rendering/RenderTreeAsText.cpp: (WebCore::writeCounterValuesFromChildren): (WebCore::counterValueForElement): * rendering/RenderTreeAsText.h: 2009-10-28 Nate Chapin Unreviewed, Chromium build fix for r50225. * loader/FrameLoader.cpp: (WebCore::FrameLoader::defaultObjectContentType): 2009-10-28 Eric Z. Ayers Reviewed by Pavel Feldman. Adds InspectorTimelineAgent instrumentation for encountering a