- 15 Apr, 2009 28 commits
-
-
rdar://problem/6785760sfalken@apple.com authored
Reviewed by Adam Roben. * platform/network/ResourceRequestBase.cpp: * platform/network/cf/ResourceRequestCFNet.cpp: (WebCore::initializeMaximumHTTPConnectionCountPerHost): git-svn-id: svn://svn.chromium.org/blink/trunk@42559 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
sfalken@apple.com authored
Changes needed for <rdar://problem/6785760> * win/include/WebKitSystemInterface/WebKitSystemInterface.h: * win/lib/WebKitSystemInterface.lib: * win/lib/WebKitSystemInterface_debug.lib: git-svn-id: svn://svn.chromium.org/blink/trunk@42558 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
weinig@apple.com authored
Reviewed by Mark Rowe. Add special casing to bindings generator so that custom functions starting with xml or xslt conform to WebKit style guidelines. * bindings/js/JSDOMWindowCustom.cpp: (WebCore::JSDOMWindow::xmlHttpRequest): (WebCore::JSDOMWindow::xsltProcessor): * bindings/scripts/CodeGenerator.pm: git-svn-id: svn://svn.chromium.org/blink/trunk@42557 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> * Scripts/run-javascriptcore-tests: Skip ecma/Date/15.9.2.2-2.js (who didn't see it coming?). git-svn-id: svn://svn.chromium.org/blink/trunk@42556 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
eric@webkit.org authored
Remove more dead code from RenderSVGHiddenContainer. lineHeight and baselinePosition used to be on RenderSVGContainer (of which this is a subclass) because RenderSVGContainer used to be a RenderBox and always the renderer for <svg> Now <svg> uses RenderSVGRoot when needing a RenderBox (inside HTML) and RenderSVGViewportContainer (when inside SVG content) so there is no need for RenderSVGHiddenContainer to have these HTML-specific methods. * rendering/RenderSVGHiddenContainer.cpp: * rendering/RenderSVGHiddenContainer.h: git-svn-id: svn://svn.chromium.org/blink/trunk@42555 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
eric@webkit.org authored
Remove unneeded (broken) code from SVG renderers https://bugs.webkit.org/show_bug.cgi?id=25214 Mostly due to my historical confusions about the render tree and some methods not being removed after classes were split. RenderSVGRoot is an RenderBox and should just use all the standard RenderBox methods for inspector and repaint rects. RenderSVGContainer is *not* a RenderBox (any more) and thus doesn't need lineHeight or width/height or calcBounds. RenderSVGViewportContainer had some broken code which tried to see if the click was inside the container at all, but it was using width/height metrics based off of the containing block (from calcWidth) which is wrong (since its real width/height are from its containing viewport not containing block). * rendering/RenderSVGContainer.cpp: (WebCore::RenderSVGContainer::RenderSVGContainer): (WebCore::RenderSVGContainer::layout): * rendering/RenderSVGContainer.h: * rendering/RenderSVGRoot.cpp: * rendering/RenderSVGRoot.h: * rendering/RenderSVGViewportContainer.cpp: (WebCore::RenderSVGViewportContainer::layout): (WebCore::RenderSVGViewportContainer::nodeAtPoint): git-svn-id: svn://svn.chromium.org/blink/trunk@42554 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
justin.garcia@apple.com authored
Updated expected result for a text dragging test that pastes text on Windows but not on Mac (which is expected). git-svn-id: svn://svn.chromium.org/blink/trunk@42553 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
eric@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=25217 Simplify nearestViewportElement and farthestViewportElement using isViewportElement and a for loop Add ASSERT(element) to all these functions since they should never be passed a null element. * svg/SVGLocatable.cpp: (WebCore::isViewportElement): (WebCore::SVGLocatable::nearestViewportElement): (WebCore::SVGLocatable::farthestViewportElement): (WebCore::SVGLocatable::getBBox): (WebCore::SVGLocatable::getCTM): (WebCore::SVGLocatable::getScreenCTM): git-svn-id: svn://svn.chromium.org/blink/trunk@42552 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
weinig@apple.com authored
Reviewed by Anders Carlsson. Remove support for the ObjCIvar extended attribute from the Objective-C bindings generator. It is not used anymore. * bindings/scripts/CodeGeneratorObjC.pm: git-svn-id: svn://svn.chromium.org/blink/trunk@42551 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
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 12 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
-