- 15 Apr, 2009 7 commits
-
-
oliver@apple.com authored
Reviewed by NOBODY(Build fix) git-svn-id: svn://svn.chromium.org/blink/trunk@42538 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
oliver@apple.com authored
Reviewed by Cameron Zwarich Add the concept of a CachedCall to native code for use in Array prototype and similar functions where a single callback function is called repeatedly with the same number of arguments. Used Array.prototype.filter as the test function and got a 50% win over a naive non-caching specialised version. This makes the native implementation of Array.prototype.filter faster than the JS one once more. git-svn-id: svn://svn.chromium.org/blink/trunk@42537 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ap@webkit.org authored
Don't keep platform objects for authentication challenge in ResourceHandleInternal. We already have a copy in AuthenticationChallenge object. * platform/network/ResourceHandle.cpp: (WebCore::ResourceHandle::clearAuthentication): * platform/network/ResourceHandleInternal.h: (WebCore::ResourceHandleInternal::ResourceHandleInternal): * platform/network/cf/ResourceHandleCFNet.cpp: (WebCore::ResourceHandle::didReceiveAuthenticationChallenge): (WebCore::ResourceHandle::receivedCredential): (WebCore::ResourceHandle::receivedRequestToContinueWithoutCredential): (WebCore::ResourceHandle::receivedCancellation): * platform/network/mac/ResourceHandleMac.mm: (WebCore::ResourceHandle::didReceiveAuthenticationChallenge): (WebCore::ResourceHandle::didCancelAuthenticationChallenge): (WebCore::ResourceHandle::receivedCredential): (WebCore::ResourceHandle::receivedRequestToContinueWithoutCredential): (WebCore::ResourceHandle::receivedCancellation): git-svn-id: svn://svn.chromium.org/blink/trunk@42536 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
simon.fraser@apple.com authored
Reviewed by Dan Bernstein https://bugs.webkit.org/show_bug.cgi?id=25157 Move the run loop observer cleanup from -close to -_close. * WebView/WebView.mm: (-[WebView _close]): (-[WebView close]): git-svn-id: svn://svn.chromium.org/blink/trunk@42535 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ggaren@apple.com authored
Reviewed by Sam Weinig. Nixed some now-defunct autogeneration code. * bindings/scripts/CodeGeneratorJS.pm: git-svn-id: svn://svn.chromium.org/blink/trunk@42534 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
eric.carlson@apple.com authored
Reviewed by NOBODY (OOPS!). Fix <rdar://problem/6755724> <audio> and <video> elements can reference local file:/// URLs from remote in Safari Tests: http/tests/security/local-video-poster-from-remote.html http/tests/security/local-video-source-from-remote.html http/tests/security/local-video-src-from-remote.html * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::loadResource): Don't pass url to media engine if loader->canLoad() says it should not be loaded. 2009-04-14 Eric Carlson <eric.carlson@apple.com> Reviewed by NOBODY (OOPS!). Fix <rdar://problem/6755724> <audio> and <video> elements can reference local file:/// URLs from remote in Safari Test cases to ensure that local 'src', 'poster', and <source> are not loaded. * http/tests/security/local-video-poster-from-remote-expected.txt: Added. * http/tests/security/local-video-poster-from-remote.html: Added. * http/tests/security/local-video-source-from-remote-expected.txt: Added. * http/tests/security/local-video-source-from-remote.html: Added. * http/tests/security/local-video-src-from-remote-expected.txt: Added. * http/tests/security/local-video-src-from-remote.html: Added. * http/tests/security/resources/load-media.cgi: Added. git-svn-id: svn://svn.chromium.org/blink/trunk@42533 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
weinig@apple.com authored
2009-04-14 Sam Weinig <sam@webkit.org> Reviewed by Darin Adler. Part of <rdar://problem/6150868> Fix incorrect handling of content that needs to go into the head element once the head element has been removed. Test: fast/parser/head-content-after-head-removal.html * html/HTMLParser.cpp: (WebCore::HTMLParser::HTMLParser): Remove unneeded initializer of m_head. (WebCore::HTMLParser::handleError): Update since m_head is now a RefPtr. (WebCore::HTMLParser::createHead): Ditto. * html/HTMLParser.h: Make m_head a RefPtr. LayoutTests: 2009-04-14 Sam Weinig <sam@webkit.org> Reviewed by Darin Adler. Part of <rdar://problem/6150868> Test for incorrect handling of content that needs to go into the head element once the head element has been removed. * fast/parser/head-content-after-head-removal-expected.txt: Added. * fast/parser/head-content-after-head-removal.html: Added. git-svn-id: svn://svn.chromium.org/blink/trunk@42532 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
- 14 Apr, 2009 33 commits
-
-
ggaren@apple.com authored
Used svn merge -r42529:42528 to roll out my last patch because it broke the build. * bindings/js/JSDOMGlobalObject.cpp: (WebCore::JSDOMGlobalObject::~JSDOMGlobalObject): (WebCore::JSDOMGlobalObject::findJSProtectedEventListener): (WebCore::JSDOMGlobalObject::findOrCreateJSProtectedEventListener): (WebCore::JSDOMGlobalObject::jsProtectedEventListeners): (WebCore::JSDOMGlobalObject::jsProtectedInlineEventListeners): * bindings/js/JSDOMGlobalObject.h: git-svn-id: svn://svn.chromium.org/blink/trunk@42531 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ggaren@apple.com authored
Reviewed by Sam Weinig. Nixed some now-dead code related to protected event listeners. * bindings/js/JSDOMGlobalObject.cpp: (WebCore::JSDOMGlobalObject::~JSDOMGlobalObject): * bindings/js/JSDOMGlobalObject.h: git-svn-id: svn://svn.chromium.org/blink/trunk@42529 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ggaren@apple.com authored
Reviewed by Sam Weinig. More fix for https://bugs.webkit.org/show_bug.cgi?id=21260 Unbounded memory growth when churning elements with anonymous event handler functions Stop using protected event listeners on SVGElementInstance. * bindings/js/JSSVGElementInstanceCustom.cpp: (WebCore::JSSVGElementInstance::mark): Mark our event listeners, since they're not protected anymore. (WebCore::JSSVGElementInstance::addEventListener): (WebCore::JSSVGElementInstance::removeEventListener): Make unprotected event listeners, since we mark them now. * bindings/scripts/CodeGeneratorJS.pm: Autogenerate event listener invalidation for SVGElementInstance. * svg/SVGElementInstance.h: (WebCore::SVGElementInstance::eventListeners): Added an accessor, for the sake of autogenerated code. * svg/SVGElementInstance.idl: Removed the ProtectedEventListener attribute from event listener properties. Added a CustomMarkFunction attribute, since we need to mark our event listeners. git-svn-id: svn://svn.chromium.org/blink/trunk@42528 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
andersca@apple.com authored
Reviewed by Sam Weinig. - Speculative fix for <rdar://problem/6781422> Protect the plug-in instance proxy in case it's deleted while waiting for a reply. * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::wheelEvent): git-svn-id: svn://svn.chromium.org/blink/trunk@42527 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
sfalken@apple.com authored
git-svn-id: svn://svn.chromium.org/blink/trunk@42526 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
mrowe@apple.com authored
git-svn-id: svn://svn.chromium.org/blink/trunk@42525 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
aroben@apple.com authored
* platform/win/Skipped: Added dom/html/level2/html/table29.html. git-svn-id: svn://svn.chromium.org/blink/trunk@42523 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
xan@webkit.org authored
Fix the build. Add the yarr headers (and only the headers) to the build, so that RegExp.cpp can compile. The headers are ifdefed out with yarr disabled, so we don't need anything else for now. * GNUmakefile.am: git-svn-id: svn://svn.chromium.org/blink/trunk@42522 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
sfalken@apple.com authored
Speeds up WebCore debug build on Windows by 12% on my system, since Visual Studio appears to not optimize for standard header guards in included files. Rubber stamped by Ada Chan. git-svn-id: svn://svn.chromium.org/blink/trunk@42521 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
aroben@apple.com authored
* platform/win/Skipped: Added http/tests/incremental/slow-utf8-text.pl. git-svn-id: svn://svn.chromium.org/blink/trunk@42520 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
weinig@apple.com authored
Reviewed by Adele Peterson. Use a template function to generalize the way we create non-caching JS function getters. * bindings/js/JSDOMWindowCustom.cpp: * bindings/js/JSDOMWindowCustom.h: (WebCore::nonCachingStaticFunctionGetter): (WebCore::JSDOMWindow::customGetOwnPropertySlot): git-svn-id: svn://svn.chromium.org/blink/trunk@42519 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
aroben@apple.com authored
See Bug 25160: Various ecma/Date tests sometimes fail on Windows (but not Mac) <https://bugs.webkit.org/show_bug.cgi?id=25160> Rubber-stamped by Geoff Garen. * Scripts/run-javascriptcore-tests: Skip ecma/Date/15.9.2.2-3.js. git-svn-id: svn://svn.chromium.org/blink/trunk@42518 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
aroben@apple.com authored
Rubber-stamped by Simon Fraser. * platform/win/Skipped: Added transitions/zero-duration-with-non-zero-delay-end.html. git-svn-id: svn://svn.chromium.org/blink/trunk@42517 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
hausmann@webkit.org authored
Reviewed by George Staikos. https://bugs.webkit.org/show_bug.cgi?id=25099 When creating a QNetworkRequest make sure to populate the CacheLoadControlAttribute with the value set by the ResourceRequest::cachePolicy() so that the cache will be used as WebKit expects. git-svn-id: svn://svn.chromium.org/blink/trunk@42516 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
hausmann@webkit.org authored
Reviewed by Simon Hausmann. https://bugs.webkit.org/show_bug.cgi?id=24841 Fix linking against QtWebKit for Symbian and other platforms where the OS ABI distinguishes between an import or an export situation. git-svn-id: svn://svn.chromium.org/blink/trunk@42515 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
adele@apple.com authored
Reviewed by Darin. Initialize WebKitSystemInterface in class methods that could get called before a WebView/WebFrame is set up. This was causing Mail to crash on launch. * Misc/WebCache.mm: (+[WebCache initialize]): * WebView/WebView.mm: (+[WebView initialize]): git-svn-id: svn://svn.chromium.org/blink/trunk@42514 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
kevino@webkit.org authored
Build fix. Move the DerivedSources.make calls into build-wxwebkit so that the FEATURE_DEFINES are parsed properly. git-svn-id: svn://svn.chromium.org/blink/trunk@42513 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
timothy@apple.com authored
a regression caused by the InspectorController becoming refcounted. <rdar://problem/6782944> Reviewed by Darin Adler. * bindings/js/ScriptObject.cpp: (WebCore::ScriptGlobalObject::get): Renamed to better match the other functions. (WebCore::ScriptGlobalObject::remove): Added. Deletes the property. * bindings/js/ScriptObject.h: * inspector/InspectorController.cpp: (WebCore::InspectorController::~InspectorController): Do less work at destruction time since the object lifetime is tied to JS GC. Assert that inspectedPageDestroyed cleared everything needed. (WebCore::InspectorController::inspectedPageDestroyed): Do most of the work that ~InspectorController was doing. (WebCore::InspectorController::scriptObjectReady): Renamed getObject. git-svn-id: svn://svn.chromium.org/blink/trunk@42512 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
dimich@chromium.org authored
Fixing ChangeLog. git-svn-id: svn://svn.chromium.org/blink/trunk@42511 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
dimich@chromium.org authored
Reviewed by Dimitri Glazkov. This is some cleanup motivated by the crash in http://crbug.com/9775 , which happens because of calling window.open inside a window.onload handler. These changes are just part of the fix, along with some asserts to help prevent breakage on future changes. https://bugs.webkit.org/show_bug.cgi?id=25132 * bindings/v8/V8EventListenerList.cpp: (WebCore::V8EventListenerList::add): (WebCore::V8EventListenerList::remove): (WebCore::V8EventListenerList::clear): * bindings/v8/V8EventListenerList.h: (WebCore::V8EventListenerList::size): git-svn-id: svn://svn.chromium.org/blink/trunk@42510 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
dimich@chromium.org authored
Reviewed by Darin Adler. Fix a race that can occur between flex and the perl script that parses its output. * css/maketokenizer: Consume all input. git-svn-id: svn://svn.chromium.org/blink/trunk@42509 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
dimich@chromium.org authored
Reviewed by Dan Bernstein. https://bugs.webkit.org/show_bug.cgi?id=25184 Do not change the text color for selected text in Mac Chromium. * rendering/RenderThemeChromiumMac.h: (WebCore::RenderThemeChromiumMac::supportsSelectionForegroundColors): Now returns false, matching the behavior of Safari on Mac. git-svn-id: svn://svn.chromium.org/blink/trunk@42508 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
justin.garcia@apple.com authored
Reviewed by Eric Seidel. https://bugs.webkit.org/show_bug.cgi?id=25172 Extra partial layout during the first keypress in an empty block Determining if a placeholder needs to be removed requires the creation of a VisiblePosition which was triggering layout before we were finished modifying the DOM for the insert operation. Find out if we need to remove a placeholder near the start of the operation, and if we do remember where it's located. Then, later, remove it along with all of the other DOM operations we perform. Renamed lineBreakExistsAtPosition to lineBreakExistsAtVisiblePosition and added a lineBreakExistsAtPosition that takes in a Position. In InsertTextCommand, we can use the latter, since we normalize manually. removePlaceholderAt now takes in a Position that it assumes has already been checked for a placeholder. No test added as this only effects performance. * editing/BreakBlockquoteCommand.cpp: (WebCore::BreakBlockquoteCommand::doApply): * editing/CompositeEditCommand.cpp: (WebCore::CompositeEditCommand::removePlaceholderAt): (WebCore::CompositeEditCommand::moveParagraphs): (WebCore::CompositeEditCommand::breakOutOfEmptyMailBlockquotedParagraph): (WebCore::CompositeEditCommand::positionAvoidingSpecialElementBoundary): * editing/CompositeEditCommand.h: * editing/DeleteSelectionCommand.cpp: (WebCore::DeleteSelectionCommand::calculateTypingStyleAfterDelete): (WebCore::DeleteSelectionCommand::doApply): * editing/FormatBlockCommand.cpp: (WebCore::FormatBlockCommand::doApply): * editing/InsertLineBreakCommand.cpp: (WebCore::InsertLineBreakCommand::doApply): * editing/InsertParagraphSeparatorCommand.cpp: (WebCore::InsertParagraphSeparatorCommand::doApply): * editing/InsertTextCommand.cpp: (WebCore::InsertTextCommand::input): * editing/htmlediting.cpp: (WebCore::lineBreakExistsAtVisiblePosition): (WebCore::lineBreakExistsAtPosition): * editing/htmlediting.h: git-svn-id: svn://svn.chromium.org/blink/trunk@42507 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
aroben@apple.com authored
JavaScriptCore: Remove support for profile-guided optimization on Windows Rubber-stamped by Steve Falkenburg. * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: Removed the Release_PGO configuration. Also let VS re-order the source files list. WebCore: Remove support for profile-guided optimization on Windows Rubber-stamped by Steve Falkenburg. * WebCore.vcproj/WebCore.vcproj: Removed the Release_PGO configuration. WebKit/win: Remove support for profile-guided optimization on Windows Rubber-stamped by Steve Falkenburg. * WebKit.vcproj/WebKit.vcproj: Removed the Release_PGOInstrument and Release_PGOOptimize configurations. git-svn-id: svn://svn.chromium.org/blink/trunk@42506 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
xan@webkit.org authored
Unreviewed build fix. * GNUmakefile.am: git-svn-id: svn://svn.chromium.org/blink/trunk@42505 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
dimich@chromium.org authored
Reviewed by Dimitri Glazkov. https://bugs.webkit.org/show_bug.cgi?id=25163 Upstream fix for releasing v8 objects on worker thread termination in Chromium. * bindings/v8/V8DOMMap.cpp: (WebCore::domDataList): Now uses Vector instead of HashMap. (WebCore::domDataListMutex): (WebCore::ThreadSpecificDOMData::ThreadSpecificDOMData): remove usage of currentThread(); (WebCore::ThreadSpecificDOMData::~ThreadSpecificDOMData): ditto. (WebCore::NonMainThreadSpecificDOMData::~NonMainThreadSpecificDOMData): moved call to removeAllDOMObjectsInCurrentThread() to ~WorkerScriptController. (WebCore::handleWeakObjectInOwningThread): (WebCore::derefDelayedObjects): (WebCore::removeAllDOMObjectsInCurrentThread): not static anymore. * bindings/v8/V8DOMMap.h: * bindings/v8/WorkerContextExecutionProxy.cpp: (WebCore::WorkerContextExecutionProxy::dispose): removed code that avoided dual-dereference of WorkerContext. (WebCore::WorkerContextExecutionProxy::initContextIfNeeded): this ref() is countered in removeAllDOMObjectsInCurrentThread(), when the WorkerContext is removed from the v8 map. * bindings/v8/WorkerScriptController.cpp: (WebCore::WorkerScriptController::~WorkerScriptController): git-svn-id: svn://svn.chromium.org/blink/trunk@42504 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
aroben@apple.com authored
<https://bugs.webkit.org/show_bug.cgi?id=25183> WebCore.vcproj now uses a set of .vsprops files to store most of its settings. Reviewed by Darin Adler. * WebCore.vcproj/WebCore.vcproj: Moved settings from here into the new .vsprops files. * WebCore.vcproj/WebCoreCFNetwork.vsprops: Added. Contains settings for ports that build against CFNetwork. * WebCore.vcproj/WebCoreCG.vsprops: Added. Contains settings for ports that build against CoreGraphics. * WebCore.vcproj/WebCoreCURL.vsprops: Added. Contains settings for ports that build against libcurl. * WebCore.vcproj/WebCoreCairo.vsprops: Added. Contains settings for ports that build against Cairo. * WebCore.vcproj/WebCoreCommon.vsprops: Added. Contains settings shared by all ports. * WebCore.vcproj/WebCoreMediaQT.vsprops: Added. Contains settings for ports that use QTMovieWin to implement the MediaPlayerPrivate interface. * WebCore.vcproj/WebCorePthreads.vsprops: Added. Contains settings for ports that build against pthreads. git-svn-id: svn://svn.chromium.org/blink/trunk@42503 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ap@webkit.org authored
http/tests/xmlhttprequest/basic-auth.html fails on Tiger. Turns out that NSURLCredentialPersistenceNone doesn't work on Tiger, so we have to use session persistence. * platform/network/mac/ResourceHandleMac.mm: (WebCore::ResourceHandle::didReceiveAuthenticationChallenge): Route the credential through receivedCredential(), ensuring that the Tiger-specific need to use session credentials is honored. (WebCore::ResourceHandle::receivedCredential): On Tiger, change PersistenceNone to PersistenceForSession, because the former doesn't work. git-svn-id: svn://svn.chromium.org/blink/trunk@42502 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
adele@apple.com authored
Reviewed by Darin Adler. Fix for <rdar://problem/6703873> Triple-click quoted line and type Return creates an extra quoted blank line Test: editing/inserting/6703873.html * editing/BreakBlockquoteCommand.cpp: (WebCore::BreakBlockquoteCommand::doApply): If the startNode's original parent is now empty, we can remove it. Its already been cloned and copied with the startNode, so we only need to keep it around if it actually holds some original content, otherwise it will look like an extra empty container in the document. git-svn-id: svn://svn.chromium.org/blink/trunk@42501 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
kov@webkit.org authored
Unreviewed. Update gtk-doc control and base sgml files for 1.1.5. * docs/webkitgtk-docs.sgml: * docs/webkitgtk-sections.txt: git-svn-id: svn://svn.chromium.org/blink/trunk@42500 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
xan@webkit.org authored
* NEWS: updated for 1.1.5 release. git-svn-id: svn://svn.chromium.org/blink/trunk@42499 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
xan@webkit.org authored
Unreviewed version bump in preparation for 1.1.5 release. * configure.ac: git-svn-id: svn://svn.chromium.org/blink/trunk@42498 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
xan@webkit.org authored
Reviewed by Holger Freyther. https://bugs.webkit.org/show_bug.cgi?id=21546 [GTK] ATK accessibility enhancements Add a proper implementation of AtkText::get_text and AtkText::get_character_count, which takes into account non TextControl text. With this the 'Text' field in Accerciser's Interface Viewer is filled correctly. * page/gtk/AccessibilityObjectWrapperAtk.cpp: git-svn-id: svn://svn.chromium.org/blink/trunk@42497 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-