- 15 Apr, 2009 19 commits
-
-
eric.carlson@apple.com authored
Fix incorrect expected result. * http/tests/security/local-video-source-from-remote-expected.txt: git-svn-id: svn://svn.chromium.org/blink/trunk@42550 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
justin.garcia@apple.com authored
2009-04-15 Justin Garcia <justin.garcia@apple.com> Reviewed by Dan Bernstein. https://bugs.webkit.org/show_bug.cgi?id=25204 Create a fast path for ReplaceSelectionCommand that merges text nodes During simple pastes, where we're just pasting a text node into a run of text, we would split the current text and insert the new node in between. This is slow and we hit this bug: https://bugs.webkit.org/show_bug.cgi?id=6148 in the layout and rendering code where adjacent text nodes don't shape correctly in Arabic. This change creates a fast path for ReplaceSelectionCommand that inserts text directly into the text node that holds the selection (very similar to the fast path we wrote for InsertTextCommand). * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplaceSelectionCommand::doApply): (WebCore::ReplaceSelectionCommand::performTrivialReplace): * editing/ReplaceSelectionCommand.h: * editing/TextIterator.cpp: LayoutTests: 2009-04-15 Justin Garcia <justin.garcia@apple.com> Reviewed by Dan Bernstein. https://bugs.webkit.org/show_bug.cgi?id=25204 Create a fast path for ReplaceSelectionCommand that merges text nodes Simplified DOM/Render trees: * editing/pasteboard/4840662-expected.txt: * platform/mac/editing/pasteboard/bad-placeholder-expected.txt: * platform/mac/editing/pasteboard/paste-match-style-001-expected.txt: * platform/mac/editing/pasteboard/paste-text-019-expected.txt: * platform/mac/editing/pasteboard/paste-xml-expected.txt: Removed redundant styles that were generated during nesting prevention that is no longer needed: * platform/mac/editing/pasteboard/4076267-2-expected.txt: * platform/mac/editing/pasteboard/5156401-1-expected.txt: No longer incorrectly uncollapsing unrendered whitespace: * editing/pasteboard/paste-into-anchor-text-expected.txt: * platform/mac/editing/pasteboard/5387578-expected.txt: No longer invalidating the old selected DOM range during a paste: * editing/pasteboard/copy-in-password-field-expected.txt: git-svn-id: svn://svn.chromium.org/blink/trunk@42549 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
darin@chromium.org authored
Reviewed by Darin Fisher. Move VDMX parsing into the Chromium Linux port. https://bugs.webkit.org/show_bug.cgi?id=25116 VDMX tables are optional tables in TrueType fonts which contain the exact pixel height of a given font at a given pel size. In order to match Windows font metrics we have to use these numbers. Previously, the parsing was performed in Skia. As part of the merge with upstream Skia, an interface for getting table data from a font has been added to Skia and we're moving the parsing into WebKit. This does not change any layout tests. * platform/graphics/chromium/FontPlatformDataLinux.cpp: (WebCore::FontPlatformData::uniqueID): * platform/graphics/chromium/FontPlatformDataLinux.h: * platform/graphics/chromium/FontTrueTypeLinux.cpp: Added. * platform/graphics/chromium/FontTrueTypeLinux.h: Added. * platform/graphics/chromium/SimpleFontDataLinux.cpp: (WebCore::SimpleFontData::platformInit): (WebCore::SimpleFontData::platformWidthForGlyph): git-svn-id: svn://svn.chromium.org/blink/trunk@42548 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
darin@chromium.org authored
Reviewed by Dimitri Glazkov. https://bugs.webkit.org/show_bug.cgi?id=25180 Restore stroked outlines to PlatformContextSkia::drawRect(). These were removed inadvertently in r41805, aka https://bugs.webkit.org/show_bug.cgi?id=24662. SkRect is { left, top, right, bottom }, not { left, top, width, height }. * platform/graphics/skia/PlatformContextSkia.cpp: (PlatformContextSkia::drawRect): git-svn-id: svn://svn.chromium.org/blink/trunk@42547 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
mitz@apple.com authored
Reviewed by Dave Hyatt. - fix <rdar://problem/6777374> Generated content with display: run-in causes a crash Test: fast/runin/generated.html * rendering/RenderBlock.cpp: (WebCore::RenderBlock::handleRunInChild): Check if the run-in block is generated, and if so, make the RenderInline anonymous instead of passing a 0 node to the RenderInline constructor. If the run-in itself is generated, do move :before and :after children from the block into the inline, as they will not be regenerated. Changed nested ifs into early returns. LayoutTests: Reviewed by Dave Hyatt. - test for <rdar://problem/6777374> Generated content with display: run-in causes a crash * fast/runin/generated.html: Added. * platform/mac/fast/runin/generated-expected.checksum: Added. * platform/mac/fast/runin/generated-expected.png: Added. * platform/mac/fast/runin/generated-expected.txt: Added. git-svn-id: svn://svn.chromium.org/blink/trunk@42546 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
darin@chromium.org authored
Reviewed by Geoffrey Garen. https://bugs.webkit.org/show_bug.cgi?id=25192 Expose DOMWindow::removeInlineEventListenerForType and DOMWindow::inlineEventListenerForType as public. * page/DOMWindow.h: git-svn-id: svn://svn.chromium.org/blink/trunk@42545 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
darin@chromium.org authored
Reviewed by Darin Adler. https://bugs.webkit.org/show_bug.cgi?id=25198 Wrap RegisteredEventListener's markEventListeners and invalidateEventListeners in a USE(JSC), since it doesn't compile with V8 bindings. * dom/RegisteredEventListener.h: git-svn-id: svn://svn.chromium.org/blink/trunk@42544 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
eric.carlson@apple.com authored
Reviewed by Alexey Proskuryakov. Use a media file inside of LayoutTests/http/ so a cgi isn't necessary to load it. Fixes a test failure introduced in r42533. * http/tests/resources/silence.mpg: Added. * http/tests/security/local-video-source-from-remote-expected.txt: * http/tests/security/local-video-source-from-remote.html: change the remote url, update a comment. * http/tests/security/resources/load-media.cgi: Removed. git-svn-id: svn://svn.chromium.org/blink/trunk@42543 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
darin@chromium.org authored
Reviewed by Darin Adler. https://bugs.webkit.org/show_bug.cgi?id=25194 Fix a caller of Settings::javaScriptCanOpenWindowsAutomatically() to use the new name. * bindings/v8/custom/V8DOMWindowCustom.cpp: git-svn-id: svn://svn.chromium.org/blink/trunk@42542 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ap@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=25186 There is no XSLT component in bugzilla * projects/xslt/index.html: Changed to search by bug title. git-svn-id: svn://svn.chromium.org/blink/trunk@42541 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ariya@webkit.org authored
Reviewed by Ariya Hidayat. Rename extend() method in QWebElementSelection to append(). * Api/qwebelement.cpp: (QWebElementSelection::append): * Api/qwebelement.h: * tests/qwebelement/tst_qwebelement.cpp: (tst_QWebElement::appendSelection): git-svn-id: svn://svn.chromium.org/blink/trunk@42540 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
hausmann@webkit.org authored
Reviewed by Simon Hausmann. Fixed nit/typo in QWebElement documentation. git-svn-id: svn://svn.chromium.org/blink/trunk@42539 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
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 21 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
-