1. 23 Apr, 2009 6 commits
  2. 22 Apr, 2009 26 commits
    • mrowe@apple.com's avatar
      Update test results after Blackbeard's change in r42752 to disable geolocation. · 484a1ef7
      mrowe@apple.com authored
      * fast/dom/Window/window-properties-expected.txt:
      * fast/dom/navigator-detached-no-crash-expected.txt:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42758 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      484a1ef7
    • simon.fraser@apple.com's avatar
      2009-04-22 Pierre d'Herbemont <pdherbemont@apple.com> · 3396260e
      simon.fraser@apple.com authored
              Reviewed by Simon Fraser.
      
              https://bugs.webkit.org/show_bug.cgi?id=24849
      
              Add tests for media 'played' attribute (missed in r42619).
      
              * media/video-played-expected.txt: Added.
              * media/video-played.html: Added.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42757 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      3396260e
    • andersca@apple.com's avatar
      2009-04-22 Anders Carlsson <andersca@apple.com> · 602aae92
      andersca@apple.com authored
              Reviewed by Oliver Hunt.
      
              Fix <rdar://problem/6792694>
              
              When we're trying to instantiate a plug-in and the plug-in host has died, we need to invalidate the
              instance so that it doesn't stick around and do bad things.
              
              * Plugins/Hosted/NetscapePluginHostManager.mm:
              (WebKit::NetscapePluginHostManager::instantiatePlugin):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42756 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      602aae92
    • barraclough@apple.com's avatar
      2009-04-22 Gavin Barraclough <barraclough@apple.com> · a20aa64a
      barraclough@apple.com authored
              Rubber stamped by Sam "Blackbeard" Weinig.
      
              Although pirates do spell the word 'generate' as 'genertate',
              webkit developers do not.  Fixerate.
      
              * yarr/RegexJIT.cpp:
              (JSC::Yarr::RegexGenerator::generateAssertionBOL):
              (JSC::Yarr::RegexGenerator::generateAssertionEOL):
              (JSC::Yarr::RegexGenerator::generateAssertionWordBoundary):
              (JSC::Yarr::RegexGenerator::generatePatternCharacterSingle):
              (JSC::Yarr::RegexGenerator::generatePatternCharacterPair):
              (JSC::Yarr::RegexGenerator::generatePatternCharacterFixed):
              (JSC::Yarr::RegexGenerator::generatePatternCharacterGreedy):
              (JSC::Yarr::RegexGenerator::generatePatternCharacterNonGreedy):
              (JSC::Yarr::RegexGenerator::generateCharacterClassSingle):
              (JSC::Yarr::RegexGenerator::generateCharacterClassFixed):
              (JSC::Yarr::RegexGenerator::generateCharacterClassGreedy):
              (JSC::Yarr::RegexGenerator::generateCharacterClassNonGreedy):
              (JSC::Yarr::RegexGenerator::generateTerm):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42755 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      a20aa64a
    • barraclough@apple.com's avatar
      2009-04-22 Gavin Barraclough <barraclough@apple.com> · 3576db13
      barraclough@apple.com authored
              Reviewed by Sam "Blackbeard" Weinig.
      
              Improvements to YARR JIT.  This patch expands support in three key areas:
                  * Add (temporary) support for falling back to PCRE for expressions not supported.
                  * Add support for x86_64 and Windows.
                  * Add support for singly quantified parentheses (? and ??), alternatives within
                    parentheses, and parenthetical assertions.
      
              * runtime/RegExp.cpp:
              (JSC::RegExp::match):
              * yarr/RegexJIT.cpp:
              (JSC::Yarr::RegexGenerator::storeToFrame):
              (JSC::Yarr::RegexGenerator::storeToFrameWithPatch):
              (JSC::Yarr::RegexGenerator::loadFromFrameAndJump):
              (JSC::Yarr::RegexGenerator::AlternativeBacktrackRecord::AlternativeBacktrackRecord):
              (JSC::Yarr::RegexGenerator::TermGenerationState::resetAlternative):
              (JSC::Yarr::RegexGenerator::TermGenerationState::resetTerm):
              (JSC::Yarr::RegexGenerator::TermGenerationState::jumpToBacktrack):
              (JSC::Yarr::RegexGenerator::TermGenerationState::plantJumpToBacktrackIfExists):
              (JSC::Yarr::RegexGenerator::TermGenerationState::addBacktrackJump):
              (JSC::Yarr::RegexGenerator::TermGenerationState::linkAlternativeBacktracks):
              (JSC::Yarr::RegexGenerator::TermGenerationState::propagateBacktrackingFrom):
              (JSC::Yarr::RegexGenerator::genertateAssertionBOL):
              (JSC::Yarr::RegexGenerator::genertateAssertionEOL):
              (JSC::Yarr::RegexGenerator::matchAssertionWordchar):
              (JSC::Yarr::RegexGenerator::genertateAssertionWordBoundary):
              (JSC::Yarr::RegexGenerator::genertatePatternCharacterSingle):
              (JSC::Yarr::RegexGenerator::genertatePatternCharacterPair):
              (JSC::Yarr::RegexGenerator::genertatePatternCharacterFixed):
              (JSC::Yarr::RegexGenerator::genertatePatternCharacterGreedy):
              (JSC::Yarr::RegexGenerator::genertatePatternCharacterNonGreedy):
              (JSC::Yarr::RegexGenerator::genertateCharacterClassSingle):
              (JSC::Yarr::RegexGenerator::genertateCharacterClassFixed):
              (JSC::Yarr::RegexGenerator::genertateCharacterClassGreedy):
              (JSC::Yarr::RegexGenerator::genertateCharacterClassNonGreedy):
              (JSC::Yarr::RegexGenerator::generateParenthesesDisjunction):
              (JSC::Yarr::RegexGenerator::generateParenthesesSingle):
              (JSC::Yarr::RegexGenerator::generateParentheticalAssertion):
              (JSC::Yarr::RegexGenerator::generateTerm):
              (JSC::Yarr::RegexGenerator::generateDisjunction):
              (JSC::Yarr::RegexGenerator::generateEnter):
              (JSC::Yarr::RegexGenerator::generateReturn):
              (JSC::Yarr::RegexGenerator::RegexGenerator):
              (JSC::Yarr::RegexGenerator::generate):
              (JSC::Yarr::RegexGenerator::compile):
              (JSC::Yarr::RegexGenerator::generationFailed):
              (JSC::Yarr::jitCompileRegex):
              (JSC::Yarr::executeRegex):
              * yarr/RegexJIT.h:
              (JSC::Yarr::RegexCodeBlock::RegexCodeBlock):
              (JSC::Yarr::RegexCodeBlock::~RegexCodeBlock):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42754 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      3576db13
    • timothy@apple.com's avatar
      Fix a crash in Mail when forwarding a specific HTML email. · 3429aa03
      timothy@apple.com authored
              Caused by the fix for <rdar://problem/6512520> (r42096).
              Unable to create a test case that works outside of Mail.
      
              <rdar://problem/6796069>
      
              Reviewed by Ada Chan.
      
              * editing/markup.cpp:
              (WebCore::createMarkup): Null check pastEnd before trying to
              call Range::compareBoundaryPoints.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42753 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      3429aa03
    • weinig@apple.com's avatar
      JavaScriptCore: · 37823851
      weinig@apple.com authored
      2009-04-22  Sam Weinig  <sam@webkit.org>
      
              Rubber-stamped by Darin Adler.
      
              Fix for <rdar://problem/6816957>
              Turn off Geolocation by default
      
              * Configurations/FeatureDefines.xcconfig:
      
      WebCore:
      
      2009-04-22  Sam Weinig  <sam@webkit.org>
      
              Rubber-stamped by Darin Adler.
      
              Fix for <rdar://problem/6816957>
              Turn off Geolocation by default
      
              * Configurations/FeatureDefines.xcconfig:
      
      WebKit/mac:
      
      2009-04-22  Sam Weinig  <sam@webkit.org>
      
              Rubber-stamped by Darin Adler.
      
              Fix for <rdar://problem/6816957>
              Turn off Geolocation by default
      
              * Configurations/FeatureDefines.xcconfig:
      
      WebKitTools:
      
      2009-04-22  Sam Weinig  <sam@webkit.org>
      
              Rubber-stamped by Darin Adler.
      
              Fix for <rdar://problem/6816957>
              Turn off Geolocation by default
      
              * Scripts/build-webkit:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42752 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      37823851
    • eric@webkit.org's avatar
      Rubber-stamped by David Hyatt. · 413a44ed
      eric@webkit.org authored
              Change RenderSVGImage to dump as RenderSVGImage instead of RenderImage
      
              * rendering/RenderSVGImage.h:
              (WebCore::RenderSVGImage::renderName):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42751 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      413a44ed
    • timothy@apple.com's avatar
      Fix a crash on Gmail when they remove a "before unload" event listener when · 1c35a9a2
      timothy@apple.com authored
              it was never added to the pending map in the first place.
      
              <rdar://problem/6814144>
      
              Reviewed by Darin Adler.
      
              * page/DOMWindow.cpp:
              (WebCore::allowsPendingBeforeUnloadListeners): Renamed from shouldAddPendingBeforeUnloadListener.
              (WebCore::DOMWindow::addEventListener): Call allowsPendingBeforeUnloadListeners now.
              (WebCore::DOMWindow::removeEventListener): Call allowsPendingBeforeUnloadListeners before
              removing the before unload listener.
              (WebCore::DOMWindow::clearAttributeEventListener): Ditto.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42750 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      1c35a9a2
    • ariya@webkit.org's avatar
      2009-04-22 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org> · a9fac0b8
      ariya@webkit.org authored
              Reviewed by Ariya Hidayat.
      
              Made windowed plugins move/resize synchronized with the painting, so
              that windowed plugins are not moved before the rest of the parent
              frame during scrolling.
      
              * plugins/qt/PluginContainerQt.cpp:
              (PluginContainerQt::PluginContainerQt):
              (PluginContainerQt::requestGeometry):
              (PluginContainerQt::adjustGeometry):
              * plugins/qt/PluginContainerQt.h:
              * plugins/qt/PluginViewQt.cpp:
              (WebCore::PluginView::updatePluginWidget):
              (WebCore::PluginView::paint):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42749 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      a9fac0b8
    • hausmann@webkit.org's avatar
      2009-04-22 Simon Hausmann <simon.hausmann@nokia.com> · 1e07dedb
      hausmann@webkit.org authored
              Reviewed by Ariya Hidayat.
      
              Fix various bugs in the X11 Qt plugin focus handling.
      
              Notify the focus controller on activation/deactivation of the plugin and
              set focus on the plugin's element when it receives the window system
              focus.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42748 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      1e07dedb
    • ariya@webkit.org's avatar
      2009-04-22 Tamas Szirbucz <szirbucz.tamas@stud.u-szeged.hu> · d6976e2b
      ariya@webkit.org authored
              Reviewed by Ariya Hidayat.
      
              https://bugs.webkit.org/show_bug.cgi?id=25023
              Delete reply in QNetworkReplyHandler::abort() to avoid leak.
      
              * platform/network/qt/QNetworkReplyHandler.cpp:
              (WebCore::QNetworkReplyHandler::abort):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42747 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      d6976e2b
    • jhoneycutt@apple.com's avatar
      2009-04-21 Jon Honeycutt <jhoneycutt@apple.com> · 5624312b
      jhoneycutt@apple.com authored
              Allow the UI delegate to control cursor-setting.
      
              Reviewed by Ada Chan.
      
              WebCore/:
              * page/Chrome.cpp:
              (WebCore::Chrome::setCursor):
              Pass the call to the client.
      
              * page/Chrome.h:
      
              * page/ChromeClient.h:
              (WebCore::ChromeClient::setCursor):
              Stubbed; returns false.
      
              * platform/Cursor.h:
              Define PlatformCursorHandle for each platform.
      
              * platform/win/WidgetWin.cpp:
              Reordered some includes. Added an include of Page.h.
              (WebCore::Widget::setCursor):
              Fixed a typo in the comment about ignoreNextSetCursor. Get the Page, and
              call its Chrome's setCursor() method with the passed cursor. Fall back
              to SetCursor() if the Page is not available.
      
              * plugins/win/PluginViewWin.cpp:
              (WebCore::PluginView::handleMouseEvent):
              Remove an unused variable. Cleaned up some whitespace.
      
              WebKit/win/:
              * Interfaces/IWebUIDelegatePrivate.idl:
              Added a function to the IWebUIDelegatePrivate5 interface.
      
              * WebCoreSupport/WebChromeClient.cpp:
              (WebChromeClient::setCursor):
              Try to call the UI delegate's webViewSetCursor() method. If it fails,
              fall back to calling SetCursor() with the passed cursor.
      
              * WebCoreSupport/WebChromeClient.h:
      
              * WebView.cpp:
              (WebViewWndProc):
              Call the Chrome's setCursor() method with the last set cursor.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42746 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      5624312b
    • oliver@apple.com's avatar
      Build fix · 3d2c0785
      oliver@apple.com authored
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42745 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      3d2c0785
    • oliver@apple.com's avatar
      Build fix · 7043ffa1
      oliver@apple.com authored
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42744 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      7043ffa1
    • oliver@apple.com's avatar
      Improve String.replace performance slightly · be864702
      oliver@apple.com authored
      Reviewed by Maciej Stachowiak
      
      Apply our vm reentry caching logic to String.replace with global
      regexes.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42743 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      be864702
    • mitz@apple.com's avatar
      - updated another result with action element information · 5db41f15
      mitz@apple.com authored
              * fast/encoding/mailto-always-utf-8-expected.txt:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42742 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      5db41f15
    • mitz@apple.com's avatar
      WebKit/mac: · 4c07a084
      mitz@apple.com authored
              Reviewed by Jon Honeycutt.
      
              - Mac part of fixing for <rdar://problem/6755137> Action dictionary for
                policy decision is missing keys when full-page zoom is used
      
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::actionDictionary): Use absoluteLocation() instead
              of pageX() and pageY(), which are adjusted for zoom.
      
      WebKit/win:
      
              Reviewed by Jon Honeycutt.
      
              - Windows part of fixing <rdar://problem/6755137> Action dictionary for
                policy decision is missing keys when full-page zoom is used
      
              * WebActionPropertyBag.cpp:
              (WebActionPropertyBag::Read): Use absoluteLocation() instead of
              clientX() and clientY(), which are adjusted for zoom.
      
      LayoutTests:
      
              - test for <rdar://problem/6755137> Action dictionary for policy
                decision is missing keys when full-page zoom is used
      
              * fast/loader/policy-delegate-action-hit-test-zoomed-expected.txt: Added.
              * fast/loader/policy-delegate-action-hit-test-zoomed.html: Added.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42741 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      4c07a084
    • mitz@apple.com's avatar
      WebKit/win: · 54f057a7
      mitz@apple.com authored
              Reviewed by Jon Honeycutt.
      
              - implement DOMNode::nodeName()
      
              * DOMCoreClasses.cpp:
              (DOMNode::nodeName):
      
      WebKitTools:
      
              Reviewed by Jon Honeycutt.
      
              - dump the node in the element dictionary in the action information
                passed to the policy delegate
      
              * DumpRenderTree/mac/PolicyDelegate.mm:
              (-[PolicyDelegate webView:decidePolicyForNavigationAction:request:frame:decisionListener:]):
              * DumpRenderTree/win/PolicyDelegate.cpp:
              (dumpPath):
              (PolicyDelegate::decidePolicyForNavigationAction):
      
      LayoutTests:
      
              Reviewed by Jon Honeycutt.
      
              - updated result that shows the node in the element dictionary in the
                action information passed to the policy delegate
      
              * http/tests/security/feed-urls-from-remote-expected.txt:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42740 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      54f057a7
    • dglazkov@chromium.org's avatar
      2009-04-21 John Abd-El-Malek <jam@google.com> · 34246859
      dglazkov@chromium.org authored
              Reviewed by Dimitri Glazkov.
      
              Add a method to purge the Chromium plugin list cache.
              https://bugs.webkit.org/show_bug.cgi?id=25318
      
              * plugins/chromium/PluginDataChromium.cpp:
              (WebCore::resetChromiumPluginCache):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42739 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      34246859
    • mrowe@apple.com's avatar
      Fix <https://bugs.webkit.org/show_bug.cgi?id=25164> / <rdar://problem/6786319>. · 2b1e10e9
      mrowe@apple.com authored
      Reviewed by Darin Adler.
      
      We need to ensure that XMLTokenizer sets the current DocLoader before calling in to
      any libxml2 methods that may trigger a load.  The presence of a DocLoader indicates
      that the load was originated by WebCore's use of libxml2 and that we should enforce
      the same-origin policy on it.  XMLTokenizer::initializeParserContext,
      XMLTokenizer::doWrite and XMLTokenizer::doEnd were three methods that were not setting
      the current DocLoader when they should have.
      
      The XMLTokenizerScope class is introduced to simplify the pattern of saving, setting and
      restoring the current DocLoader and libxml2 error handlers.  The DocLoader and error handlers
      are saved and set when the scope is allocated, and restored to their previous values when
      the scope is exited.
      
      Test: http/tests/security/xss-DENIED-xml-external-entity.xhtml
      
      * GNUmakefile.am:
      * WebCore.pro:
      * WebCore.scons:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * dom/XMLTokenizer.cpp:
      * dom/XMLTokenizer.h:
      * dom/XMLTokenizerLibxml2.cpp:
      (WebCore::matchFunc):
      (WebCore::shouldAllowExternalLoad):
      (WebCore::openFunc):
      (WebCore::XMLTokenizer::doWrite):
      (WebCore::XMLTokenizer::initializeParserContext):
      (WebCore::XMLTokenizer::doEnd):
      (WebCore::xmlDocPtrForString):
      * dom/XMLTokenizerScope.cpp:
      (WebCore::XMLTokenizerScope::XMLTokenizerScope):
      (WebCore::XMLTokenizerScope::~XMLTokenizerScope):
      * dom/XMLTokenizerScope.h:
      * xml/XSLStyleSheet.cpp:
      (WebCore::XSLStyleSheet::parseString):
      * xml/XSLTProcessor.cpp:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42738 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      2b1e10e9
    • weinig@apple.com's avatar
      WebCore: · 18fa4e64
      weinig@apple.com authored
      2009-04-21  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Dan Bernstein.
      
              Fix for <rdar://problem/5874009>
              Add port 3659 (apple-sasl / PasswordServer) to the list of blocked ports.
      
              * platform/network/ResourceHandle.cpp:
              (WebCore::portAllowed):
      
      LayoutTests:
      
      2009-04-21  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Dan Bernstein.
      
              Update test and results for <rdar://problem/5874009>
              Add port 3659 (apple-sasl / PasswordServer) to the list of blocked ports.
      
              * platform/mac-tiger/security/block-test-expected.txt:
              * platform/mac/security/block-test-expected.txt:
              * security/block-test.html:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42737 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      18fa4e64
    • justin.garcia@apple.com's avatar
      520322ef
    • justin.garcia@apple.com's avatar
      WebCore: · cff664ba
      justin.garcia@apple.com authored
      2009-04-21  Justin Garcia  <justin.garcia@apple.com>
      
              Reviewed by Dan Bernstein.
      
              https://bugs.webkit.org/show_bug.cgi?id=25320
              Crash when changing block styles in a root that contains no visible content (but contains nodes with renderers)
      
              * editing/CompositeEditCommand.cpp:
              (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary): If the enclosing block is the 
              root editable element and it contains no visible content, create a new block but don't try and move 
              content into it, since there's nothing for moveParagraphs to move.
      
      LayoutTests:
      
      2009-04-21  Justin Garcia  <justin.garcia@apple.com>
              
              Reviewed by Dan Bernstein.
      
              https://bugs.webkit.org/show_bug.cgi?id=25320
              Crash when changing block styles in a root that contains no visible content (but contains nodes with renderers)
      
              * editing/execCommand/25320-expected.txt: Added.
              * editing/execCommand/25320.html: Added.
              * platform/mac/fast/forms/caret-rtl-expected.checksum: Replaced.
              * platform/mac/fast/forms/caret-rtl-expected.txt: Replaced.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42735 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      cff664ba
    • ggaren@apple.com's avatar
      2009-04-21 Geoffrey Garen <ggaren@apple.com> · 5dca3c2b
      ggaren@apple.com authored
              Reviewed by Cameron Zwarich and Oliver Hunt.
              
              Re-Fixed <rdar://problem/6406045> REGRESSION: Stack overflow on PowerPC on
              fast/workers/use-machine-stack.html (22531)
              
              SunSpider reports no change.
              
              Use a larger recursion limit on the main thread (because we can, and
              there's some evidence that it may improve compatibility), and a smaller
              recursion limit on secondary threads (because they tend to have smaller
              stacks).
      
              * interpreter/Interpreter.cpp:
              (JSC::Interpreter::execute):
              (JSC::Interpreter::prepareForRepeatCall):
              * interpreter/Interpreter.h:
              (JSC::): Ditto. I wrote the recursion test slightly funny, so that the
              common case remains a simple compare to constant.
      
              * runtime/ArrayPrototype.cpp:
              (JSC::arrayProtoFuncToString):
              (JSC::arrayProtoFuncToLocaleString):
              (JSC::arrayProtoFuncJoin): Conservatively, set the array recursion limits
              to the lower, secondary thread limit. We can do something fancier if
              compatibility moves us, but this seems sufficient for now.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42734 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      5dca3c2b
    • sfalken@apple.com's avatar
      2009-04-21 Steve Falkenburg <sfalken@apple.com> · 27408f3f
      sfalken@apple.com authored
              Minor clean-ups to WebKitCreateInstance change.
              
              Reviewed by Jon Honeycutt.
      
              * WebKitCOMAPI.cpp:
              (classFactory):
              (WebKitCreateInstance):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42733 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      27408f3f
  3. 21 Apr, 2009 8 commits
    • darin@apple.com's avatar
      WebCore: · bdcc85b9
      darin@apple.com authored
      2009-04-21  Darin Adler  <darin@apple.com>
      
              Reviewed by Dan Bernstein.
      
              Bug 25162: REGRESSION (r41176-r41242): Drag-selection above/below the line does not select to beginning/end
              https://bugs.webkit.org/show_bug.cgi?id=25162
              rdar://problem/6764354
      
              * page/Settings.cpp:
              (WebCore::Settings::Settings): Initialize editing behavior to Mac-style for PLATFORM(MAC).
              Later we may want to change this default to encompass other versions running on Mac.
      
              * page/Settings.h: Added EditingBehavior, setEditingBehavior, editingBehavior, and
              m_editingBehavior. Also moved m_maximumDecodedImageSize out of the middle of all
              the bit fields.
      
              * platform/graphics/IntPoint.h: Added a constructor to turn an IntSize into an IntPoint.
              I'm not sure the distinction here is serving us well at the moment. When converting from
              global to local coordinates you want to do IntPoint - IntPoint and have the result be
              another IntPoint, not an IntSize. And so on.
      
              * rendering/RenderBlock.cpp:
              (WebCore::positionForPointRespectingEditingBoundaries): Changed to use pointers more and
              separate coordinates less.
              (WebCore::RenderBlock::positionForPointWithInlineChildren): Turned into a member function.
              Added separate cases to support the Mac and Windows behavior.
              (WebCore::RenderBlock::positionForPoint): Updated for the change above. Also moved the
              computation of pointInContents closer to the place it's used.
      
              * rendering/RenderBlock.h: Updated for the new private member function.
      
      LayoutTests:
      
      2009-04-21  Darin Adler  <darin@apple.com>
      
              Reviewed by Dan Bernstein.
      
              Bug 25162: REGRESSION (r41176-r41242): Drag-selection above/below the line does not select to beginning/end
              https://bugs.webkit.org/show_bug.cgi?id=25162
              rdar://problem/6764354
      
              * editing/selection/resources/click-in-margins-inside-editable-div.js:
              Updated to expect different results on the Mac.
              * editing/selection/resources/click-in-padding-with-multiple-line-boxes.js: Ditto.
      
              * fast/css-generated-content/positioned-background-hit-test-crash.html: Clear the selection at
              the end of the test so the result won't include a caret.
      
              * platform/mac/editing/selection/click-in-margins-inside-editable-div-expected.txt:
              * platform/mac/editing/selection/click-in-padding-with-multiple-line-boxes-expected.txt:
              Copied from LayoutTests/editing/selection. Then changed to expect the different Mac results.
      
              * platform/mac/editing/selection/select-from-textfield-outwards-expected.checksum:
              * platform/mac/editing/selection/select-from-textfield-outwards-expected.png:
              * platform/mac/editing/selection/select-from-textfield-outwards-expected.txt:
              Changed to expect the different Mac results.
      
              * platform/mac/fast/css-generated-content/positioned-background-hit-test-crash-expected.txt:
              Changed to expect no caret.
      
              * platform/win/editing/selection/click-in-margins-inside-editable-div-expected.txt:
              * platform/win/editing/selection/click-in-padding-with-multiple-line-boxes-expected.txt:
              Copied from editing/selection.
      
              * platform/win/editing/selection/select-from-textfield-outwards-expected.checksum:
              * platform/win/editing/selection/select-from-textfield-outwards-expected.png:
              * platform/win/editing/selection/select-from-textfield-outwards-expected.txt:
              Copied from platform/mac/editing/selection.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42732 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      bdcc85b9
    • aroben@apple.com's avatar
      Update StringsNotToBeLocalized.txt for recent changes · 2befb8d2
      aroben@apple.com authored
              Rubber-stamped by John Sullivan.
      
              * StringsNotToBeLocalized.txt:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42731 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      2befb8d2
    • andersca@apple.com's avatar
      2009-04-21 Anders Carlsson <andersca@apple.com> · d42b410e
      andersca@apple.com authored
              Reviewed by Darin Adler and Kevin Decker.
      
              WebKit side of <rdar://problem/6781642>.
              
              When we call resize with an actual changed size, block until the plug-in host is done.
              
              * Plugins/Hosted/NetscapePluginInstanceProxy.h:
              * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
              (WebKit::NetscapePluginInstanceProxy::resize):
              * Plugins/Hosted/WebHostedNetscapePluginView.h:
              * Plugins/Hosted/WebHostedNetscapePluginView.mm:
              (-[WebHostedNetscapePluginView updateAndSetWindow]):
              * Plugins/Hosted/WebKitPluginHost.defs:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42730 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      d42b410e
    • aroben@apple.com's avatar
      Windows build fix after r42726 · bbfe6e21
      aroben@apple.com authored
              * DumpRenderTree/win/DumpRenderTree.cpp: Touched to force a rebuild.
              * DumpRenderTree/win/DumpRenderTree.vcproj: Delete any pre-r42726
              manifest files during the pre-build event.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42729 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      bbfe6e21
    • timothy@apple.com's avatar
      Another attempt to fix the Windows and QT builds. · b39decca
      timothy@apple.com authored
      git-svn-id: svn://svn.chromium.org/blink/trunk@42728 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      b39decca
    • timothy@apple.com's avatar
      Attempt to fix the Windows and QT builds. · 10463fc2
      timothy@apple.com authored
      git-svn-id: svn://svn.chromium.org/blink/trunk@42727 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      10463fc2
    • sfalken@apple.com's avatar
      WebKit/win: · d95109ca
      sfalken@apple.com authored
      2009-04-21  Steve Falkenburg  <sfalken@apple.com>
      
              Add registry-free CoCreateInstance API for WebKit clients: WebKitCreateInstance.
      
              Manifest-based registry-free COM continues to work for clients that have embedded
              manifests with isolated COM information.
              
              Reviewed by Adam Roben.
      
              * WebKit.vcproj/WebKit.def: Added WebKitCreateInstance.
              * WebKit.vcproj/WebKit.vcproj: Link against rpcrt4.dll for UUID hashing.
              * WebKit.vcproj/WebKit_debug.def: Added WebKitCreateInstance.
              * WebKitCOMAPI.cpp: Added.
              (CLSIDHash::hash):
              (CLSIDHash::equal):
              (CLSIDHashTraits::constructDeletedValue):
              (CLSIDHashTraits::isDeletedValue):
              (classFactory):
              (WebKitCreateInstance): New API.
              * WebKitCOMAPI.h: Added.
      
      WebKitTools:
      
      2009-04-21  Steve Falkenburg  <sfalken@apple.com>
      
              Use new WebKitCreateInstance API instead of CoCreateInstance
              or COMPtr's createInstance to instantiate WebKit COM objects.
      
              Reviewed by Adam Roben.
      
              * DumpRenderTree/win/DumpRenderTree.cpp:
              (initialize):
              (runTest):
              (createWebViewAndOffscreenWindow):
              (main):
              * DumpRenderTree/win/DumpRenderTree.vcproj:
              * DumpRenderTree/win/GCControllerWin.cpp:
              (GCController::collect):
              (GCController::collectOnAlternateThread):
              (GCController::getJSObjectCount):
              * DumpRenderTree/win/LayoutTestControllerWin.cpp:
              (LayoutTestController::keepWebHistory):
              (LayoutTestController::webHistoryItemCount):
              (LayoutTestController::setIconDatabaseEnabled):
              * DumpRenderTree/win/WorkQueueItemWin.cpp:
              (LoadItem::invoke):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42726 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      d95109ca
    • timothy@apple.com's avatar
      Change pending unload and beforeunload counts to store the listeners in a... · 37cdb106
      timothy@apple.com authored
      Change pending unload and beforeunload counts to store the listeners in a single data structure that can be quickly iterated for dispatch.
      
      WebCore:
      
      2009-04-17  Timothy Hatcher  <timothy@apple.com>
      
              Change pending unload and beforeunload counts to store the listeners
              in a single data structure that can be quickly iterated for dispatch.
      
              <rdar://problem/6383352&6383379&6383940>
      
              Reviewed by Darin Adler.
      
              * WebCore.base.exp: Change what symbols are exported.
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::stopLoading): Remove count updating code
              and move an if inside a block already checking m_frame->document().
              * page/Chrome.cpp: Remove disableSuddenTermination/enableSuddenTermination.
              * page/Chrome.h: Ditto.
              * page/ChromeClient.h: Ditto.
              * page/DOMWindow.cpp:
              (WebCore::pendingUnloadEventListenerMap): Create a static map.
              (WebCore::pendingBeforeUnloadEventListenerMap): Ditto.
              (WebCore::addPendingEventListener): Add the event listener to the map.
              (WebCore::removePendingEventListener): Remove the event listener from the map.
              (WebCore::removePendingEventListeners): Remove all listeners for the window.
              (WebCore::dispatchWindowEventToListeners): Dispatch the event to the given listeners.
              (WebCore::DOMWindow::dispatchAllPendingBeforeUnloadEvents): Send the beforeunload event.
              (WebCore::DOMWindow::pendingUnloadEventListeners): Return a count of pending listeners.
              (WebCore::DOMWindow::dispatchAllPendingUnloadEvents): Send the unload event.
              (WebCore::DOMWindow::~DOMWindow): Remove the window from both event listener maps.
              (WebCore::DOMWindow::addEventListener): Call addPendingEventListener when needed.
              (WebCore::DOMWindow::removeEventListener): Call removePendingEventListener when needed.
              (WebCore::DOMWindow::removeAllEventListeners): Call removePendingEventListeners.
              (WebCore::DOMWindow::removeInlineEventListenerForType): Call removePendingEventListener when needed.
              * page/DOMWindow.h:
              (WebCore::DOMWindow::frame): Changed to be const.
              * page/EventHandler.cpp:
              (WebCore::EventHandler::EventHandler): Remove count tracking code.
              * page/EventHandler.h: Ditto.
              * page/Page.cpp:
              (WebCore::Page::Page): Ditto.
              * page/Page.h: Ditto.
      
      WebKit/mac:
      
      2009-04-17  Timothy Hatcher  <timothy@apple.com>
      
              Change how sudden termination works with WebView teardown.
      
              <rdar://problem/6383352&6383379&6383940>
      
              Reviewed by Darin Adler.
      
              * WebCoreSupport/WebChromeClient.h: Remove disableSuddenTermination/enableSuddenTermination.
              * WebCoreSupport/WebChromeClient.mm: Ditto.
              * WebView/WebFrame.mm:
              (-[WebFrame _pendingFrameUnloadEventCount]): Ask the DOMWindow.
              * WebView/WebView.mm:
              (+[WebView canCloseAllWebViews]): Call DOMWindow::dispatchAllPendingBeforeUnloadEvents.
              (+[WebView closeAllWebViews]): Call DOMWindow::dispatchAllPendingUnloadEvents and
              call close on all the WebViews.
              (-[WebView _closeWithFastTeardown]): Remove code for unload event dispatch.
              (-[WebView _close]): Correct a comment.
              (+[WebView _applicationWillTerminate]): Call closeAllWebViews.
              * WebView/WebViewPrivate.h: Add canCloseAllWebViews and closeAllWebViews.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42725 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      37cdb106