WebKit-https.git
12 years agoSafari crashes when calling execCommand on formatted html in special case
enrica@apple.com [Tue, 3 Nov 2009 01:06:26 +0000 (01:06 +0000)]
Safari crashes when calling execCommand on formatted html in special case
<rdar://problem/7318656>
https://bugs.webkit.org/show_bug.cgi?id=31023

Reviewed by Adele Peterson and Dan Bernstein.

WebCore:

Test: editing/execCommand/align-in-span.html

* rendering/RenderObject.cpp:
(WebCore::RenderObject::containingBlock): Modified comment on containingBlock returning NULL.
* rendering/RenderText.cpp:
(WebCore::RenderText::setSelectionState): Added check for NULL return from containingBlock,
since it is possible when dealing with orphaned trees.

LayoutTests:

* editing/execCommand/align-in-span-expected.txt: Added.
* editing/execCommand/align-in-span.html: Added.

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

12 years ago Exception checks were being too aggressive
cmarrin@apple.com [Tue, 3 Nov 2009 00:04:29 +0000 (00:04 +0000)]
    Exception checks were being too aggressive
        https://bugs.webkit.org/show_bug.cgi?id=31005

        Several calls in CanvasRenderingContext3D are allowed to
        have a null value passed, which indicated that the
        object is being unbound. Handle this case and the corresponding
        null handling in GraphicsContext3DMac.

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

12 years ago2009-11-02 Patrick Mueller <Patrick_Mueller@us.ibm.com>
eric@webkit.org [Mon, 2 Nov 2009 22:53:45 +0000 (22:53 +0000)]
2009-11-02  Patrick Mueller  <Patrick_Mueller@us.ibm.com>

        Reviewed by Timothy Hatcher.

        Each JS execution in console adds extra item into "scripts" combo
        https://bugs.webkit.org/show_bug.cgi?id=30212

        Added manual test

        * inspector/front-end/ScriptsPanel.js:
        (WebInspector.ScriptsPanel.prototype._showScriptOrResource):
        * manual-tests/inspector/hidden-evals.html: Added.

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

12 years ago2009-11-02 Estêvão Samuel Procópio <tevaum@gmail.com>
eric@webkit.org [Mon, 2 Nov 2009 22:26:00 +0000 (22:26 +0000)]
2009-11-02  Estêvão Samuel Procópio  <tevaum@gmail.com>

        Reviewed by Gustavo Noronha.

        [Build] make install ignores --prefix option for gobject-introspection.
        https://bugs.webkit.org/show_bug.cgi?id=31025

        Make the build system use the --prefix path also when installing
        gobject-introspection files.

        * configure.ac: use --prefix path in GITDIR and GIRTYPELIBDIR

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

12 years ago2009-11-02 Eric Carlson <eric.carlson@apple.com>
eric.carlson@apple.com [Mon, 2 Nov 2009 22:03:38 +0000 (22:03 +0000)]
2009-11-02  Eric Carlson  <eric.carlson@apple.com>

        Reviewed by John Sullivan and Mark Rowe.

        <rdar://problem/7356733> Voiceover does not read correct media controller time values

        Fix localized strings for media controller time values.

        * English.lproj/Localizable.strings:

2009-11-02  Eric Carlson  <eric.carlson@apple.com>

        Reviewed by John Sullivan and Mark Rowe.

        <rdar://problem/7356733> Voiceover does not read correct media controller time values

        * WebCoreSupport/WebViewFactory.mm:
        (-[WebViewFactory localizedMediaTimeDescription:]):

2009-11-02  Eric Carlson  <eric.carlson@apple.com>

        Reviewed by John Sullivan and Mark Rowe.

        <rdar://problem/7356733> Voiceover does not read correct media controller time values

        * WebCoreLocalizedStrings.cpp:
        (WebCore::localizedMediaTimeDescription):

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

12 years ago2009-11-02 Kelly Norton <knorton@google.com>
eric@webkit.org [Mon, 2 Nov 2009 22:02:33 +0000 (22:02 +0000)]
2009-11-02  Kelly Norton  <knorton@google.com>

        Reviewed by Timothy Hatcher.

        Adds a missed case for InspectorTimeline, DOMWindow dispatch of DOM events.
        https://bugs.webkit.org/show_bug.cgi?id=31030

        * dom/Node.cpp:
        (WebCore::eventHasListeners): Checks DOMWindow for listeners.
        (WebCore::Node::dispatchGenericEvent):

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

12 years agoRemove threadsafe refcounting from tasks used with WTF::MessageQueue.
dimich@chromium.org [Mon, 2 Nov 2009 21:31:22 +0000 (21:31 +0000)]
Remove threadsafe refcounting from tasks used with WTF::MessageQueue.
https://bugs.webkit.org/show_bug.cgi?id=30612

Reviewed by David Levin.

JavaScriptCore:

* wtf/MessageQueue.h:
(WTF::MessageQueue::alwaysTruePredicate):
(WTF::MessageQueue::~MessageQueue):
(WTF::MessageQueue::append):
(WTF::MessageQueue::appendAndCheckEmpty):
(WTF::MessageQueue::prepend):
(WTF::MessageQueue::waitForMessage):
(WTF::MessageQueue::waitForMessageFilteredWithTimeout):
(WTF::MessageQueue::tryGetMessage):
(WTF::MessageQueue::removeIf):
The MessageQueue is changed to act as a queue of OwnPtr<DataType>. It takes ownership
of posted tasks and passes it to the new owner (in another thread) when the task is fetched.
All methods have arguments of type PassOwnPtr<DataType> and return the same type.

* wtf/Threading.cpp:
(WTF::createThread):
Superficial change to trigger rebuild of JSC project on Windows,
workaround for https://bugs.webkit.org/show_bug.cgi?id=30890

WebCore:

No new tests since no new functionality. Storage, MessagePorts and Workers tests cover this.

There are a lot of files but most changes are simply replace RefPtr and PassRefPtr with
OwnPtr and PassOwnPtr when dealing with Tasks.

ScriptExecutionContext::Task, DatabaseTask and WorkerRunLoop::Task are no longer
threadsafe refcounted, but simply Noncopyable.

* dom/Document.cpp:
(WebCore::ScriptExecutionContextTaskTimer::ScriptExecutionContextTaskTimer):
(WebCore::PerformTaskContext::PerformTaskContext):
(WebCore::Document::postTask):
* dom/Document.h:
* dom/ScriptExecutionContext.cpp:
(WebCore::ProcessMessagesSoonTask::create):
* dom/ScriptExecutionContext.h:
* dom/default/PlatformMessagePortChannel.cpp:
(WebCore::PlatformMessagePortChannel::tryGetMessageFromRemote):
* dom/default/PlatformMessagePortChannel.h:
(WebCore::PlatformMessagePortChannel::MessagePortQueue::tryGetMessage):
(WebCore::PlatformMessagePortChannel::MessagePortQueue::appendAndCheckEmpty):
* loader/FrameLoader.cpp:
(WebCore::HashChangeEventTask::create):
* loader/appcache/ApplicationCacheGroup.cpp:
(WebCore::CallCacheListenerTask::create):
* storage/Database.cpp:
(WebCore::Database::openAndVerifyVersion):
(WebCore::Database::markAsDeletedAndClose):
(WebCore::Database::scheduleTransaction):
(WebCore::Database::scheduleTransactionStep):
(WebCore::Database::tableNames):
* storage/DatabaseTask.h:
(WebCore::DatabaseOpenTask::create):
(WebCore::DatabaseCloseTask::create):
(WebCore::DatabaseTransactionTask::create):
(WebCore::DatabaseTableNamesTask::create):
* storage/DatabaseThread.cpp:
(WebCore::DatabaseThread::databaseThread):
(WebCore::DatabaseThread::scheduleTask):
(WebCore::DatabaseThread::scheduleImmediateTask):
(WebCore::SameDatabasePredicate::operator()):
* storage/DatabaseThread.h:
* storage/LocalStorageTask.h:
(WebCore::LocalStorageTask::createImport):
(WebCore::LocalStorageTask::createSync):
(WebCore::LocalStorageTask::createTerminate):
* storage/LocalStorageThread.cpp:
(WebCore::LocalStorageThread::localStorageThread):
* storage/LocalStorageThread.h:
* websockets/WebSocket.cpp:
(WebCore::ProcessWebSocketEventTask::create):
* workers/DefaultSharedWorkerRepository.cpp:
(WebCore::SharedWorkerProxy::postTaskToLoader):
(WebCore::SharedWorkerProxy::postTaskForModeToWorkerContext):
(WebCore::SharedWorkerConnectTask::create):
* workers/GenericWorkerTask.h:
(WebCore::GenericWorkerTask1::create):
(WebCore::GenericWorkerTask2::create):
(WebCore::GenericWorkerTask3::create):
(WebCore::GenericWorkerTask4::create):
(WebCore::GenericWorkerTask5::create):
(WebCore::GenericWorkerTask6::create):
(WebCore::GenericWorkerTask7::create):
(WebCore::GenericWorkerTask8::create):
(WebCore::createCallbackTask):
* workers/WorkerContext.cpp:
(WebCore::WorkerContext::postTask):
* workers/WorkerContext.h:
* workers/WorkerLoaderProxy.h:
* workers/WorkerMessagingProxy.cpp:
(WebCore::MessageWorkerContextTask::create):
(WebCore::MessageWorkerTask::create):
(WebCore::WorkerExceptionTask::create):
(WebCore::WorkerContextDestroyedTask::create):
(WebCore::WorkerTerminateTask::create):
(WebCore::WorkerThreadActivityReportTask::create):
(WebCore::WorkerMessagingProxy::postTaskForModeToWorkerContext):
(WebCore::WorkerMessagingProxy::postTaskToLoader):
(WebCore::WorkerMessagingProxy::workerThreadCreated):
* workers/WorkerMessagingProxy.h:
* workers/WorkerRunLoop.cpp:
(WebCore::ModePredicate::operator()):
(WebCore::WorkerRunLoop::runInMode):
(WebCore::WorkerRunLoop::postTask):
(WebCore::WorkerRunLoop::postTaskForMode):
(WebCore::WorkerRunLoop::Task::create):
(WebCore::WorkerRunLoop::Task::performTask):
(WebCore::WorkerRunLoop::Task::Task):
* workers/WorkerRunLoop.h:
(WebCore::WorkerRunLoop::Task::~Task):
(WebCore::WorkerRunLoop::Task::mode):

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

12 years agoMade the remaining time display show negative zero at the end of the
mitz@apple.com [Mon, 2 Nov 2009 21:14:00 +0000 (21:14 +0000)]
Made the remaining time display show negative zero at the end of the
video.

Reviewed by Anders Carlsson.

Made other cleanup.

* WebView/WebVideoFullscreenHUDWindowController.h: Reverted the types of
_timeline and _volumeSlider to the more generic NSControl.
* WebView/WebVideoFullscreenHUDWindowController.mm:
(-[WebVideoFullscreenHUDWindowController scheduleTimeUpdate]): Cleaned
up style.
(-[WebVideoFullscreenHUDWindowController windowDidLoad]): Added an
assertion that the cast to NSButton * is legal. Removed casts.
(-[WebVideoFullscreenHUDWindowController updateTime]): Use
-setValue:forKey: instead of an NSSlider method.
(timeToString): Changed to support only non-negative values and
simplified.
(-[WebVideoFullscreenHUDWindowController remainingTimeText]): Always
prepend a “-” to the time.

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

12 years ago2009-11-02 Philippe Normand <pnormand@igalia.com>
eric@webkit.org [Mon, 2 Nov 2009 20:14:35 +0000 (20:14 +0000)]
2009-11-02  Philippe Normand  <pnormand@igalia.com>

        Reviewed by Jan Alonzo.

        [GTK] Failing media/video-played-reset.html
        https://bugs.webkit.org/show_bug.cgi?id=30589

        * platform/gtk/Skipped: Unskip fixed test.

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

12 years ago2009-11-02 Philippe Normand <pnormand@igalia.com>
eric@webkit.org [Mon, 2 Nov 2009 19:34:17 +0000 (19:34 +0000)]
2009-11-02  Philippe Normand  <pnormand@igalia.com>

        Reviewed by Jan Alonzo.

        [GTK] Failing media/video-played-reset.html
        https://bugs.webkit.org/show_bug.cgi?id=30589

        new m_seekTime attribute to keep track of the seek position

        * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
        (WebCore::MediaPlayerPrivate::currentTime):
        (WebCore::MediaPlayerPrivate::seek):
        * platform/graphics/gtk/MediaPlayerPrivateGStreamer.h:

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

12 years ago2009-11-02 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Mon, 2 Nov 2009 19:25:23 +0000 (19:25 +0000)]
2009-11-02  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Jan Alonzo.

        [GTK] Remove Referer when redirecting to non-secure site
        https://bugs.webkit.org/show_bug.cgi?id=31021

        Remove referer from HTTP headers when redirecting to a non-secure
        site.

        * platform/network/soup/ResourceHandleSoup.cpp:
        (WebCore::restartedCallback):

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

12 years ago2009-11-02 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Mon, 2 Nov 2009 19:10:48 +0000 (19:10 +0000)]
2009-11-02  Xan Lopez  <xlopez@igalia.com>

        Bump version before release (or post-release, depending on your
        point of view) so that we can make applications depending on
        unreleased APIs in WebKit svn fail at configure time when the
        requirements are not met.

        * configure.ac:

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

12 years ago Reviewed by Dan Bernstein.
ap@apple.com [Mon, 2 Nov 2009 19:00:33 +0000 (19:00 +0000)]
    Reviewed by Dan Bernstein.

        https://bugs.webkit.org/show_bug.cgi?id=18539
        multipart/form-data not being parsed correctly on server due to '+' in boundary string

        No test - the characters that the boundary is made of are not deterministic.

        * platform/network/FormDataBuilder.cpp: (WebCore::FormDataBuilder::generateUniqueBoundaryString):
        Don't ever put a '+' in boundary string, either. Removed a FIXME to bring '/' back once
        GMail is fixed - I don't think we'll ever want to allow non-alphanumeric characters, as
        they cause problems on many web sites.

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

12 years ago2009-11-02 Andrew Scherkus <scherkus@chromium.org>
eric@webkit.org [Mon, 2 Nov 2009 18:52:57 +0000 (18:52 +0000)]
2009-11-02  Andrew Scherkus  <scherkus@chromium.org>

        Reviewed by Eric Carlson.

        Increase the timeout of media/video-currentTime-set.html from 800ms to 2000ms.

        Also fix call to logResult() as parameters were reversed, resulting in
        printing an error message of "false".

        https://bugs.webkit.org/show_bug.cgi?id=31017

        * media/video-currentTime-set.html: Timeout increased to 2000ms.

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

12 years ago Reviewed by Darin Adler.
ap@apple.com [Mon, 2 Nov 2009 18:41:55 +0000 (18:41 +0000)]
    Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=30969
        A no-prefix XPath node test should not match no-namespace elements in HTML document

        Test: fast/xpath/null-namespace-in-html.html

        * xml/XPathStep.cpp: (WebCore::XPath::nodeMatchesBasicTest): Special case non-HTML elements
        in HTML documents (as these are the ones that can have null namespace).

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

12 years ago2009-11-02 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Mon, 2 Nov 2009 18:32:49 +0000 (18:32 +0000)]
2009-11-02  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: [REGRESSION] No timeline marks on resources panel.

        https://bugs.webkit.org/show_bug.cgi?id=31013

        * inspector/front-end/AbstractTimelinePanel.js:
        (WebInspector.AbstractTimelinePanel.prototype.updateGraphDividersIfNeeded):

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

12 years agoPossible crash in RenderSlider::layout.
levin@chromium.org [Mon, 2 Nov 2009 18:26:15 +0000 (18:26 +0000)]
Possible crash in RenderSlider::layout.
https://bugs.webkit.org/show_bug.cgi?id=31016

Patch by David Levin <levin@chromium.org> on 2009-11-02
Reviewed by Dan Bernstein.

Fix out of place line of code.

Test: scrollbars/overflow-scrollbar-combinations.html
This crash only seems to repro when WebKit draws the play controls,
so the crash repros in chromium running this test but not WebKit
nightlies which use QuickTime to draw the controls.

* rendering/RenderSlider.cpp:
(WebCore::RenderSlider::layout):

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

12 years ago2009-11-02 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
eric@webkit.org [Mon, 2 Nov 2009 18:17:18 +0000 (18:17 +0000)]
2009-11-02  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>

        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):

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

12 years ago2009-11-02 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
eric@webkit.org [Mon, 2 Nov 2009 18:09:19 +0000 (18:09 +0000)]
2009-11-02  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>

        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  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>

        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

        * tests/qwebview/tst_qwebview.cpp:
        (WebViewCrashTest::WebViewCrashTest):
        (WebViewCrashTest::loading):
        (tst_QWebView::crashTests):

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

12 years ago2009-11-02 Mikhail Naganov <mnaganov@chromium.org>
eric@webkit.org [Mon, 2 Nov 2009 18:01:08 +0000 (18:01 +0000)]
2009-11-02  Mikhail Naganov  <mnaganov@chromium.org>

        Reviewed by Pavel Feldman.

        Fix a leftover from profiles panel generalization.

        https://bugs.webkit.org/show_bug.cgi?id=31010

        * inspector/front-end/ProfilesPanel.js:
        (WebInspector.ProfilesPanel.prototype.get searchableViews):

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

12 years ago2009-11-02 Kai Koehne <kai.koehne@nokia.com>
eric@webkit.org [Mon, 2 Nov 2009 17:53:34 +0000 (17:53 +0000)]
2009-11-02  Kai Koehne  <kai.koehne@nokia.com>

        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):

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

12 years ago2009-11-02 Joanmarie Diggs <joanmarie.diggs@gmail.com>
eric@webkit.org [Mon, 2 Nov 2009 17:35:32 +0000 (17:35 +0000)]
2009-11-02  Joanmarie Diggs  <joanmarie.diggs@gmail.com>

        Reviewed by Jan Alonzo.

        https://bugs.webkit.org/show_bug.cgi?id=30964
        [Gtk] Implemment AtkDocument

        Provides access to the reported content language.

        * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
        (webkit_accessible_document_get_locale):

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

12 years ago2009-11-02 Keishi Hattori <casey.hattori@gmail.com>
eric@webkit.org [Mon, 2 Nov 2009 17:27:50 +0000 (17:27 +0000)]
2009-11-02  Keishi Hattori  <casey.hattori@gmail.com>

        Reviewed by Timothy Hatcher.

        Web Inspector: Rewrite CSSSourceSyntaxHighlighter so it shares more code
        https://bugs.webkit.org/show_bug.cgi?id=30907

        * inspector/css-syntax-highlight-expected.txt: Added.
        * inspector/css-syntax-highlight.html: Added.
        * inspector/javascript-syntax-highlight-expected.txt:
2009-11-02  Keishi Hattori  <casey.hattori@gmail.com>

        Reviewed by Timothy Hatcher.

        Web Inspector: Rewrite CSSSourceSyntaxHighlighter so it shares more code
        https://bugs.webkit.org/show_bug.cgi?id=30907

        Test: inspector/css-syntax-highlight.html

        * inspector/front-end/ElementsTreeOutline.js:
        * inspector/front-end/SourceFrame.js:
        (WebInspector.SourceFrame.prototype.syntaxHighlightCSS):
        (WebInspector.SourceSyntaxHighlighter):
        (WebInspector.SourceSyntaxHighlighter.prototype.process.processChunk):
        (WebInspector.SourceSyntaxHighlighter.prototype.process.moveToNextLine):
        (WebInspector.SourceSyntaxHighlighter.prototype.process):
        (WebInspector.SourceSyntaxHighlighter.prototype.lex):
        (WebInspector.SourceSyntaxHighlighter.prototype.appendNonToken):
        (WebInspector.SourceSyntaxHighlighter.prototype.syntaxHighlightNode):
        (WebInspector.CSSSourceSyntaxHighlighter):
        * inspector/front-end/inspectorSyntaxHighlight.css:

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

12 years agoWebKit/mac: WebKit part of making the appearance of the full-screen video HUD match
mitz@apple.com [Mon, 2 Nov 2009 17:03:14 +0000 (17:03 +0000)]
WebKit/mac: WebKit part of making the appearance of the full-screen video HUD match
QuickTime Player X’s HUD.

Reviewed by John Sullivan.

* WebView/WebVideoFullscreenHUDWindowController.h: Removed unnecessary
#import statements, cleaned up style, and changed _timeline,
_volumeSlider and _playButton to have more specific types.
* WebView/WebVideoFullscreenHUDWindowController.mm: Updated #import
statements.
(webkit_CGFloor): Added this helper function.
(-[WebVideoFullscreenHUDWindowController init]): Cleaned up style.
(createTimeTextField): Changed to use the bold system font.
(-[WebVideoFullscreenHUDWindowController windowDidLoad]): Changed the
subviews’ metrics and the text fields’ text alignment.
(-[WebVideoFullscreenHUDWindowController updateTime]): Avoid conversion
from double to float.
(stringToTimeTextAttributed): Removed this useless function that
returned an NSAttributedString masquerading as an NSString.
(-[WebVideoFullscreenHUDWindowController remainingTimeText]): Removed
call to stringToTimeTextAttributed().
(-[WebVideoFullscreenHUDWindowController elapsedTimeText]): Ditto.

WebKitLibraries: WebKitSystemInterface part of making the appearance of the full-screen video HUD match
QuickTime Player X’s HUD.

Reviewed by John Sullivan.

* libWebKitSystemInterfaceLeopard.a:
* libWebKitSystemInterfaceSnowLeopard.a:
* libWebKitSystemInterfaceTiger.a:

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

12 years agoSupport ARIA "tab" roles
cfleizach@apple.com [Mon, 2 Nov 2009 16:57:47 +0000 (16:57 +0000)]
Support ARIA "tab" roles
https://bugs.webkit.org/show_bug.cgi?id=30842

Reviewed by Beth Dakin.

WebCore:

Implement support for ARIA "tab", "tabpanel" and "tablist".
As a consequence, we also needed to implement aria-selected
and aria-controls.

Tests: accessibility/aria-controls-with-tabs.html
       accessibility/aria-tab-roles.html

* accessibility/AXObjectCache.cpp:
* accessibility/AccessibilityObject.h:
* accessibility/AccessibilityRenderObject.cpp:
* accessibility/AccessibilityRenderObject.h:
* accessibility/mac/AccessibilityObjectWrapper.mm:
* html/HTMLAttributeNames.in:

WebKit:

Add a localizable string for tab panel.

* English.lproj/Localizable.strings:
* StringsNotToBeLocalized.txt:

WebKit/mac:

* WebCoreSupport/WebViewFactory.mm:
(-[WebViewFactory AXARIAContentGroupText:]):

WebKitTools:

* DumpRenderTree/AccessibilityUIElement.cpp:
* DumpRenderTree/AccessibilityUIElement.h:
* DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp:
* DumpRenderTree/mac/AccessibilityUIElementMac.mm:
* DumpRenderTree/win/AccessibilityUIElementWin.cpp:

LayoutTests:

* accessibility/aria-controls-with-tabs-expected.txt: Added.
* accessibility/aria-controls-with-tabs.html: Added.
* accessibility/aria-tab-roles.html: Added.
* platform/gtk/Skipped:
* platform/mac/accessibility/aria-tab-roles-expected.txt: Added.
* platform/win/Skipped:

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

12 years agoThis is the WebKit-side change needed to fix canvas.getImageData() for
senorblanco@chromium.org [Mon, 2 Nov 2009 15:27:16 +0000 (15:27 +0000)]
This is the WebKit-side change needed to fix canvas.getImageData() for
Chromium.  The unpremultiply code in Skia assumes that unpremultiplied
values should be rounded, while CG does not.  In addition, the fixed
point inversion used by Skia introduces slight inaccuracies that make
us fail this test.  This change brings Chromium in line with
the CG path.
https://bugs.webkit.org/show_bug.cgi?id=30825

Reviewed by Dmitry Titov.

Covered by LayoutTests/fast/canvas/canvas-getImageData.html

* platform/graphics/skia/ImageBufferSkia.cpp:
(WebCore::getImageData):

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

12 years ago2009-11-01 Kelly Norton <knorton@google.com>
pfeldman@chromium.org [Mon, 2 Nov 2009 09:37:27 +0000 (09:37 +0000)]
2009-11-01  Kelly Norton  <knorton@google.com>

        Reviewed by Timothy Hatcher.

        Adds window event dispatches to InspectorTimelineAgent.
        https://bugs.webkit.org/show_bug.cgi?id=31002

        * English.lproj/localizedStrings.js:
        * dom/Node.cpp: Updated call site to willDispatchEvent and didDispatchEvent.
        (WebCore::Node::dispatchGenericEvent):
        * inspector/InspectorTimelineAgent.cpp:
        (WebCore::InspectorTimelineAgent::willDispatchEvent): Renamed.
        (WebCore::InspectorTimelineAgent::didDispatchEvent): Renamed.
        * inspector/InspectorTimelineAgent.h:
        (WebCore::):
        * inspector/TimelineRecordFactory.cpp:
        (WebCore::TimelineRecordFactory::createEventDispatchRecord): Renamed.
        * inspector/TimelineRecordFactory.h:
        * inspector/front-end/TimelineAgent.js:
        * inspector/front-end/TimelinePanel.js:
        (WebInspector.TimelinePanel.prototype._formatRecord):
        (WebInspector.TimelinePanel.prototype._getRecordDetails):
        * page/DOMWindow.cpp:
        (WebCore::DOMWindow::dispatchEvent):

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

12 years ago2009-11-01 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Mon, 2 Nov 2009 09:25:29 +0000 (09:25 +0000)]
2009-11-01  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: Convert script tag event into a more generic
        script eval event in timeline.

        https://bugs.webkit.org/show_bug.cgi?id=30999

        * bindings/js/ScriptController.cpp:
        (WebCore::ScriptController::evaluateInWorld):
        * bindings/v8/V8Proxy.cpp:
        (WebCore::V8Proxy::evaluate):
        * html/HTMLTokenizer.cpp:
        (WebCore::HTMLTokenizer::scriptExecution):
        * inspector/InspectorTimelineAgent.cpp:
        (WebCore::InspectorTimelineAgent::willEvaluateScript):
        (WebCore::InspectorTimelineAgent::didEvaluateScript):
        * inspector/InspectorTimelineAgent.h:
        (WebCore::):
        * inspector/TimelineRecordFactory.cpp:
        (WebCore::TimelineRecordFactory::createEvaluateScriptTimelineRecord):
        * inspector/TimelineRecordFactory.h:
        * inspector/front-end/TimelineAgent.js:
        * inspector/front-end/TimelinePanel.js:
        (WebInspector.TimelinePanel.prototype._formatRecord):
        (WebInspector.TimelinePanel.prototype._getRecordDetails):

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

12 years agoRubber-stamped by Mark Rowe.
bweinstein@apple.com [Mon, 2 Nov 2009 06:21:09 +0000 (06:21 +0000)]
Rubber-stamped by Mark Rowe.

Fix for loop to use an size_t instead of unsigned and some spacing
style fixes.

* dom/Node.cpp:
(WebCore::eventHasListeners):

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

12 years agoRe-fix the Mac build. Sorry :-(.
bweinstein@apple.com [Mon, 2 Nov 2009 06:03:38 +0000 (06:03 +0000)]
Re-fix the Mac build. Sorry :-(.

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

12 years agoChange ssize_t to unsigned to try and fix Windows build.
bweinstein@apple.com [Mon, 2 Nov 2009 05:57:39 +0000 (05:57 +0000)]
Change ssize_t to unsigned to try and fix Windows build.

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

12 years agoMade the space bar toggle playing state in full-screen video when
mitz@apple.com [Mon, 2 Nov 2009 03:53:23 +0000 (03:53 +0000)]
Made the space bar toggle playing state in full-screen video when
modifier keys are down. Made it do so without highlighting the
Play/Pause button.

Reviewed by Mark Rowe.

* WebView/WebVideoFullscreenHUDWindowController.mm:
(-[WebVideoFullscreenHUDWindowController keyDown:]):

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

12 years ago2009-11-01 Eric Seidel <eric@webkit.org>
eric@webkit.org [Mon, 2 Nov 2009 03:30:54 +0000 (03:30 +0000)]
2009-11-01  Eric Seidel  <eric@webkit.org>

        Reviewed by David Levin.

        buildbots should use --exit-after-N-failures
        https://bugs.webkit.org/show_bug.cgi?id=30809

        Make the bots exit after 20 failures to prevent never-ending
        test runs where every test spends a minute crashing.

        * BuildSlaveSupport/build.webkit.org-config/master.cfg:

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

12 years ago2009-11-01 Kelly Norton <knorton@google.com>
eric@webkit.org [Mon, 2 Nov 2009 03:23:16 +0000 (03:23 +0000)]
2009-11-01  Kelly Norton  <knorton@google.com>

        Reviewed by Timothy Hatcher.

        Does not send DOM dispatches to the InspectorTimelineAgent if there
        are no event listeners.
        https://bugs.webkit.org/show_bug.cgi?id=30995

        * dom/Node.cpp:
        (WebCore::eventHasListeners):
        (WebCore::Node::dispatchGenericEvent):
        * xml/XMLHttpRequest.cpp:
        (WebCore::XMLHttpRequest::callReadyStateChangeListener):

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

12 years agoMade the full-screen video HUD respond to the up and down arrow keys by
mitz@apple.com [Mon, 2 Nov 2009 03:14:51 +0000 (03:14 +0000)]
Made the full-screen video HUD respond to the up and down arrow keys by
increasing and decreasing the volume by 1/10 of the range or, when
combined with the Option key, all the way up or down.

Reviewed by Mark Rowe.

Made the volume buttons in the full-screen video HUD match the behavior
of their equivalents in the QuickTime Player HUD by turning the volume
all the way up or down.

Made the volume slider update immediately when the keyboard or volume
buttons are used to change the volume, rather than at the nearest 1/4
second interval.

Made the elapsed and remaining time displays update immediately when the
play head is dragged across the timeline, rather than at 1/4 second
intervals.

* WebView/WebVideoFullscreenHUDWindowController.mm:
(-[WebVideoFullscreenHUDWindowController keyDown:]): Handle the up and
down arrow keys.
(-[WebVideoFullscreenHUDWindowController windowDidLoad]): Changed the
actions of the volume up and volume down buttons.
(-[WebVideoFullscreenHUDWindowController setCurrentTime:]): Call
-updateTime.
(-[WebVideoFullscreenHUDWindowController setVolumeToZero:]): Added this
action for the volume down button.
(-[WebVideoFullscreenHUDWindowController setVolumeToMaximum:]): Added
this action for the volume up button.
(-[WebVideoFullscreenHUDWindowController decrementVolume]): No longer
and action method.
(-[WebVideoFullscreenHUDWindowController incrementVolume]): Ditto.
(-[WebVideoFullscreenHUDWindowController setVolume:]): Call
-updateVolume.

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

12 years agoNo review (build fix).
rolandsteiner@chromium.org [Mon, 2 Nov 2009 02:50:58 +0000 (02:50 +0000)]
No review (build fix).

Add missing files for Ruby implementation to WebCore.vcproj
(Fix build break after 50397)
https://bugs.webkit.org/show_bug.cgi?id=31001

No new tests. (No functional change)

* WebCore.vcproj/WebCore.vcproj:

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

12 years agoBug 28420 - Implement HTML5 <ruby> rendering
rolandsteiner@chromium.org [Mon, 2 Nov 2009 01:52:25 +0000 (01:52 +0000)]
Bug 28420 -  Implement HTML5 <ruby> rendering
(https://bugs.webkit.org/show_bug.cgi?id=28420)

Reviewed by Dave Hyatt.

First rudimentary implementation of HTML5 ruby rendering support.

WebCore:

Following the HTML 5 spec, the box object model for a <ruby> element allows several runs of ruby
bases with their respective ruby texts looks as follows:

1 RenderRuby object, corresponding to the whole <ruby> HTML element
     1+ RenderRubyRun (anonymous)
         0 or 1 RenderRubyText - shuffled to the front in order to re-use existing block layouting
             0-n inline object(s)
         0 or 1 RenderRubyBase - contains the inline objects that make up the ruby base
             1-n inline object(s)

Note: <rp> elements are defined as having 'display:none' and thus normally are not assigned a renderer.

New layout tests will be committed in a follow-up patch under fast/ruby.

Makefiles, etc.
* GNUmakefile.am:
* WebCore.gypi:
* WebCore.pro:
* WebCore.xcodeproj/project.pbxproj:

CSS
* css/html.css: Added <ruby> and <rt>

Existing render files:
* rendering/RenderBlock.cpp: make moveChild a member function moveChildTo
(WebCore::RenderBlock::moveChildTo):
(WebCore::RenderBlock::makeChildrenNonInline):
(WebCore::RenderBlock::removeChild):
* rendering/RenderBlock.h:
* rendering/RenderObject.cpp:
(WebCore::RenderObject::createObject): instantiate ruby renderers based on element name
* rendering/RenderObject.h: add query methods for ruby renderers
(WebCore::RenderObject::isRuby):
(WebCore::RenderObject::isRubyBase):
(WebCore::RenderObject::isRubyRun):
(WebCore::RenderObject::isRubyText):

New ruby renderers:
* rendering/RenderRuby.cpp: Added.
(WebCore::lastRubyRun):
(WebCore::findRubyRunParent):
(WebCore::RenderRubyAsInline::RenderRubyAsInline):
(WebCore::RenderRubyAsInline::~RenderRubyAsInline):
(WebCore::RenderRubyAsInline::isChildAllowed):
(WebCore::RenderRubyAsInline::addChild):
(WebCore::RenderRubyAsInline::removeChild):
(WebCore::RenderRubyAsBlock::RenderRubyAsBlock):
(WebCore::RenderRubyAsBlock::~RenderRubyAsBlock):
(WebCore::RenderRubyAsBlock::isChildAllowed):
(WebCore::RenderRubyAsBlock::addChild):
(WebCore::RenderRubyAsBlock::removeChild):
* rendering/RenderRuby.h: Added.
(WebCore::RenderRubyAsInline::renderName):
(WebCore::RenderRubyAsInline::isRuby):
(WebCore::RenderRubyAsBlock::renderName):
(WebCore::RenderRubyAsBlock::isRuby):
* rendering/RenderRubyBase.cpp: Added.
(WebCore::RenderRubyBase::RenderRubyBase):
(WebCore::RenderRubyBase::~RenderRubyBase):
(WebCore::RenderRubyBase::isChildAllowed):
(WebCore::RenderRubyBase::splitToLeft):
(WebCore::RenderRubyBase::mergeWithRight):
* rendering/RenderRubyBase.h: Added.
(WebCore::RenderRubyBase::renderName):
(WebCore::RenderRubyBase::isRubyBase):
* rendering/RenderRubyRun.cpp: Added.
(WebCore::RenderRubyRun::RenderRubyRun):
(WebCore::RenderRubyRun::~RenderRubyRun):
(WebCore::RenderRubyRun::hasRubyText):
(WebCore::RenderRubyRun::hasRubyBase):
(WebCore::RenderRubyRun::isEmpty):
(WebCore::RenderRubyRun::rubyText):
(WebCore::RenderRubyRun::rubyBase):
(WebCore::RenderRubyRun::rubyBaseSafe):
(WebCore::RenderRubyRun::firstLineBlock):
(WebCore::RenderRubyRun::updateFirstLetter):
(WebCore::RenderRubyRun::isChildAllowed):
(WebCore::RenderRubyRun::addChild):
(WebCore::RenderRubyRun::removeChild):
(WebCore::RenderRubyRun::createRubyBase):
(WebCore::RenderRubyRun::staticCreateRubyRun):
* rendering/RenderRubyRun.h: Added.
(WebCore::RenderRubyRun::renderName):
(WebCore::RenderRubyRun::isRubyRun):
* rendering/RenderRubyText.cpp: Added.
(WebCore::RenderRubyText::RenderRubyText):
(WebCore::RenderRubyText::~RenderRubyText):
(WebCore::RenderRubyText::isChildAllowed):
* rendering/RenderRubyText.h: Added.
(WebCore::RenderRubyText::renderName):
(WebCore::RenderRubyText::isRubyText):

LayoutTests:

Further layout tests will be committed in a follow-up patch under fast/ruby.

* fast/ruby/parse-rp-expected.txt: result changed due to <rt> being rendered as block within <ruby>

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

12 years ago Reviewed by Dan Bernstein.
ap@apple.com [Mon, 2 Nov 2009 01:00:11 +0000 (01:00 +0000)]
    Reviewed by Dan Bernstein.

        https://bugs.webkit.org/show_bug.cgi?id=30992
        Node.isDefaultNamespace doesn't convert empty strings to null

        Test: fast/dom/Node/default-namespace-empty-argument.html

        * dom/Node.cpp: (WebCore::Node::isDefaultNamespace): Per DOM 3 Core, treat empty input
        as null.

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

12 years ago2009-11-01 Yael Aharon <yael.aharon@nokia.com>
eric@webkit.org [Sun, 1 Nov 2009 21:38:52 +0000 (21:38 +0000)]
2009-11-01  Yael Aharon  <yael.aharon@nokia.com>

        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

        Updating the expected result to reflect the change.

        * fast/loader/url-parse-1-expected.txt:
2009-11-01  Yael Aharon  <yael.aharon@nokia.com>

        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):

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

12 years agoFix layering violations in GraphicsContext3D
oliver@apple.com [Sun, 1 Nov 2009 21:30:16 +0000 (21:30 +0000)]
Fix layering violations in GraphicsContext3D
https://bugs.webkit.org/show_bug.cgi?id=30986

Reviewed by Darin Adler.

Remove uses of HTMLImageElement and HTMLCanvasElement

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

12 years ago2009-11-01 Joanmarie Diggs <joanmarie.diggs@gmail.com>
eric@webkit.org [Sun, 1 Nov 2009 21:22:30 +0000 (21:22 +0000)]
2009-11-01  Joanmarie Diggs  <joanmarie.diggs@gmail.com>

        Reviewed by Jan Alonzo.

        https://bugs.webkit.org/show_bug.cgi?id=30964
        [Gtk] Implemment AtkDocument

        Implements what has been implemented in AT-SPI.

        * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
        (GetAtkInterfaceTypeFromWAIType):
        (getInterfaceMaskFromObject):
        (atk_document_interface_init):
        (webkit_accessible_document_get_document_attribute_value):
        (webkit_accessible_document_get_document_attributes):
        (webkit_accessible_document_get_locale):

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

12 years ago2009-11-01 Laszlo Gombos <laszlo.1.gombos@nokia.com>
eric@webkit.org [Sun, 1 Nov 2009 20:49:04 +0000 (20:49 +0000)]
2009-11-01  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Eric Seidel.

        Turn on warnings for QtWebKit for gcc
        https://bugs.webkit.org/show_bug.cgi?id=30958

        * WebKit.pri: Turn on warnings for the GCC compiler
2009-11-01  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Eric Seidel.

        Turn on warnings for QtWebKit for gcc
        https://bugs.webkit.org/show_bug.cgi?id=30958

        No new tests as there is no functional change.

        * platform/image-decoders/qt/RGBA32BufferQt.cpp:
        (WebCore::RGBA32Buffer::RGBA32Buffer): Reorder
        initialization list to fix compiler warnings.

2009-11-01  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Eric Seidel.

        Turn on warnings for QtWebKit for gcc
        https://bugs.webkit.org/show_bug.cgi?id=30958

        * Api/qwebpage.cpp:
        (QWebPagePrivate::QWebPagePrivate): Reorder initialization list
        to fix compiler warnings.
        * WebCoreSupport/FrameLoaderClientQt.cpp:
        (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Ditto.
2009-11-01  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Eric Seidel.

        Turn on warnings for QtWebKit for gcc
        https://bugs.webkit.org/show_bug.cgi?id=30958

        * DumpRenderTree/qt/main.cpp:
        (crashHandler): Mark function NO_RETURN

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

12 years ago2009-11-01 Keishi Hattori <casey.hattori@gmail.com>
eric@webkit.org [Sun, 1 Nov 2009 20:41:15 +0000 (20:41 +0000)]
2009-11-01  Keishi Hattori  <casey.hattori@gmail.com>

        Reviewed by Pavel Feldman.

        [Regression] monitorEvent doesn't work

        * inspector/front-end/InjectedScript.js:
        (InjectedScript._ensureCommandLineAPIInstalled):

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

12 years ago2009-11-01 Keishi Hattori <casey.hattori@gmail.com>
eric@webkit.org [Sun, 1 Nov 2009 20:33:37 +0000 (20:33 +0000)]
2009-11-01  Keishi Hattori  <casey.hattori@gmail.com>

        Reviewed by Pavel Feldman.

        Fix Web Inspector: Bug with Message Bubble in Syntax Highlighter
        https://bugs.webkit.org/show_bug.cgi?id=30990

        * inspector/front-end/SourceFrame.js:

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

12 years ago Reviewed by John Sullivan.
ap@apple.com [Sun, 1 Nov 2009 20:04:11 +0000 (20:04 +0000)]
    Reviewed by John Sullivan.

        https://bugs.webkit.org/show_bug.cgi?id=30982
        createHTMLDocument doesn't escape ampersand and less-than in title

        Test: fast/dom/DOMImplementation/createHTMLDocument-title.html

        * dom/DOMImplementation.cpp: (WebCore::DOMImplementation::createHTMLDocument):
        Set document title after creating the document, avoiding parser intricacies.

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

12 years ago2009-11-01 Hironori Bono <hbono@chromium.org>
eric@webkit.org [Sun, 1 Nov 2009 16:18:38 +0000 (16:18 +0000)]
2009-11-01  Hironori Bono  <hbono@chromium.org>

        Reviewed by Darin Adler.

        Bug 30902: Need a layout test for Bug 28284
        This change just adds a simple test that calls TextInputController.firstRectForCharacterRange()
        before and after inserting a Thai character and compare their results.
        https://bugs.webkit.org/show_bug.cgi?id=30902

        * fast/text/international/thai-cursor-position-expected.txt: Added.
        * fast/text/international/thai-cursor-position.html: Added.
        * platform/gtk/Skipped: Skip this test because TextInputController is not implemented.
        * platform/qt/Skipped: ditto.
        * platform/win/Skipped: ditto.

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

12 years ago2009-11-01 Keishi Hattori <casey.hattori@gmail.com>
eric@webkit.org [Sun, 1 Nov 2009 16:11:04 +0000 (16:11 +0000)]
2009-11-01  Keishi Hattori  <casey.hattori@gmail.com>

        Reviewed by Timothy Hatcher.

        Web Inspector: Double clicking on a breakpoints should not select text
        https://bugs.webkit.org/show_bug.cgi?id=30950

        * inspector/front-end/SourceFrame.js:
        (WebInspector.SourceFrame.prototype._documentMouseDown):

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

12 years ago2009-11-01 Yuta Kitamura <yutak@chromium.org>
eric@webkit.org [Sun, 1 Nov 2009 16:03:27 +0000 (16:03 +0000)]
2009-11-01  Yuta Kitamura  <yutak@chromium.org>

        Reviewed by Darin Adler.

        Fix assertion falure in RenderObjectChildList::updateBeforeAfterContent().

        [Crash (debug)] Combination of list-item and :after causes assertion failure
        https://bugs.webkit.org/show_bug.cgi?id=30944

        * fast/css/list-item-pseudo-nocrash-expected.txt: Added.
        * fast/css/list-item-pseudo-nocrash.html: Added.
2009-11-01  Yuta Kitamura  <yutak@chromium.org>

        Reviewed by Darin Adler.

        Fix assertion falure in RenderObjectChildList::updateBeforeAfterContent().

        [Crash (debug)] Combination of list-item and :after causes assertion failure
        https://bugs.webkit.org/show_bug.cgi?id=30944

        Test: fast/css/list-item-pseudo-nocrash.html

        * rendering/RenderObjectChildList.cpp:
        (WebCore::RenderObjectChildList::updateBeforeAfterContent):

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

12 years ago2009-11-01 Philippe Normand <pnormand@igalia.com>
eric@webkit.org [Sun, 1 Nov 2009 15:54:59 +0000 (15:54 +0000)]
2009-11-01  Philippe Normand  <pnormand@igalia.com>

        Reviewed by Eric Seidel.

        https://bugs.webkit.org/show_bug.cgi?id=30586
        [GTK] Failing test media/video-src-empty.html

        * platform/gtk/Skipped: Unskip fixed test.
2009-11-01  Philippe Normand  <pnormand@igalia.com>

        Reviewed by Eric Seidel.

        https://bugs.webkit.org/show_bug.cgi?id=30586
        [GTK] Failing test media/video-src-empty.html

        Correctly set network/ready state depending on GStreamer errors
        received on the bus.

        * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
        (WebCore::mediaPlayerPrivateMessageCallback):

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

12 years ago2009-11-01 Jessie Berlin <jberlin@webkit.org>
jberlin@webkit.org [Sun, 1 Nov 2009 15:25:58 +0000 (15:25 +0000)]
2009-11-01  Jessie Berlin  <jberlin@webkit.org>

        Adding myself to the committers list.

        * Scripts/modules/committers.py:

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

12 years agoBuild fix
oliver@apple.com [Sat, 31 Oct 2009 23:22:33 +0000 (23:22 +0000)]
Build fix

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

12 years agoRemove obsolete null checks from CanvasRenderingContext3DMac
oliver@apple.com [Sat, 31 Oct 2009 23:10:55 +0000 (23:10 +0000)]
Remove obsolete null checks from CanvasRenderingContext3DMac
https://bugs.webkit.org/show_bug.cgi?id=30983

Reviewed by Darin Adler

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

12 years agoWebGL allows objects to be used with the wrong context
oliver@apple.com [Sat, 31 Oct 2009 22:19:47 +0000 (22:19 +0000)]
WebGL allows objects to be used with the wrong context
https://bugs.webkit.org/show_bug.cgi?id=30981

Reviewed by Jon Honeycutt.

Simply add null checks and a few context guards to ensure we don't
deref null or attempt to use an object from a different context.

Tests: fast/canvas/webgl/incorrect-context-object-behaviour.html
       fast/canvas/webgl/null-object-behaviour.html

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

12 years agoFixed failing layout test: restore a special case I accidentally deleted.
ggaren@apple.com [Sat, 31 Oct 2009 02:11:21 +0000 (02:11 +0000)]
Fixed failing layout test: restore a special case I accidentally deleted.

Patch by Geoffrey Garen <ggaren@apple.com> on 2009-10-30
Reviewed by Oliver Hunt.

* runtime/DatePrototype.cpp:
(JSC::setNewValueFromDateArgs): In the case of applying a change to a date
that is NaN, reset the date to 0 *and* then apply the change; don't just
reset the date to 0.

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

12 years agoFix an issue that Adam noticed in DRT.
jhoneycutt@apple.com [Sat, 31 Oct 2009 00:51:27 +0000 (00:51 +0000)]
Fix an issue that Adam noticed in DRT.

Reviewed by Darin Adler.

* DumpRenderTree/win/AccessibilityUIElementWin.cpp:
(AccessibilityUIElement::role):
Get the length of the role text, and create a buffer dynamically.

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

12 years agoAllow custom memory allocation control for WebCore's MediaQueryResult
zoltan@webkit.org [Fri, 30 Oct 2009 23:18:55 +0000 (23:18 +0000)]
Allow custom memory allocation control for WebCore's MediaQueryResult
https://bugs.webkit.org/show_bug.cgi?id=30857

Reviewed by Darin Adler.

Inherits MediaQueryResult class from Noncopyable because it is
instantiated by 'new' in WebCore/css/CSSStyleSelector.cpp:5984 and
it is no need to be copyable.

* css/CSSStyleSelector.h:

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

12 years agoAllow custom memory allocation control for WebCore's MediaQueryEvaluator
zoltan@webkit.org [Fri, 30 Oct 2009 23:16:19 +0000 (23:16 +0000)]
Allow custom memory allocation control for WebCore's MediaQueryEvaluator
https://bugs.webkit.org/show_bug.cgi?id=30854

Reviewed by Darin Adler.

Inherits MediaQueryEvaluator class from Noncopyable because it is
instantiated by 'new' in WebCore/css/CSSStyleSelector.cpp:401 and
it is no need to be copyable.

* css/MediaQueryEvaluator.h:

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

12 years agoAllow custom memory allocation control for WebCore's MediaQueryEvaluator
zoltan@webkit.org [Fri, 30 Oct 2009 23:10:56 +0000 (23:10 +0000)]
Allow custom memory allocation control for WebCore's MediaQueryEvaluator
https://bugs.webkit.org/show_bug.cgi?id=30854

Reviewed by Darin Adler.

Inherits MediaQueryEvaluator class from Noncopyable because it is
instantiated by 'new' in WebCore/css/CSSStyleSelector.cpp:401 and
it is no need to be copyable.

* css/MediaQueryEvaluator.h:

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

12 years agoAllow custom memory allocation control for WebCore's CSSRuleSet
zoltan@webkit.org [Fri, 30 Oct 2009 23:08:50 +0000 (23:08 +0000)]
Allow custom memory allocation control for WebCore's CSSRuleSet
https://bugs.webkit.org/show_bug.cgi?id=30852

Reviewed by Darin Adler.

Inherits CSSRuleSet class from Noncopyable because it is
instantiated by 'new' in WebCore/css/CSSStyleSelector.cpp:455 and
it is no need to be copyable.

* css/CSSStyleSelector.cpp:

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

12 years agoAllow custom memory allocation control for WebCore's CSSRuleData
zoltan@webkit.org [Fri, 30 Oct 2009 23:06:18 +0000 (23:06 +0000)]
Allow custom memory allocation control for WebCore's CSSRuleData
https://bugs.webkit.org/show_bug.cgi?id=30851

Reviewed by Darin Adler.

Inherits CSSRuleData class from Noncopyable because it is
instantiated by 'new' in WebCore/css/CSSStyleSelector.h:320 and
it is no need to be copyable.

* css/CSSStyleSelector.h:

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

12 years agoAllow custom memory allocation control for WebCore's CSSRuleDataList
zoltan@webkit.org [Fri, 30 Oct 2009 23:02:49 +0000 (23:02 +0000)]
Allow custom memory allocation control for WebCore's CSSRuleDataList
https://bugs.webkit.org/show_bug.cgi?id=30850

Reviewed by Darin Adler.

Inherits CSSRuleDataList class from Noncopyable because it has been
instantiated by 'new' in WebCore/css/CSSStyleSelector.cpp:2715 and
it is no need to be copyable.

* css/CSSStyleSelector.h:

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

12 years agoAllow custom memory allocation control for WebCore's CSSNamespace
zoltan@webkit.org [Fri, 30 Oct 2009 22:59:07 +0000 (22:59 +0000)]
Allow custom memory allocation control for WebCore's CSSNamespace
https://bugs.webkit.org/show_bug.cgi?id=30849

Reviewed by Darin Adler.

Inherits CSSNamespace struct from Noncopyable because it is
instantiated by 'new' in WebCore/css/CSSStyleSheet.cpp:141 and
it is no need to be copyable.

* css/CSSNamespace.h:

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

12 years ago2009-10-30 Eric Seidel <eric@webkit.org>
eric@webkit.org [Fri, 30 Oct 2009 22:41:04 +0000 (22:41 +0000)]
2009-10-30  Eric Seidel  <eric@webkit.org>

        No review, rolling out r50105.
        http://trac.webkit.org/changeset/50105

        This commit was causing:
        https://bugs.webkit.org/show_bug.cgi?id=30869
        We'll re-implement the feature a different way.

        * Scripts/bugzilla-tool:

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

12 years agoWindows build fix: update for object-to-pointer change.
ggaren@apple.com [Fri, 30 Oct 2009 22:35:18 +0000 (22:35 +0000)]
Windows build fix: update for object-to-pointer change.

Patch by Geoffrey Garen <ggaren@apple.com> on 2009-10-30
* runtime/DatePrototype.cpp:
(JSC::formatLocaleDate):

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

12 years agoRefactor DatabaseTask in preparation for removing threadsafe refcounting from it.
dimich@chromium.org [Fri, 30 Oct 2009 22:26:32 +0000 (22:26 +0000)]
Refactor DatabaseTask in preparation for removing threadsafe refcounting from it.
Move the synchronizer object out of the DatabaseTask so there is no need to keep
the pointer to Databasetask around after passing it to MessageQueue.
Also pass the references to return parameters to the task so it can update them.
https://bugs.webkit.org/show_bug.cgi?id=30941

Reviewed by David Levin.

No new tests, since this is just moving the code around, no change in functionality.

* storage/Database.cpp:
(WebCore::Database::Database):
(WebCore::Database::openAndVerifyVersion): Use new DatabaseTaskSynchronizer to wait for task completion.
(WebCore::Database::markAsDeletedAndClose): Ditto.
(WebCore::Database::tableNames): Ditto.
(WebCore::Database::stop): Use the boolean flag rather then 'killed' flag built into MessageQueue.
(WebCore::Database::scheduleTransaction): Transaction queue is a Deque now, change the way to fetch the transaction.
* storage/Database.h: Change the SQLTransaction queue to be a Deque rather then a MessageQueue.
* storage/DatabaseTask.cpp:
(WebCore::DatabaseTaskSynchronizer::DatabaseTaskSynchronizer):
(WebCore::DatabaseTaskSynchronizer::waitForTaskCompletion):
(WebCore::DatabaseTaskSynchronizer::taskCompleted):
(WebCore::DatabaseTask::DatabaseTask): Ctor takes DatabaseTaskSynchronizer which can be 0.
(WebCore::DatabaseTask::performTask): Signal completion. m_synchronizer should still be around since main thread is waiting on it.
(WebCore::DatabaseOpenTask::DatabaseOpenTask): Pass synchronizer and return parameters via constructor.
(WebCore::DatabaseCloseTask::DatabaseCloseTask): Ditto.
(WebCore::DatabaseTransactionTask::DatabaseTransactionTask): Ditto.
(WebCore::DatabaseTableNamesTask::DatabaseTableNamesTask): Ditto.
* storage/DatabaseTask.h:
(WebCore::DatabaseOpenTask::create):
(WebCore::DatabaseCloseTask::create):
(WebCore::DatabaseTransactionTask::create):
(WebCore::DatabaseTableNamesTask::create):

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

12 years agohttps://bugs.webkit.org/show_bug.cgi?id=30942
ggaren@apple.com [Fri, 30 Oct 2009 22:23:31 +0000 (22:23 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=30942
Use pointers instead of copies to pass GregorianDateTime objects around.

Patch by Geoffrey Garen <ggaren@apple.com> on 2009-10-29
Reviewed by Darin Adler.

SunSpider reports a shocking 4.5% speedup on date-format-xparb, and 1.3%
speedup on date-format-tofte.

* runtime/DateInstance.cpp:
(JSC::DateInstance::gregorianDateTime):
* runtime/DateInstance.h:
* runtime/DatePrototype.cpp:
(JSC::formatLocaleDate):
(JSC::dateProtoFuncToString):
(JSC::dateProtoFuncToUTCString):
(JSC::dateProtoFuncToISOString):
(JSC::dateProtoFuncToDateString):
(JSC::dateProtoFuncToTimeString):
(JSC::dateProtoFuncGetFullYear):
(JSC::dateProtoFuncGetUTCFullYear):
(JSC::dateProtoFuncToGMTString):
(JSC::dateProtoFuncGetMonth):
(JSC::dateProtoFuncGetUTCMonth):
(JSC::dateProtoFuncGetDate):
(JSC::dateProtoFuncGetUTCDate):
(JSC::dateProtoFuncGetDay):
(JSC::dateProtoFuncGetUTCDay):
(JSC::dateProtoFuncGetHours):
(JSC::dateProtoFuncGetUTCHours):
(JSC::dateProtoFuncGetMinutes):
(JSC::dateProtoFuncGetUTCMinutes):
(JSC::dateProtoFuncGetSeconds):
(JSC::dateProtoFuncGetUTCSeconds):
(JSC::dateProtoFuncGetTimezoneOffset):
(JSC::setNewValueFromTimeArgs):
(JSC::setNewValueFromDateArgs):
(JSC::dateProtoFuncSetYear):
(JSC::dateProtoFuncGetYear): Renamed getGregorianDateTime to gregorianDateTime,
since it no longer has an out parameter. Uses 0 to indicate invalid dates.

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

12 years agoREGRESSION: In Mail, Undo does not restore some characters I have deleted at the...
adele@apple.com [Fri, 30 Oct 2009 22:09:07 +0000 (22:09 +0000)]
REGRESSION: In Mail, Undo does not restore some characters I have deleted at the end of a line
https://bugs.webkit.org/show_bug.cgi?id=30955
<rdar://problem/7067033>

Patch by Enrica Casucci <enrica@apple.com> on 2009-10-30
Reviewed by Darin Adler.

WebCore:

When the command is deleteWordBackward or deleteWordForward
we should not add to the open typing command, but
create a new one.

Test: editing/undo/undo-deleteWord.html

* editing/TypingCommand.cpp:
(WebCore::TypingCommand::deleteKeyPressed): Always start a new command if the granularity is
not CharacterGranularity.
(WebCore::TypingCommand::forwardDeleteKeyPressed): Always start a new command if the granularity is
not CharacterGranularity.

LayoutTests:

* editing/undo/undo-deleteWord-expected.txt: Added.
* editing/undo/undo-deleteWord.html: Added.

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

12 years ago2009-10-30 Eric Carlson <eric.carlson@apple.com>
eric.carlson@apple.com [Fri, 30 Oct 2009 22:03:37 +0000 (22:03 +0000)]
2009-10-30  Eric Carlson  <eric.carlson@apple.com>

        Reviewed by Darin Adler.

        Make MediaPlayer constructor private
        https://bugs.webkit.org/show_bug.cgi?id=30965

        * html/HTMLMediaElement.cpp:
        (WebCore::HTMLMediaElement::loadResource):
        (WebCore::HTMLMediaElement::finishParsingChildren): Use MediaPlayer::create.

        * platform/graphics/MediaPlayer.h:
        (WebCore::MediaPlayer::create): New.

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

12 years agoTest for MSAA: Accessibility of headings is not correct
jhoneycutt@apple.com [Fri, 30 Oct 2009 21:38:27 +0000 (21:38 +0000)]
Test for MSAA: Accessibility of headings is not correct

https://bugs.webkit.org/show_bug.cgi?id=30937

Reviewed by Adam Roben.

WebKitTools:

* DumpRenderTree/win/AccessibilityUIElementWin.cpp:
(AccessibilityUIElement::role):
Allow the role returned to be a BSTR.
(AccessibilityUIElement::description):
Fix a copy/paste error.

LayoutTests:

* platform/win/accessibility/heading-elements-expected.txt: Added.
* platform/win/accessibility/heading-elements.html: Added.

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

12 years agoTest for MSAA: Accessibility of links is wrong
jhoneycutt@apple.com [Fri, 30 Oct 2009 21:38:15 +0000 (21:38 +0000)]
Test for MSAA: Accessibility of links is wrong

https://bugs.webkit.org/show_bug.cgi?id=30928

Reviewed by Darin Adler.

WebKitTools:

* DumpRenderTree/AccessibilityUIElement.cpp:
(getAccessibilityValueCallback):
Return the accessibility value.
(AccessibilityUIElement::getJSClass):
Added "accessibilityValue" value.

* DumpRenderTree/AccessibilityUIElement.h:

* DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp:
(AccessibilityUIElement::accessibilityValue):
Stubbed.

* DumpRenderTree/mac/AccessibilityUIElementMac.mm:
(AccessibilityUIElement::accessibilityValue):
Stubbed.

* DumpRenderTree/win/AccessibilityUIElementWin.cpp:
(AccessibilityUIElement::accessibilityValue):
Get the object's value, and return it as a JS string.

LayoutTests:

* platform/win/accessibility/linked-elements-expected.txt: Added.
* platform/win/accessibility/linked-elements.html: Added.

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

12 years agoMSAA: Accessibility of headings is not correct
jhoneycutt@apple.com [Fri, 30 Oct 2009 21:38:02 +0000 (21:38 +0000)]
MSAA: Accessibility of headings is not correct

https://bugs.webkit.org/show_bug.cgi?id=30937

Reviewed by Alice Liu.

WebCore:

* accessibility/AccessibilityObject.h:
(WebCore::AccessibilityObject::stringRoleForMSAA):
(WebCore::AccessibilityObject::descriptionForMSAA):

* accessibility/AccessibilityRenderObject.cpp:
(WebCore::shouldReturnTagNameAsRoleForMSAA):
If the element's tag name is one of h1, h2, h3, h4, h5, h6, return
true.
(WebCore::AccessibilityRenderObject::stringRoleForMSAA):
If the element should return its tag name as the role, return the tag
name.
(WebCore::AccessibilityRenderObject::positionalDescriptionForMSAA):
If the object is a heading, return the string "L" followed by the
heading level.
(WebCore::AccessibilityRenderObject::descriptionForMSAA):
If the object has a positional description, return it. Otherwise, get
the accessibility description, and prefix it with "Description" so that
MSAA clients know that it's not a positional description.

* accessibility/AccessibilityRenderObject.h:

WebKit/win:

* AccessibleBase.cpp:
(AccessibleBase::get_accDescription):
Call the object's descriptionForMSAA(). Moved the comment to the
WebCore file.
(AccessibleBase::get_accRole):
If the object has a string role, return that. Otherwise, return the
integer role.

* AccessibleBase.h:
Removed description(), as this was moved to WebCore.

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

12 years agoMSAA: Accessibility of links is wrong
jhoneycutt@apple.com [Fri, 30 Oct 2009 21:37:44 +0000 (21:37 +0000)]
MSAA: Accessibility of links is wrong

https://bugs.webkit.org/show_bug.cgi?id=30928

Reviewed by Darin Adler.

WebCore:

* accessibility/AccessibilityImageMapLink.cpp:
(WebCore::AccessibilityImageMapLink::stringValueForMSAA):
Return the URL.
(WebCore::AccessibilityImageMapLink::nameForMSAA):
Return the alt text.

* accessibility/AccessibilityImageMapLink.h:
(WebCore::AccessibilityImageMapLink::isLinked):
Return true.

* accessibility/AccessibilityObject.h:
(WebCore::AccessibilityObject::isLinked):
(WebCore::AccessibilityObject::stringValueForMSAA):
(WebCore::AccessibilityObject::nameForMSAA):

* accessibility/AccessibilityRenderObject.cpp:
(WebCore::isLinkable):
Return true if the element is considered "linkable" with respect to
accessibility.
(WebCore::AccessibilityRenderObject::stringValueForMSAA):
If the element is linkable, check whether it has a parent anchor
element. If so, return the anchor element's href.
(WebCore::AccessibilityRenderObject::isLinked):
Return true if the element is linkable and if it's parent anchor tag's
href is non-empty.
(WebCore::AccessibilityRenderObject::nameForMSAA):
For text nodes, return the text.

* accessibility/AccessibilityRenderObject.h:

WebKit/win:

* AccessibleBase.cpp:
(AccessibleBase::get_accState):
Check whether the element is linked, instead of whether the node is an
anchor, so the child "linkable" elements of anchor elements will also
be "linked".
(AccessibleBase::name):
Return the name for MSAA.
(AccessibleBase::value):
Return the string value for MSAA.

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

12 years agoTouch WebKitPrefix to force rebuild of WebKit.
bweinstein@apple.com [Fri, 30 Oct 2009 21:20:48 +0000 (21:20 +0000)]
Touch WebKitPrefix to force rebuild of WebKit.

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

12 years agoNotify the chrome when the focused node has changed.
levin@chromium.org [Fri, 30 Oct 2009 20:59:46 +0000 (20:59 +0000)]
Notify the chrome when the focused node has changed.
https://bugs.webkit.org/show_bug.cgi?id=30832

Patch by Evan Stade <estade@chromium.org> on 2009-10-30
Reviewed by David Levin.

WebCore:

This is similar to AX code that is already in place, except that this also informs the
chrome when there stops being a focused node. This is needed for a browser to show the
anchor for links that have keyboard focus.

* dom/Document.cpp:
(WebCore::Document::setFocusedNode):
* loader/EmptyClients.h:
(WebCore::EmptyChromeClient::focusedNodeChanged):
* page/Chrome.cpp:
(WebCore::Chrome::focusedNodeChanged):
* page/Chrome.h:
* page/ChromeClient.h:

WebKit/gtk:

Added stub implementation for new ChromeClient function.

* WebCoreSupport/ChromeClientGtk.cpp:
(WebKit::ChromeClient::focusedNodeChanged):
* WebCoreSupport/ChromeClientGtk.h:

WebKit/haiku:

Added stub implementation for new ChromeClient function.

* WebCoreSupport/ChromeClientHaiku.cpp:
(WebCore::ChromeClientHaiku::focusedNodeChanged):
* WebCoreSupport/ChromeClientHaiku.h:

WebKit/mac:

Added stub implementation for new ChromeClient function.

* WebCoreSupport/WebChromeClient.h:
* WebCoreSupport/WebChromeClient.mm:
(WebChromeClient::focusedNodeChanged):

WebKit/qt:

Added stub implementation for new ChromeClient function.

* WebCoreSupport/ChromeClientQt.cpp:
(WebCore::ChromeClientQt::focusedNodeChanged):
* WebCoreSupport/ChromeClientQt.h:

WebKit/win:

Added stub implementation for new ChromeClient function.

* WebCoreSupport/WebChromeClient.cpp:
(WebChromeClient::focusedNodeChanged):
* WebCoreSupport/WebChromeClient.h:

WebKit/wx:

Added stub implementation for new ChromeClient function.

* WebKitSupport/ChromeClientWx.cpp:
(WebCore::ChromeClientWx::focusedNodeChanged):
* WebKitSupport/ChromeClientWx.h:

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

12 years ago2009-10-30 Ben Murdoch <benm@google.com>
eric@webkit.org [Fri, 30 Oct 2009 20:20:32 +0000 (20:20 +0000)]
2009-10-30  Ben Murdoch  <benm@google.com>

        Reviewed by David Kilzer.

        openDatabase() with empty version sets db version up incorrectly
        https://bugs.webkit.org/show_bug.cgi?id=28417

        * storage/open-database-set-empty-version-expected.txt: Added.
        * storage/open-database-set-empty-version.html: Added.
2009-10-30  Ben Murdoch  <benm@google.com>

        Reviewed by David Kilzer.

        openDatabase() with empty version sets db version up incorrectly
        https://bugs.webkit.org/show_bug.cgi?id=28417

        Test: storage/open-database-set-empty-version.html

        * storage/Database.cpp:
        (WebCore::Database::performOpenAndVerify): Raise an exception if the current database version does not match the expected version when the current version is the empty string.

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

12 years agoFix typo in command name used by wx build system.
kevino@webkit.org [Fri, 30 Oct 2009 19:52:22 +0000 (19:52 +0000)]
Fix typo in command name used by wx build system.

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

12 years ago2009-10-30 John Gregg <johnnyg@google.com>
eric@webkit.org [Fri, 30 Oct 2009 19:37:12 +0000 (19:37 +0000)]
2009-10-30  John Gregg  <johnnyg@google.com>

        Reviewed by David Levin.

        Need to turn off notifications properly at runtime
        https://bugs.webkit.org/show_bug.cgi?id=30409

        Moving the notificationsEnabled bit from NotificationCenter
        to the new V8 RuntimeEnabledFeatures object.

        Just moving a bit around, so no new tests.

        * bindings/v8/RuntimeEnabledFeatures.cpp:
        * bindings/v8/RuntimeEnabledFeatures.h:
        (WebCore::RuntimeEnabledFeatures::setNotificationsEnabled):
        (WebCore::RuntimeEnabledFeatures::notificationsEnabled):
        * bindings/v8/custom/V8DOMWindowCustom.cpp:
        (WebCore::ACCESSOR_RUNTIME_ENABLER):
        * bindings/v8/custom/V8WorkerContextCustom.cpp:
        (WebCore::ACCESSOR_RUNTIME_ENABLER):
        * notifications/NotificationCenter.cpp:
        * notifications/NotificationCenter.h:

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

12 years ago[V8] More cleanup after r49949: remove ListenerGuard.
dimich@chromium.org [Fri, 30 Oct 2009 18:31:58 +0000 (18:31 +0000)]
[V8] More cleanup after r49949: remove ListenerGuard.
ListenerGuard is no longer needed since EventListeners do not depend on frame or v8 context.
https://bugs.webkit.org/show_bug.cgi?id=30943

Reviewed by Dimitri Glazkov.

Covered by fast/events/add-event-without-document.html which will now pass in Chromium.

* bindings/v8/V8AbstractEventListener.cpp:
(WebCore::V8AbstractEventListener::V8AbstractEventListener):
(WebCore::V8AbstractEventListener::handleEvent):
* bindings/v8/V8AbstractEventListener.h:
* bindings/v8/V8DOMWrapper.cpp:
(WebCore::V8DOMWrapper::getEventListener):
* bindings/v8/V8EventListenerList.h:
(WebCore::V8EventListenerList::findOrCreateWrapper):
* bindings/v8/V8LazyEventListener.cpp:
(WebCore::V8LazyEventListener::V8LazyEventListener):
* bindings/v8/V8Proxy.cpp:
(WebCore::V8Proxy::V8Proxy):
(WebCore::V8Proxy::disconnectFrame):
(WebCore::V8Proxy::clearForNavigation):
* bindings/v8/V8Proxy.h:
* bindings/v8/V8WorkerContextEventListener.cpp:
(WebCore::V8WorkerContextEventListener::V8WorkerContextEventListener):
(WebCore::V8WorkerContextEventListener::handleEvent):
(WebCore::V8WorkerContextEventListener::reportError):
* bindings/v8/V8WorkerContextEventListener.h:
(WebCore::V8WorkerContextEventListener::create):
* bindings/v8/WorkerContextExecutionProxy.cpp:
(WebCore::WorkerContextExecutionProxy::WorkerContextExecutionProxy):
(WebCore::WorkerContextExecutionProxy::dispose):
(WebCore::WorkerContextExecutionProxy::findOrCreateEventListener):
* bindings/v8/WorkerContextExecutionProxy.h:
* bindings/v8/custom/V8CustomEventListener.cpp:
(WebCore::V8EventListener::V8EventListener):
* bindings/v8/custom/V8CustomEventListener.h:
(WebCore::V8EventListener::create):

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

12 years ago2009-10-30 Adam Barth <abarth@webkit.org>
eric@webkit.org [Fri, 30 Oct 2009 18:19:33 +0000 (18:19 +0000)]
2009-10-30  Adam Barth  <abarth@webkit.org>

        Reviewed by Darin Adler.

        Patch v1 is a dumb default name for patches
        https://bugs.webkit.org/show_bug.cgi?id=30952

        Let's use "Patch" instead.

        * Scripts/bugzilla-tool:

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

12 years ago2009-10-30 Shinichiro Hamaji <hamaji@chromium.org>
hamaji@chromium.org [Fri, 30 Oct 2009 17:57:17 +0000 (17:57 +0000)]
2009-10-30  Shinichiro Hamaji  <hamaji@chromium.org>

        Reviewed by Darin Adler.

        counterValueForElementById should return space-separated string for multiple counters
        https://bugs.webkit.org/show_bug.cgi?id=30939

        Test: fast/css/counters/counterValueForElementById.html

        * rendering/RenderTreeAsText.cpp:
        (WebCore::writeCounterValuesFromChildren):
        (WebCore::counterValueForElement):
2009-10-30  Shinichiro Hamaji  <hamaji@chromium.org>

        Reviewed by Darin Adler.

        counterValueForElementById should return space-separated string for multiple counters
        https://bugs.webkit.org/show_bug.cgi?id=30939

        * fast/css/counters/counterValueForElementById-expected.txt: Added.
        * fast/css/counters/counterValueForElementById.html: Added.

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

12 years ago2009-10-30 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
eric@webkit.org [Fri, 30 Oct 2009 17:50:45 +0000 (17:50 +0000)]
2009-10-30  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>

        Reviewed by Tor Arne Vestbø.

        [Qt] Remove the QWebInspector::windowTitleChanged signal,
        QEvent::WindowTitleChange can be used to achieve the same.
        https://bugs.webkit.org/show_bug.cgi?id=30927

        * Api/qwebinspector.cpp:
        * Api/qwebinspector.h:
        * WebCoreSupport/InspectorClientQt.cpp:
        (WebCore::InspectorClientQt::updateWindowTitle):

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

12 years ago2009-10-30 Sebastian Dröge <sebastian.droege@collabora.co.uk>
eric@webkit.org [Fri, 30 Oct 2009 17:43:29 +0000 (17:43 +0000)]
2009-10-30  Sebastian Dröge  <sebastian.droege@collabora.co.uk>

        Reviewed by Gustavo Noronha.

        * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
        (WebCore::MediaPlayerPrivate::paint):
        Add some comments to explain what is happening here.

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

12 years ago2009-10-30 Alexander Pavlov <apavlov@chromium.org>
eric@webkit.org [Fri, 30 Oct 2009 17:35:12 +0000 (17:35 +0000)]
2009-10-30  Alexander Pavlov  <apavlov@chromium.org>

        Reviewed by Timothy Hatcher.

        Fix Web Inspector crash on the errors/warnings counter click

        RenderObject::createVisiblePosition(const Position& position)
        understands "null Positions", so we can construct such a Position manually.

        https://bugs.webkit.org/show_bug.cgi?id=30499

        * rendering/RenderBox.cpp:
        (WebCore::RenderBox::positionForPoint):

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

12 years ago2009-10-30 Alexander Pavlov <apavlov@chromium.org>
eric@webkit.org [Fri, 30 Oct 2009 17:27:52 +0000 (17:27 +0000)]
2009-10-30  Alexander Pavlov  <apavlov@chromium.org>

        Reviewed by Timothy Hatcher.

        Fix Web Inspector crash on the errors/warnings counter click

        RenderObject::createVisiblePosition(const Position& position)
        understands "null Positions", so we can construct such a Position manually.

        https://bugs.webkit.org/show_bug.cgi?id=30499

        * rendering/RenderBox.cpp:
        (WebCore::RenderBox::positionForPoint):

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

12 years ago2009-10-30 Shinichiro Hamaji <hamaji@chromium.org>
hamaji@chromium.org [Fri, 30 Oct 2009 17:26:23 +0000 (17:26 +0000)]
2009-10-30  Shinichiro Hamaji  <hamaji@chromium.org>

        Reviewed by Mark Rowe.

        fast/css/counters/t1204* are not asynchronous anymore
        https://bugs.webkit.org/show_bug.cgi?id=30940

        * fast/css/counters/t1204-increment-00-c-o.html:
        * fast/css/counters/t1204-increment-01-c-o.html:

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

12 years ago2009-10-30 Joanmarie Diggs <joanmarie.diggs@gmail.com>
eric@webkit.org [Fri, 30 Oct 2009 17:19:40 +0000 (17:19 +0000)]
2009-10-30  Joanmarie Diggs  <joanmarie.diggs@gmail.com>

        Reviewed by Xan Lopez.

        https://bugs.webkit.org/show_bug.cgi?id=25534
        [GTK] Objects of ROLE_TABLE should implement the accessible table interface

        Second part of the implementation of AtkTable.

        * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
        (cellAtIndex):
        (webkit_accessible_table_get_column_at_index):
        (webkit_accessible_table_get_row_at_index):
        (webkit_accessible_table_get_caption):
        (atk_table_interface_init):

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

12 years agoTouch WebCorePrefix to try and force a clean build.
bweinstein@apple.com [Fri, 30 Oct 2009 16:40:30 +0000 (16:40 +0000)]
Touch WebCorePrefix to try and force a clean build.

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

12 years ago2009-10-30 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Fri, 30 Oct 2009 16:18:00 +0000 (16:18 +0000)]
2009-10-30  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: Add TimelinePanel into the panels enum.

        https://bugs.webkit.org/show_bug.cgi?id=30915

        * inspector/InspectorFrontend.cpp:
        (WebCore::InspectorFrontend::showPanel):
        * inspector/front-end/inspector.js:
        (WebInspector.showTimelinePanel):

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

12 years agoUnreviewed trivial buildfix.
ossy@webkit.org [Fri, 30 Oct 2009 15:48:50 +0000 (15:48 +0000)]
Unreviewed trivial buildfix.

Patch by Andras Becsi <becsi.andras@stud.u-szeged.hu> on 2009-10-30
[Qt] Buildfix for r50333.

* DumpRenderTree/qt/DumpRenderTree.pro:

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

12 years agoUnreviewed layout test fixes.
kenneth@webkit.org [Fri, 30 Oct 2009 15:00:55 +0000 (15:00 +0000)]
Unreviewed layout test fixes.

Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> on 2009-10-30
The existing excepted results were wrong, due to the visited links not
being reset between tests.

This was fixed in r50329, so updating the results.

* platform/qt/fast/block/margin-collapse/block-inside-inline/010-expected.txt:
* platform/qt/fast/block/margin-collapse/block-inside-inline/011-expected.txt:
* platform/qt/fast/block/margin-collapse/block-inside-inline/012-expected.txt:
* platform/qt/fast/block/margin-collapse/block-inside-inline/015-expected.txt:
* platform/qt/fast/block/margin-collapse/block-inside-inline/016-expected.txt:
* platform/qt/fast/block/margin-collapse/block-inside-inline/020-expected.txt:

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

12 years ago[Qt] Add expected files for new svg tests we pass.
ossy@webkit.org [Fri, 30 Oct 2009 14:13:48 +0000 (14:13 +0000)]
[Qt] Add expected files for new svg tests we pass.
Compared to the Mac expected png files.

Patch by Andras Becsi <becsi.andras@stud.u-szeged.hu> on 2009-10-30
Reviewed by Holger Hans Peter Freyther.

* platform/qt/svg/css/arrow-with-shadow-expected.txt: Added.
* platform/qt/svg/css/circle-in-mask-with-shadow-expected.txt: Added.
* platform/qt/svg/css/clippath-with-shadow-expected.txt: Added.
* platform/qt/svg/css/mask-with-shadow-expected.txt: Added.
* platform/qt/svg/css/path-with-shadow-expected.txt: Added.
* platform/qt/svg/css/stars-with-shadow-expected.txt: Added.
* platform/qt/svg/filters/shadow-on-filter-expected.txt: Added.
* platform/qt/svg/filters/shadow-on-rect-with-filter-expected.txt: Added.

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

12 years ago[Qt] Remove qt/WorkQueue.cpp|h in favor of platform independent WorkQueue
tonikitoo@webkit.org [Fri, 30 Oct 2009 14:02:18 +0000 (14:02 +0000)]
[Qt] Remove qt/WorkQueue.cpp|h in favor of platform independent WorkQueue
https://bugs.webkit.org/show_bug.cgi?id=30953

Patch by Antonio Gomes <tonikitoo@webkit.org> on 2009-10-30
Reviewed by Holger Freyther.

DumpRenderTree/WorkQueue and DumpRenderTree/qt/WorkQueue share mostly the
same implementation. Some Q_ASSERTs differ from ASSERTs basically. Patch
makes qt DRT to share this implementation (as gtk and mac ports do).

* DumpRenderTree/qt/DumpRenderTree.pro:
* DumpRenderTree/qt/WorkQueue.cpp: Removed.
* DumpRenderTree/qt/WorkQueue.h: Removed.

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

12 years agoUnreviewed potential buildbot fix.
kenneth@webkit.org [Fri, 30 Oct 2009 13:51:56 +0000 (13:51 +0000)]
Unreviewed potential buildbot fix.

Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> on 2009-10-30
Second try: Reset page history before running each test.

Apparently the QWebHistory::clear() keeps the current page
in history which is not what we want, so we not additionally
sets the history capacity to 0 (forces removing everything)
and then sets it back to its original value.

* DumpRenderTree/qt/DumpRenderTree.cpp:
(WebCore::DumpRenderTree::resetToConsistentStateBeforeTesting):

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

12 years agochangelog date
yurys@chromium.org [Fri, 30 Oct 2009 13:38:42 +0000 (13:38 +0000)]
changelog date

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

12 years agoIf the owner widget of the page has a palette set, we
kenneth@webkit.org [Fri, 30 Oct 2009 13:29:02 +0000 (13:29 +0000)]
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.

Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> on 2009-10-30
Reviewed by Holger Hans Peter Freyther.

* platform/qt/RenderThemeQt.cpp:
(WebCore::RenderThemeQt::applyTheme):

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

12 years agoUnreviewed potential buildbot fix.
kenneth@webkit.org [Fri, 30 Oct 2009 13:07:34 +0000 (13:07 +0000)]
Unreviewed potential buildbot fix.

Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> on 2009-10-30
Reset page history before running each test.

* DumpRenderTree/qt/DumpRenderTree.cpp:
(WebCore::DumpRenderTree::resetToConsistentStateBeforeTesting):

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

12 years ago2009-10-30 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Fri, 30 Oct 2009 10:50:24 +0000 (10:50 +0000)]
2009-10-30  Pavel Feldman  <pfeldman@chromium.org>

        Not reviewed: Wire CookieJarChromium to the cookies
        backend. This is a final step of a 3-steps raw cookies
        access implementation in Chromium.

        * platform/network/chromium/CookieJarChromium.cpp:
        (WebCore::getRawCookies):
        (WebCore::deleteCookie):

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

12 years ago2009-10-30 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Fri, 30 Oct 2009 10:32:19 +0000 (10:32 +0000)]
2009-10-30  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Fix Chromium crash in console.log in "deeply recursive" function

        Check that result of 'frameSourceName' is not null handle
        before casting it to String.

        Allow V8Proxy::sourceName/sourceLineNumber() to report
        that they have failed due to JavaScript stack overflow.

        https://bugs.webkit.org/show_bug.cgi?id=30904

        * bindings/scripts/CodeGeneratorV8.pm:
        * bindings/v8/ScriptCallStack.cpp:
        (WebCore::ScriptCallStack::create):
        (WebCore::ScriptCallStack::ScriptCallStack):
        * bindings/v8/ScriptCallStack.h:
        * bindings/v8/V8Proxy.cpp:
        (WebCore::V8Proxy::sourceLineNumber):
        (WebCore::V8Proxy::sourceName):
        * bindings/v8/V8Proxy.h:
        * bindings/v8/custom/V8WorkerContextCustom.cpp:
        (WebCore::CALLBACK_FUNC_DECL):

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

12 years agoAllow custom memory allocation control for WebCore's MediaQueryExp
zoltan@webkit.org [Fri, 30 Oct 2009 09:27:28 +0000 (09:27 +0000)]
Allow custom memory allocation control for WebCore's MediaQueryExp
https://bugs.webkit.org/show_bug.cgi?id=30855

Reviewed by Darin Adler.

Inherits MediaQueryExp class from FastAllocBase because it is
instantiated by 'new' in WebCore/css/CSSParser.cpp:4874.

* css/MediaQueryExp.h:

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

12 years ago2009-10-30 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 30 Oct 2009 08:55:56 +0000 (08:55 +0000)]
2009-10-30  Adam Barth  <abarth@webkit.org>

        Reviewed by Mark Rowe.

        Teach git to ignore some files
        https://bugs.webkit.org/show_bug.cgi?id=30951

        Ignore WebKitBuild because we never want to version that directory.
        Also, ignore the xcode project files so git clean doesn't blow away
        your project settings.  Finally, ignore the compiled python files in
        WebKitTools/Script modules because they clutter up git status.

        * .gitignore: Added.

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