WebKit-https.git
12 years ago Makes the selection surround just the name or value that was
timothy@apple.com [Tue, 5 Aug 2008 16:47:34 +0000 (16:47 +0000)]
    Makes the selection surround just the name or value that was
        double clicked when editing CSS properties. This regressed when
        the Inspector started using focus/blur events, since a focus on
        a content editable region changes the selection.

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

        Reviewed by Adam Roben.

        * page/inspector/StylesSidebarPane.js:
        (WebInspector.StylePropertyTreeElement.prototype.startEditing):
        Change the selection after calling WebInspector.startEditing,
        since WebInspector.startEditing will set an initial selection
        due to a focus event.

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

12 years ago Changes the editing behavior in the Inspector to commit changes
timothy@apple.com [Tue, 5 Aug 2008 16:47:22 +0000 (16:47 +0000)]
    Changes the editing behavior in the Inspector to commit changes
        when focus is lost, instead of reverting the changes.

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

        Reviewed by Adam Roben.

        * page/inspector/inspector.js:
        (WebInspector.startEditing): Call editingCommitted in blurEventListener
        instead of editingCancelled.

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

12 years ago Adds the ability to increment/decrement numbers in editable style
timothy@apple.com [Tue, 5 Aug 2008 16:47:09 +0000 (16:47 +0000)]
    Adds the ability to increment/decrement numbers in editable style
        properties with the arrow and page keys.

        Reviewed by Adam Roben.

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

        * page/inspector/StylesSidebarPane.js:
        (WebInspector.StylePropertyTreeElement.prototype.updateAll):
        Updates all properties in the current section, or all sections
        depending in the argument passed.
        (WebInspector.StylePropertyTreeElement.prototype.toggleEnabled):
        Call updateAll instead of having duplicate code.
        (WebInspector.StylePropertyTreeElement.prototype.startEditing):
        Assign the list element's handleKeyEvent to editingKeyDown.
        (WebInspector.StylePropertyTreeElement.prototype.editingKeyDown):
        Handles the Up and Down arrows keys. Finds the word based on the
        selection and extracts the number, prefix and suffix. Increments
        or decrements the number based on the key and modifiers. Replaces
        the original word with the new value and selects it. Also applies
        the style so the page reflects the changes live.
        (WebInspector.StylePropertyTreeElement.prototype.editingEnded):
        Delete the handleKeyEvent and originalCSSText properties.
        (WebInspector.StylePropertyTreeElement.prototype.editingCancelled):
        If originalCSSText exists, set the cssText to that value and call
        updateAll. Otherwise just call updateTitle like before.
        (WebInspector.StylePropertyTreeElement.prototype.editingCommitted):
        Factored out the style applying code to applyStyleText.
        (WebInspector.StylePropertyTreeElement.prototype.applyStyleText):
        Factored out from editingCommitted. Takes an argument that specifies
        if the interface should be updated when the style is applied.
        * page/inspector/inspector.js:
        (WebInspector.startEditing): Call the original key handler, if one
        existed before interrupting key events.
        * page/inspector/utilities.js:
        (getStyleTextWithShorthands): Helper to return CSS text that preserves
        shorthand values, since the cssText property only outputs longhands.

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

12 years ago Factors out the TextPrompt.scanBackwards function into a generic
timothy@apple.com [Tue, 5 Aug 2008 16:46:56 +0000 (16:46 +0000)]
    Factors out the TextPrompt.scanBackwards function into a generic
        helper function on the Node prototype, named rangeOfWord.

        Reviewed by Adam Roben.

        * page/inspector/Console.js:
        (WebInspector.Console.prototype.completions): Use rangeOfWord.
        * page/inspector/TextPrompt.js:
        (WebInspector.TextPrompt.prototype.complete): Ditto.
        (WebInspector.TextPrompt.prototype.scanBackwards): Removed.
        * page/inspector/utilities.js:
        (Node.prototype.rangeOfWord): Added. Copied from TextPrompt.scanBackwards,
        and added a direction argument allowing scanning forward, backward or
        both directions from the offset.

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

12 years ago Fixes a bug where the property toggle button would not be hidden
timothy@apple.com [Tue, 5 Aug 2008 16:46:45 +0000 (16:46 +0000)]
    Fixes a bug where the property toggle button would not be hidden
        during editing.

        Reviewed by Adam Roben.

        * page/inspector/inspector.css:
        (li.editing .swatch, li.editing .enabled-button):
        Make the display !important, since a more specific rule for
        .enabledbutton overrides display.

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

12 years ago2008-08-05 Tor Arne Vestbø <tavestbo@trolltech.com>
vestbo@webkit.org [Tue, 5 Aug 2008 13:40:57 +0000 (13:40 +0000)]
2008-08-05  Tor Arne Vestbø  <tavestbo@trolltech.com>

        Reviewed by Simon.

        Move event handling of the return-key from EditorClientQt to QWebPage.

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

        This is a first step in refactoring the big switch block
        in EditorClientQt::handleKeyboardEvent to using WebActions
        instead.

        The new logic uses two new StandardKeys from QKeySequence:

        - InsertParagraphSeparator
        - InsertLineSeparator

        Which translate to the commands InsertNewline and InsertLineBreak
        respectivly. On Windows/X11 pressing the shift modifier will invoke
        the latter action. For Mac this is triggered by pressing the meta
        modifier (Ctrl).

        Initial patch by: Erik Bunce

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

12 years ago2008-08-05 Cameron Zwarich <cwzwarich@uwaterloo.ca>
cwzwarich@webkit.org [Tue, 5 Aug 2008 11:00:13 +0000 (11:00 +0000)]
2008-08-05  Cameron Zwarich  <cwzwarich@uwaterloo.ca>

        Reviewed by Oliver.

        Roll out r35555 because of correctness issues.

        JavaScriptCore:

        * VM/Machine.cpp:
        (KJS::Machine::privateExecute):

        LayoutTests:

        * fast/js/mod-crash-expected.txt: Added.
        * fast/js/mod-crash.html: Added.
        * fast/js/resources/mod-crash.js: Added.

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

12 years ago Reviewed by Geoffrey Garen.
mitz@apple.com [Tue, 5 Aug 2008 07:40:00 +0000 (07:40 +0000)]
    Reviewed by Geoffrey Garen.

        - remove redundant #imports from FrameMac.mm

        * page/mac/FrameMac.mm:

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

12 years ago2008-08-05 Maciej Stachowiak <mjs@apple.com>
mjs@apple.com [Tue, 5 Aug 2008 07:15:04 +0000 (07:15 +0000)]
2008-08-05  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Geoff.

        - add fast path for immediates to % operator, as we have for many other math ops

        0.6% speedup on SunSpider. 1.4x speedup on a prime testing torture test that Oliver whipped up.

        * VM/Machine.cpp:
        (KJS::Machine::privateExecute):

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

12 years ago2008-08-04 Alice Liu <alice.liu@apple.com>
alice.liu@apple.com [Tue, 5 Aug 2008 05:13:43 +0000 (05:13 +0000)]
2008-08-04  Alice Liu  <alice.liu@apple.com>

        Reviewed by Steve Falkenburg.

        Fix CFDictionary leak

        * CFDictionaryPropertyBag.cpp:
        (CFDictionaryPropertyBag::Write):
        m_dictionary is a RetainPtr and should adopt the CF type created

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

12 years agoWebCore:
mitz@apple.com [Tue, 5 Aug 2008 04:09:26 +0000 (04:09 +0000)]
WebCore:

2008-08-04  Bernhard Kruepl  <kruepl@dbai.tuwien.ac.at>

        Reviewed by Dave Hyatt.

        Fix for https://bugs.webkit.org/show_bug.cgi?id=19094
        Corrected offsetTop for table cells by subtracting borderTopExtra

        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::offsetTop):

LayoutTests:

2008-08-04  Bernhard Kruepl  <kruepl@dbai.tuwien.ac.at>

        Reviewed by Dave Hyatt.

        Fix for https://bugs.webkit.org/show_bug.cgi?id=19094
        Tests for offsetTop of table cells updated so that they don't include borderExtraTop

        * fast/dom/Element/offsetTop-table-cell-expected.txt:
        * fast/dom/Element/offsetTop-table-cell.html:

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

12 years ago2008-08-04 Sam Weinig <sam@webkit.org>
weinig@apple.com [Tue, 5 Aug 2008 03:58:02 +0000 (03:58 +0000)]
2008-08-04  Sam Weinig  <sam@webkit.org>

        Rubber-stamped by Dan Bernstein.

        Fix typo in Skipped lists.

        * platform/mac-tiger/Skipped:
        * platform/win/Skipped:

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

12 years agoBuild fix.
mrowe@apple.com [Tue, 5 Aug 2008 03:16:05 +0000 (03:16 +0000)]
Build fix.

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

12 years agoAdopt the formal protocols where necessary.
mrowe@apple.com [Tue, 5 Aug 2008 02:02:36 +0000 (02:02 +0000)]
Adopt the formal protocols where necessary.
Final part of fix for <rdar://problem/5853147>.

Reviewed by Kevin Decker.

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

12 years agoDeclare empty protocols when using versions of AppKit that do not use formal protocol...
mrowe@apple.com [Tue, 5 Aug 2008 02:02:33 +0000 (02:02 +0000)]
Declare empty protocols when using versions of AppKit that do not use formal protocols for delegates and data sources.
Part one of fix for <rdar://problem/5853147>.

Reviewed by Darin Adler.

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

12 years ago2008-08-04 Dean Jackson <dino@apple.com>
dino@apple.com [Tue, 5 Aug 2008 01:54:46 +0000 (01:54 +0000)]
2008-08-04  Dean Jackson  <dino@apple.com>

        Reviewed by Dave Hyatt.

        Improve AnimationController
        https://bugs.webkit.org/show_bug.cgi?id=19938

        - Transition class is now called Animation
        - new state-based AnimationController that can support CSS Animations
        - add support for -webkit-transition-delay
        - remove -webkit-transition-repeat-count (since it never existed officially)
        - updates the -webkit-transition shorthand to reflect removing repeat count
        - updates the Transition class so that properties can be shared with animations
        - adds a "now" keyword for -webkit-transition-delay
        - adds a new change type for style (changed by animation)
        - adds new event names (although they are not dispatched yet)
        - makes text stroke and text fill colors returned by RenderStyle const

        Tests:
        - manual-tests/transition-left.html
        - manual-tests/transition-delay.html
        - manual-tests/transition-timing-functions.html

        * css/CSSComputedStyleDeclaration.cpp:
        * css/CSSParser.cpp:
        * css/CSSParser.h:
        * css/CSSPropertyNames.in:
        * css/CSSStyleSelector.cpp:
        * css/CSSStyleSelector.h:
        * css/CSSTimingFunctionValue.h:
        * css/CSSValue.h:
        * css/CSSValueKeywords.in:
        * css/WebKitCSSTransformValue.cpp:
        * dom/Document.cpp:
        * dom/Document.h:
        * dom/Element.cpp:
        * dom/EventNames.h:
        * dom/Node.cpp:
        * dom/Node.h:
        * history/CachedPage.cpp:
        * page/AnimationController.cpp:
        * page/AnimationController.h:
        * page/Frame.cpp:
        * rendering/RenderObject.cpp:
        * rendering/RenderWidget.cpp:
        * rendering/style/RenderStyle.cpp:
        * rendering/style/RenderStyle.h:

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

12 years ago Reviewed by Antti.
eric@webkit.org [Tue, 5 Aug 2008 00:39:22 +0000 (00:39 +0000)]
    Reviewed by Antti.

        Currently we create two copies of script in the HTMLTokenizer.
        One copy gets passed into the javascript engine, the other gets
        stored in the DOM.  Modify the HTMLParser so that it does not
        chunk the string into it's normal 64K chunks for script code,
        and modify the HTMLTokenizer to pass that same string into the
        JS engine.  On some sites (e.g. GMail), which have hundreds of
        KB of inline JS, this saves more than a MB of RAM to run the page.
        (Strings use 16bit strings, so 600KB of JS code == 1.2MB of memory)

        * html\HTMLParser.cpp
        * html\HTMLTokenizer.cpp

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

12 years ago Reviewed by Adam Roben.
eric@webkit.org [Mon, 4 Aug 2008 23:01:37 +0000 (23:01 +0000)]
    Reviewed by Adam Roben.

        Fix warning seen in MSVC converting ints to floats.

        * rendering/Length.h:
        (WebCore::Length::calcFloatValue):

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

12 years ago2008-08-04 Sam Weinig <sam@webkit.org>
weinig@apple.com [Mon, 4 Aug 2008 21:24:47 +0000 (21:24 +0000)]
2008-08-04  Sam Weinig  <sam@webkit.org>

        Reviewed by Mark Rowe.

        Remove extra braces left in from JSLock removal.

        * xml/XMLHttpRequest.cpp:
        (WebCore::XMLHttpRequest::dropProtection):

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

12 years ago2008-08-04 Sam Weinig <sam@webkit.org>
weinig@apple.com [Mon, 4 Aug 2008 20:29:46 +0000 (20:29 +0000)]
2008-08-04  Sam Weinig  <sam@webkit.org>

        Reviewed by Dan Bernstein.

        Update skipped lists for renamed tests.

        * platform/mac-tiger/Skipped:
        * platform/win/Skipped:

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

12 years agoWebCore:
weinig@apple.com [Mon, 4 Aug 2008 20:21:19 +0000 (20:21 +0000)]
WebCore:

2008-08-02  Sam Weinig  <sam@webkit.org>

        Reviewed by Dan Bernstein.

        Implement the Access-control for Cross Site requests
        preflight cache.

        Tests: http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache-invalidation-by-header.html
               http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache-invalidation-by-method.html
               http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache-timeout.html
               http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache.html

        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * platform/KURL.h:
        (WTF::):
        * platform/KURLHash.h: Added.
        (WebCore::KURLHash::hash):
        (WebCore::KURLHash::equal):
        (WTF::):
        * xml/XMLHttpRequest.cpp:
        (WebCore::PreflightResultCacheItem::PreflightResultCacheItem):
        (WebCore::preflightResultCache):
        (WebCore::appendPreflightResultCacheEntry):
        (WebCore::canSkipPrelight):
        (WebCore::XMLHttpRequest::makeCrossSiteAccessRequestWithPreflight):
        (WebCore::parseAccessControlAllowList):
        (WebCore::parseAccessControlMaxAge):
        (WebCore::XMLHttpRequest::didReceiveResponsePreflight):

LayoutTests:

2008-08-04  Sam Weinig  <sam@webkit.org>

        Reviewed by Dan Bernstein.

        Tests for the Access-control for Cross Site requests
        preflight cache.

        * ChangeLog:
        * http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache-expected.txt: Added.
        * http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache-invalidation-by-header-expected.txt: Added.
        * http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache-invalidation-by-header.html: Added.
        * http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache-invalidation-by-method-expected.txt: Added.
        * http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache-invalidation-by-method.html: Added.
        * http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache-timeout-expected.txt: Added.
        * http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache-timeout.html: Added.
        * http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache.html: Added.
        * http/tests/xmlhttprequest/resources/access-control-basic-preflight-cache-invalidation.php: Added.
        * http/tests/xmlhttprequest/resources/access-control-basic-preflight-cache-timeout.php: Added.
        * http/tests/xmlhttprequest/resources/access-control-basic-preflight-cache.php: Added.
        * http/tests/xmlhttprequest/resources/portabilityLayer.php: Added.
        * http/tests/xmlhttprequest/resources/reset-temp-file.php: Added.

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

12 years ago Reviewed by hyatt.
eric@webkit.org [Mon, 4 Aug 2008 19:59:23 +0000 (19:59 +0000)]
    Reviewed by hyatt.

        Clean up Gradient constructors, make sure all members are initialized.

        * platform/graphics/Gradient.cpp:
        (WebCore::Gradient::Gradient):

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

12 years ago2008-08-04 Brady Eidson <beidson@apple.com>
beidson@apple.com [Mon, 4 Aug 2008 19:53:18 +0000 (19:53 +0000)]
2008-08-04  Brady Eidson  <beidson@apple.com>

        Reviewed by Mitz Pettel

        Fix <rdar://problem/5820157> - Saving WebArchives of Mail attachments broken.

        This broke in r31355 when we stopped returning nil WebResources when there was nil
        resource data.

        * WebView/WebResource.mm:
        (-[WebResource _initWithCoreResource:]): Restore previous behavior of returning nil
          when the resource data is null.

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

12 years ago2008-08-04 Erik Bunce <elbunce@thehive.com>
hausmann@webkit.org [Mon, 4 Aug 2008 16:02:19 +0000 (16:02 +0000)]
2008-08-04  Erik Bunce  <elbunce@thehive.com>

        Reviewed by Simon.

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

        Add updateAction() support to ToggleBold, ToggleItalic, and ToggleUnderline.
        Add lookup table for mapping web actions to editor commands.

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

12 years ago2008-08-03 Ariya Hidayat <ariya.hidayat@trolltech.com>
hausmann@webkit.org [Mon, 4 Aug 2008 14:31:01 +0000 (14:31 +0000)]
2008-08-03  Ariya Hidayat  <ariya.hidayat@trolltech.com>

        Reviewed by Simon.

        A bunch of improvements to the QtLauncher.

        Among others:
        - Unify and unclutter the toolbar, use menu for addition actions
        - Simplify URL edit, just use QLineEdit (no fancy close button etc)
        - Guess the URL from the command line so now we can run ./QtLauncher www.google.com
        - Shortcut keys for most actions
        - Simple autocomplete for the URL edit
        - Actions for zooming, New Window and Close Window
        - Show Format menu only when the content is set to editable

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

12 years ago2008-08-04 Erik Bunce <elbunce@thehive.com>
hausmann@webkit.org [Mon, 4 Aug 2008 14:03:34 +0000 (14:03 +0000)]
2008-08-04  Erik Bunce  <elbunce@thehive.com>

        Reviewed by Simon.

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

        Allow Copy key sequence to work in non-editable areas.

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

12 years ago Future-proof fast/cookies/local-file-can-set-cookies.html
ddkilzer@apple.com [Mon, 4 Aug 2008 02:34:13 +0000 (02:34 +0000)]
    Future-proof fast/cookies/local-file-can-set-cookies.html

        Reviewed by Anders Carlsson.

        * fast/cookies/local-file-can-set-cookies.html: Set cookie
        expiration date 60 seconds into the future instead of a
        hard-coded date.

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

12 years agoBug 19359: JavaScriptCore behaves differently from FF2/3 and IE when handling context...
oliver@apple.com [Sun, 3 Aug 2008 09:58:21 +0000 (09:58 +0000)]
Bug 19359: JavaScriptCore behaves differently from FF2/3 and IE when handling context in catch statement
<https://bugs.webkit.org/show_bug.cgi?id=19359>

Reviewed by Cameron Zwarich

Make our catch behave like Firefox and IE, we do this by using a StaticScopeObject
instead of a generic JSObject for the scope node.  We still don't make use of the
fact that we have a static scope inside the catch block, so the internal performance
of the catch block is not improved, even though technically it would be possible to
do so.

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

12 years ago2008-08-02 Maxime Britto <britto@apple.com>
britto@apple.com [Sun, 3 Aug 2008 08:34:42 +0000 (08:34 +0000)]
2008-08-02  Maxime Britto  <britto@apple.com>

        Reviewed by Eric Seidel.

        <rdar://problem/6118969>
        https://bugs.webkit.org/show_bug.cgi?id=19971
        Modifiy the cursor interactively when on panning mode (middle click auto scroll)
        When the panning is in progress the cursor is an arrow representing the direction of the current scroll

        * page/EventHandler.cpp:
        (WebCore::EventHandler::autoscrollTimerFired): Before each scroll we actualize the cursor to match the current direction
        (WebCore::EventHandler::setPanScrollCursor): determines the direction of the upcoming scroll.
        (WebCore::EventHandler::handleMouseMoveEvent):
        * page/EventHandler.h:
        * platform/Cursor.h: Add propotypes for the new cursor functions
        * platform/gtk/CursorGtk.cpp: to avoid build break
        (WebCore::middlePanningCursor):
        (WebCore::eastPanningCursor):
        (WebCore::northPanningCursor):
        (WebCore::northEastPanningCursor):
        (WebCore::northWestPanningCursor):
        (WebCore::southPanningCursor):
        (WebCore::southEastPanningCursor):
        (WebCore::southWestPanningCursor):
        (WebCore::westPanningCursor):
        * platform/mac/CursorMac.mm: to avoid build break
        (WebCore::middlePanningCursor):
        (WebCore::eastPanningCursor):
        (WebCore::northPanningCursor):
        (WebCore::northEastPanningCursor):
        (WebCore::northWestPanningCursor):
        (WebCore::southPanningCursor):
        (WebCore::southEastPanningCursor):
        (WebCore::southWestPanningCursor):
        (WebCore::westPanningCursor):
        * platform/qt/CursorQt.cpp: to avoid build break
        (WebCore::middlePanningCursor):
        (WebCore::eastPanningCursor):
        (WebCore::northPanningCursor):
        (WebCore::northEastPanningCursor):
        (WebCore::northWestPanningCursor):
        (WebCore::southPanningCursor):
        (WebCore::southEastPanningCursor):
        (WebCore::southWestPanningCursor):
        (WebCore::westPanningCursor):
        * platform/win/CursorWin.cpp: Add specific icons for the panning as windows resizing icons are both sides arrows
        (WebCore::middlePanningCursor):
        (WebCore::eastPanningCursor):
        (WebCore::northPanningCursor):
        (WebCore::northEastPanningCursor):
        (WebCore::northWestPanningCursor):
        (WebCore::southPanningCursor):
        (WebCore::southEastPanningCursor):
        (WebCore::southWestPanningCursor):
        (WebCore::westPanningCursor):
        * platform/wx/CursorWx.cpp: to avoid build break
        (WebCore::middlePanningCursor):
        (WebCore::eastPanningCursor):
        (WebCore::northPanningCursor):
        (WebCore::northEastPanningCursor):
        (WebCore::northWestPanningCursor):
        (WebCore::southPanningCursor):
        (WebCore::southEastPanningCursor):
        (WebCore::southWestPanningCursor):
        (WebCore::westPanningCursor):

2008-08-02  Maxime Britto  <britto@apple.com>

        Reviewed by Eric Seidel.

        These icons are copies from the resizers in WebCore/Ressources

        * ChangeLog:
        * WebKit.vcproj/WebKit.rc:
        * WebKit.vcproj/panEastCursor.png: Added.
        * WebKit.vcproj/panNorthCursor.png: Added.
        * WebKit.vcproj/panNorthEastCursor.png: Added.
        * WebKit.vcproj/panNorthWestCursor.png: Added.
        * WebKit.vcproj/panSouthCursor.png: Added.
        * WebKit.vcproj/panSouthEastCursor.png: Added.
        * WebKit.vcproj/panSouthWestCursor.png: Added.
        * WebKit.vcproj/panWestCursor.png: Added.
        * WebKit.vcproj/resource.h:
        * WebKitDLL.cpp:
        (loadResourceIntoBuffer):

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

12 years ago2008-08-02 Rob Gowin <robg@gowin.net>
jmalonzo@webkit.org [Sun, 3 Aug 2008 01:47:41 +0000 (01:47 +0000)]
2008-08-02  Rob Gowin  <robg@gowin.net>

        Reviewed by Eric Seidel.

        Added JavaScriptCore/API/WebKitAvailability to list of files in
        javascriptcore_h_api.

        * GNUmakefile.am:

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

12 years ago2008-08-02 Matt Lilek <webkit@mattlilek.com>
pewtermoose@webkit.org [Sat, 2 Aug 2008 22:34:30 +0000 (22:34 +0000)]
2008-08-02  Matt Lilek  <webkit@mattlilek.com>

        Reviewed by Tim Hatcher.

        Update the window gradient offset to match the inspector toolbar's new height.

        * WebCoreSupport/WebInspectorClient.mm:
        (-[WebInspectorWindowController window]):

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

12 years agoForgot to commit licensing correction in last commit.
kevino@webkit.org [Sat, 2 Aug 2008 22:24:45 +0000 (22:24 +0000)]
Forgot to commit licensing correction in last commit.

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

12 years agoReviewed by Eric Seidel.
kevino@webkit.org [Sat, 2 Aug 2008 21:50:35 +0000 (21:50 +0000)]
Reviewed by Eric Seidel.

Scripts for building a wxWebKit installer for wxPython on Win, eventually will
be used for nightlies.

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

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

12 years agoMove to using constants in accordance with discussions about wx renderer commit.
kevino@webkit.org [Sat, 2 Aug 2008 21:33:59 +0000 (21:33 +0000)]
Move to using constants in accordance with discussions about wx renderer commit.

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

12 years ago2008-08-02 Wouter Bolsterlee <wbolster@svn.gnome.org>
jmalonzo@webkit.org [Sat, 2 Aug 2008 09:38:55 +0000 (09:38 +0000)]
2008-08-02  Wouter Bolsterlee  <wbolster@svn.gnome.org>

        Reviewed by Eric Seidel.

        * plugins/gtk/gtk2xtbin.h:

        https://bugs.webkit.org/show_bug.cgi?id=20034
        Fix malformed Vim modeline.

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

12 years ago2008-08-02 Christian Dywan <christian@twotoasts.de>
jmalonzo@webkit.org [Sat, 2 Aug 2008 09:38:23 +0000 (09:38 +0000)]
2008-08-02  Christian Dywan  <christian@twotoasts.de>

        Reviewed by Eric Seidel.

        Remove webkit-marshal.list, which was made obsolete in #19742

        * webkit/webkit-marshal.list: Removed.

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

12 years ago Reviewed by Dave Hyatt.
mitz@apple.com [Sat, 2 Aug 2008 06:10:31 +0000 (06:10 +0000)]
    Reviewed by Dave Hyatt.

        - tweak a comment

        * platform/graphics/cg/ImageCG.cpp:
        (WebCore::BitmapImage::draw):

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

12 years agoForgot to add the reviewer of r35522.
jmalonzo@webkit.org [Sat, 2 Aug 2008 05:19:49 +0000 (05:19 +0000)]
Forgot to add the reviewer of r35522.

* WebKit/gtk/ChangeLog:

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

12 years ago2008-08-01 Wouter Bolsterlee <uws@xs4all.nl>
jmalonzo@webkit.org [Sat, 2 Aug 2008 05:12:11 +0000 (05:12 +0000)]
2008-08-01  Wouter Bolsterlee  <uws@xs4all.nl>

        https://bugs.webkit.org/show_bug.cgi?id=20035
        [GTK] Fix return value for webkit_web_view_go_to_back_forward_item()

        * webkit/webkitwebview.cpp:

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

12 years ago2008-08-01 Jan Michael Alonzo <jmalonzo@webkit.org>
jmalonzo@webkit.org [Sat, 2 Aug 2008 05:11:59 +0000 (05:11 +0000)]
2008-08-01  Jan Michael Alonzo  <jmalonzo@webkit.org>

        * ChangeLog: Fix date of previous commit (r35520)

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

12 years ago2008-06-17 Marco Barisione <marco.barisione@collabora.co.uk>
jmalonzo@webkit.org [Sat, 2 Aug 2008 05:01:00 +0000 (05:01 +0000)]
2008-06-17  Marco Barisione  <marco.barisione@collabora.co.uk>

        Reviewed by Eric Seidel.

        https://bugs.webkit.org/show_bug.cgi?id=19603
        [SOUP] segfault when closing a file using gio

        Call client->didFinishLoading() only after releasing all the gio
        resources.

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

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

12 years ago../../../../../../WebCore:
andersca@apple.com [Sat, 2 Aug 2008 00:29:03 +0000 (00:29 +0000)]
../../../../../../WebCore:

2008-08-01  Anders Carlsson  <andersca@apple.com>

        Reviewed by Jon.

        <rdar://problem/6120206>
        Crash when plug-in queries for NPPVpluginWantsAllNetworkStreams.

        Pass in a pointer to a void* to make sure that plug-ins don't overwrite the stack.

        * plugins/PluginStream.cpp:
        (WebCore::PluginStream::wantsAllStreams):

../../../../../../WebKit/mac:

2008-08-01  Anders Carlsson  <andersca@apple.com>

        Reviewed by Jon.

        <rdar://problem/6120206>
        Crash when plug-in queries for NPPVpluginWantsAllNetworkStreams.

        Pass in a pointer to a void* to make sure that plug-ins don't overwrite the stack.

        * Plugins/WebBaseNetscapePluginStream.mm:
        (-[WebBaseNetscapePluginStream wantsAllStreams]):

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

12 years agoReviewed by Eric Seidel.
kevino@webkit.org [Sat, 2 Aug 2008 00:06:10 +0000 (00:06 +0000)]
Reviewed by Eric Seidel.

Native rendering implementations for form elements in the wx port.

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

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

12 years ago2008-08-01 Beth Dakin <bdakin@apple.com>
bdakin@apple.com [Fri, 1 Aug 2008 21:50:59 +0000 (21:50 +0000)]
2008-08-01  Beth Dakin  <bdakin@apple.com>

        Reviewed by Adam Roben.

        Fix for <rdar://problem/6119382> Need to hook up WebFrame's
        disconnected frame API on Windows.

        * Interfaces/IWebFrame.idl:
        * WebFrame.cpp:
        (WebFrame::setIsDisconnected):
        * WebFrame.h:

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

12 years ago Fix <rdar://6118733> REGRESSION (r35502): Crash when submitting any form
aroben@apple.com [Fri, 1 Aug 2008 21:32:49 +0000 (21:32 +0000)]
    Fix <rdar://6118733> REGRESSION (r35502): Crash when submitting any form

        Reviewed by Darin Adler.

        * COMPropertyBag.h:
        (COMPropertyBag::QueryInterface): Cast to an appropriate type before
        assigning into ppvObject.

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

12 years ago2008-07-30 David Hyatt <hyatt@apple.com>
hyatt@apple.com [Fri, 1 Aug 2008 20:24:48 +0000 (20:24 +0000)]
2008-07-30  David Hyatt  <hyatt@apple.com>

        Improvements to selection drawing.

        Clip out floating and positioned objects when drawing selection so
        that there is no "double painting" of selection when the selection spans both the space behind the positioned/floating
        object and the positioned/floating object itself.  Improves most Web pages.

        Do not paint left/right selection gaps if the object's edge is already outside the boundary (at a negative
        position).  Significantly improves the look of selections on digg.com, since it uses giant negative text-indent.

        Reviewed by Dan

        Covered by existing selection pixel tests.

        * rendering/RenderBlock.cpp:
        (WebCore::RenderBlock::isSelectionRoot):
        (WebCore::RenderBlock::paintSelection):
        (WebCore::clipOutPositionedObjects):
        (WebCore::RenderBlock::fillSelectionGaps):
        (WebCore::RenderBlock::fillLeftSelectionGap):
        (WebCore::RenderBlock::fillRightSelectionGap):

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

12 years ago Adds the ability to disable individual properties of a CSS rule.
timothy@apple.com [Fri, 1 Aug 2008 20:23:56 +0000 (20:23 +0000)]
    Adds the ability to disable individual properties of a CSS rule.
        When hovering over a rule, checkboxes show up to the right of all
        properties and toggling a checkbox disables/enables the property.
        Behind the scenes the property is removed from the rule when disabled,
        but still remains in the list and in the computed style. When disabled
        the property has a line through it, and is faded in computed style.

        <rdar://problem/5712828> Support disabling individual CSS properties
        https://bugs.webkit.org/show_bug.cgi?id=14377

        Reviewed by Adam Roben.

        * page/inspector/StylesSidebarPane.js:
        (WebInspector.StylesSidebarPane.prototype.update): Include the
        inline style when it also has disabled properties. Call
        deleteDisabledProperty for any property that is in the style,
        since it might have been added back by the page. Remember all
        disabled properties so they show up in computed style.
        (deleteDisabledProperty): Helper function to delete all the
        right properties that track disabled properties.
        (WebInspector.StylePropertiesSection): Add the computed-style
        class when  the section is Computed Style.
        (WebInspector.StylePropertiesSection.prototype.onpopulate):
        Include disabled properties.
        (WebInspector.StylePropertyTreeElement): Added a disabled argument.
        (WebInspector.StylePropertyTreeElement.prototype.get/set disabled):
        Sets the _disabled property and calls updateState.
        (WebInspector.StylePropertyTreeElement.prototype.get priority):
        Return the priority of enabled or disabled properties.
        (WebInspector.StylePropertyTreeElement.prototype.get value):
        Return the value of enabled or disabled properties.
        (WebInspector.StylePropertyTreeElement.prototype.updateTitle): Use the
        priority and value getter. Append the checkbox for root elements of
        an editable section.
        (WebInspector.StylePropertyTreeElement.prototype.toggleEnabled):
        Add or remove properties from the rule and remember removed ones
        by adding three objects to the style: __disabledProperties,
        __disabledPropertyValues and __disabledPropertyPriorities.
        The __disabledProperties object will include all longhand
        properties of a shorthand for use by Computed Style.
        (WebInspector.StylePropertyTreeElement.prototype.updateState):
        Use the value getter. Update the disabled state.
        * page/inspector/inspector.css:
        * page/inspector/utilities.js:
        (Object.hasProperties): Added. Helper to test if an object
        has any properties.

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

12 years ago../../../../../../WebCore:
andersca@apple.com [Fri, 1 Aug 2008 19:23:22 +0000 (19:23 +0000)]
../../../../../../WebCore:

2008-07-31  Anders Carlsson  <andersca@apple.com>

        Reviewed by Darin.

        <rdar://problem/5949410>
        Add the ability to transfer a given application cache to a new database.

        * WebCore.base.exp:
        Export ApplicationCacheStorage::storeCopyOfCache.

        * loader/appcache/ApplicationCache.cpp:
        (WebCore::ApplicationCache::~ApplicationCache):
        Don't call cacheDestroyed for our special "copy" groups.

        * loader/appcache/ApplicationCacheGroup.cpp:
        (WebCore::ApplicationCacheGroup::ApplicationCacheGroup):
        (WebCore::ApplicationCacheGroup::~ApplicationCacheGroup):
        Add a "copy" flag to the ApplicationCacheGroup constructor. A "copied" group is special
        and can only be stored to disk.

        * loader/appcache/ApplicationCacheGroup.h:
        (WebCore::ApplicationCacheGroup::isCopy):
        New getter.

        * loader/appcache/ApplicationCacheStorage.cpp:
        (WebCore::ApplicationCacheStorage::store):
        Make sure to set the storageID when storing an application resource.

        (WebCore::ApplicationCacheStorage::storeNewestCache):
        Change this to return true/false depending on whether storing the cache succeeded or not.

        (WebCore::ApplicationCacheStorage::storeCopyOfCache):
        New method which stores a given cache in a new storage (database file).

        * loader/appcache/ApplicationCacheStorage.h:
        Add new methods.

../../../../../../WebKit/mac:

2008-07-31  Anders Carlsson  <andersca@apple.com>

        Reviewed by Darin.

        <rdar://problem/5949410>
        Add the ability to transfer a given application cache to a new database.

        * Misc/WebKitNSStringExtras.h:
        * Misc/WebKitNSStringExtras.m:
        (+[NSString _webkit_applicationCacheDirectoryWithBundleIdentifier:]):
        New method which returns the appopriate cache directory for a given bundle identifier.

        * WebView/WebDataSource.mm:
        (-[WebDataSource _transferApplicationCache:]):
        Transfer the application cache.

        * WebView/WebDataSourcePrivate.h:
        * WebView/WebView.mm:
        (WebKitInitializeApplicationCachePathIfNecessary):
        Change this to use _webkit_applicationCacheDirectoryWithBundleIdentifier.

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

12 years ago Add a link to the instructions to use Apple's Safari for Windows symbol server
aroben@apple.com [Fri, 1 Aug 2008 18:20:03 +0000 (18:20 +0000)]
    Add a link to the instructions to use Apple's Safari for Windows symbol server

        Reviewed by Eric Seidel.

        * building/debug.html:

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

12 years ago Rubber-stamped by Maciej.
ap@webkit.org [Fri, 1 Aug 2008 08:38:31 +0000 (08:38 +0000)]
    Rubber-stamped by Maciej.

        Remove JSGlobalData::DataInstance. It was only needed when we had per-thread JSGlobalData
        instances.

        * kjs/JSGlobalData.h:

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

12 years agoVersioning.
mrowe@apple.com [Fri, 1 Aug 2008 03:10:13 +0000 (03:10 +0000)]
Versioning.

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

12 years ago Updated test results for DumpRenderTree fix in r35497
ddkilzer@apple.com [Fri, 1 Aug 2008 00:08:50 +0000 (00:08 +0000)]
    Updated test results for DumpRenderTree fix in r35497

        * svg/custom/image-with-prefix-in-webarchive-expected.webarchive:
        Contents of the main resource are now displayed instead of encoded
        data.
        * svg/webarchive/svg-cursor-subresources-expected.webarchive: Ditto.
        * svg/webarchive/svg-feimage-subresources-expected.webarchive: Ditto.
        * svg/webarchive/svg-script-subresouces-expected.webarchive: Ditto.
        Also updated MIME types for JavaScript source now that we don't
        mangle application/x-javascript into text/javascript.

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

12 years ago2008-07-31 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Thu, 31 Jul 2008 23:16:45 +0000 (23:16 +0000)]
2008-07-31  Anders Carlsson  <andersca@apple.com>

        Reviewed by Adam.

        Get rid of FormValuesPropertyBag and use COMPropertyBag instead.

        * COMPropertyBag.h:
        Implement parts of IPropertyBag2.
        Currently just one method (CountProperties) is implemented.

        * WebCoreSupport/FormValuesPropertyBag.cpp: Removed.
        * WebCoreSupport/FormValuesPropertyBag.h: Removed.

        * WebFrame.cpp:
        (WebFrame::dispatchWillSubmitForm):
        Create a COMPropertyBag instead.

        * WebKit.vcproj/WebKit.vcproj:

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

12 years ago Follow-up to r35500
aroben@apple.com [Thu, 31 Jul 2008 22:18:45 +0000 (22:18 +0000)]
    Follow-up to r35500

        * WinLauncher/WinLauncher.vcproj: Set the manifest properties for the
        Release configuration, too.

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

12 years ago2008-07-31 Stefan Landvogt <stefan.landvogt@gmail.com>
aroben@apple.com [Thu, 31 Jul 2008 22:12:55 +0000 (22:12 +0000)]
2008-07-31  Stefan Landvogt <stefan.landvogt@gmail.com>

        Fix Bug 20245: WinLauncher does not start in WebKit-debug right out of
        the box

        <https://bugs.webkit.org/show_bug.cgi?id=20245>

        Reviewed by Adam Roben.

        * WinLauncher/WinLauncher.vcproj: adding the following properties to
        WinLauncher > Properties > Manifest Tool > Isolated COM
        Type Library File: $(WebKitOutputDir)\lib\WebKit.tlb
        Component File Name: WebKit$(WebKitDLLConfigSuffix)
        Doing the change on "All Configurations"

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

12 years agoWebCore:
sullivan@apple.com [Thu, 31 Jul 2008 21:42:45 +0000 (21:42 +0000)]
WebCore:

2008-07-31  John Sullivan  <sullivan@apple.com>

        WebCore part of <rdar://problem/6116650> Text-only zoom setting should be stored in WebKit prefs

        Reviewed by Hyatt

        * WebCore.base.exp:
        export symbol for WebCoreSettings::setZoomsTextOnly()

        * page/Frame.cpp:
        (WebCore::Frame::isZoomFactorTextOnly):
        use value from Settings instead of data member
        (WebCore::Frame::shouldApplyTextZoom):
        call isZoomFactorTextOnly() to get value instead of accessing now-removed data member
        (WebCore::Frame::shouldApplyPageZoom):
        ditto
        (WebCore::Frame::setZoomFactor):
        set value into Settings rather than into data member
        (WebCore::FramePrivate::FramePrivate):
        don't set initial value of now-removed data member; this is managed by Settings now

        * page/FramePrivate.h:
        removed m_zoomFactorIsTextOnly

        * page/Settings.cpp:
        (WebCore::Settings::setZoomsTextOnly):
        new function, sets values and reapplies styles in all frames

        * page/Settings.h:
        (WebCore::Settings::zoomsTextOnly):
        new function, returns value of new data member

WebKit/mac:

2008-07-31  John Sullivan  <sullivan@apple.com>

        WebKit part of <rdar://problem/6116650> Text-only zoom setting should be stored in WebKit prefs

        Reviewed by Hyatt

        * WebView/WebPreferenceKeysPrivate.h:
        added WebKitZoomsTextOnlyPreferenceKey

        * WebView/WebPreferences.mm:
        (+[WebPreferences initialize]):
        default value of YES for WebKitZoomsTextOnlyPreferenceKey
        (-[WebPreferences zoomsTextOnly]):
        getter for WebKitZoomsTextOnlyPreferenceKey
        (-[WebPreferences setZoomsTextOnly:]):
        setter for WebKitZoomsTextOnlyPreferenceKey

        * WebView/WebPreferencesPrivate.h:
        declare zoomsTextOnly/setZoomsTextOnly:

        * WebView/WebView.mm:
        (-[WebView _preferencesChangedNotification:]):
        update WebCore::Settings value for zoomsTextOnly

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

12 years ago Windows build bot fix
aroben@apple.com [Thu, 31 Jul 2008 21:35:23 +0000 (21:35 +0000)]
    Windows build bot fix

        * DumpRenderTree/win/ImageDiff.vcproj: Don't fail if files that only
        exist for people at Apple can't be found. Also updated the ICU version
        to 3.8.

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

12 years ago Fix layout test results for webarchive/test-xml-stylesheet.xml
ddkilzer@apple.com [Thu, 31 Jul 2008 21:21:30 +0000 (21:21 +0000)]
    Fix layout test results for webarchive/test-xml-stylesheet.xml

WebKit:

        Fix layout test results for webarchive/test-xml-stylesheet.xml

        Reviewed by Darin.

        * WebKit.xcodeproj/project.pbxproj: Added WebHTMLRepresentationInternal.h.
        Changed WebHTMLRepresentationInternal.h and WebHTMLRepresentationPrivate.h
        to private so they're copied into PrivateHeaders.

WebKit/mac:

        Fix layout test results for webarchive/test-xml-stylesheet.xml

        Reviewed by Darin.

        Needed to expose -[WebHTMLRepresentation supportedNonImageMIMETypes]
        for DumpRenderTree.

        * WebView/WebHTMLRepresentationInternal.h: Added.

WebKitTools:

        Fix layout test results for webarchive/test-xml-stylesheet.xml

        Reviewed by Darin.

        * DumpRenderTree/mac/DumpRenderTree.mm:
        (convertMIMEType): Work around the "text/xml" local file type
        regression in Leopard using the BUILDING_ON_LEOPARD macro.  Also
        stop mangling "application/x-javascript" into "text/javascript".
        (convertWebResourceDataToString): When checking whether to dump a
        resource as text, also check to see if the MIME type is in the
        -[WebHTMLRepresentation supportedNonImageMIMETypes] array.
        * DumpRenderTree/mac/DumpRenderTreeMac.h: Added BUILDING_ON_LEOPARD
        macro.

LayoutTests:

        Fix layout test results for webarchive/test-xml-stylesheet.xml

        Reviewed by Darin.

        * platform/mac/webarchive/test-xml-stylesheet-expected.txt:
        Removed unused test results.

        * webarchive/test-duplicate-resources-expected.webarchive: Updated
        results now that we don't mangle application/x-javascript into
        text/javascript.
        * webarchive/test-script-src-expected.webarchive: Ditto.

        * webarchive/test-xml-stylesheet-expected.webarchive: Updated
        results now that we handle application/xml correctly.

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

12 years ago2008-07-31 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Thu, 31 Jul 2008 21:10:45 +0000 (21:10 +0000)]
2008-07-31  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Dave Hyatt

        Null-check parent clip rects, because they may not have been
        set up yet.
        https://bugs.webkit.org/show_bug.cgi?id=20243

        * rendering/RenderLayer.cpp:
        (WebCore::RenderLayer::calculateClipRects):

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

12 years agoDid not mean to remove these files.
andersca@apple.com [Thu, 31 Jul 2008 20:55:20 +0000 (20:55 +0000)]
Did not mean to remove these files.

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

12 years ago2008-07-31 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Thu, 31 Jul 2008 20:54:04 +0000 (20:54 +0000)]
2008-07-31  Anders Carlsson  <andersca@apple.com>

        Reviewed by Jon.

        Tweak the names.

        * WebCoreSupport/WebFrameLoaderClient.cpp:
        (WebFrameLoaderClient::createPlugin):

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

12 years ago2008-07-31 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Thu, 31 Jul 2008 20:48:55 +0000 (20:48 +0000)]
2008-07-31  Anders Carlsson  <andersca@apple.com>

        Reviewed by Jon.

        <rdar://problem/5826110>

        Add a way for WebKit clients to embed custom content in web pages.

        * Interfaces/IWebEmbeddedView.idl: Added.
        New interface which an embedded view must implement.

        * Interfaces/IWebUIDelegatePrivate.idl:
        Add new UI delegate method for creating an embedded view.

        * Interfaces/WebKit.idl:
        Include IWebEmbeddedView.idl.

        * WebCoreSupport/EmbeddedWidget.cpp: Added.
        * WebCoreSupport/EmbeddedWidget.h: Added.
        Add EmbeddedWidget, a widget subclass which can hold an IWebEmbeddedView.

        * WebCoreSupport/WebFrameLoaderClient.cpp:
        (WebFrameLoaderClient::createPlugin):
        Check if the UI delegate wants to create an embedded view.

        * WebKit.vcproj/WebKit.vcproj:
        Add EmbeddedWidget.{cpp|h}

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

12 years ago Reviewed by Dave Hyatt.
mitz@apple.com [Thu, 31 Jul 2008 20:46:20 +0000 (20:46 +0000)]
    Reviewed by Dave Hyatt.

        - fix <rdar://problem/6058958> REGRESSION (r34210): Seams are visible in border-image

        * platform/graphics/cg/ImageCG.cpp:
        (WebCore::BitmapImage::draw): To work around a Core Graphics
        interpolation issue, reverted to using a temporary subimage for drawing
        a portion of the image with scaling and high-quality interpolation in
        effect.

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

12 years ago<rdar://problem/3563671> VO doesn't highlight characters when interacting when static...
cfleizach@apple.com [Thu, 31 Jul 2008 20:44:46 +0000 (20:44 +0000)]
<rdar://problem/3563671> VO doesn't highlight characters when interacting when static text in web areas

Add ability to get bounds for individual characters through accessibility

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

12 years agoRemoved da BOM from the ChangeLog.
ddkilzer@apple.com [Thu, 31 Jul 2008 20:39:07 +0000 (20:39 +0000)]
Removed da BOM from the ChangeLog.

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

12 years ago Release build fix.
ap@webkit.org [Thu, 31 Jul 2008 19:15:12 +0000 (19:15 +0000)]
    Release build fix.

        * Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView setWindowIfNecessary]):
        Don't define to npErr in release builds, as it is only used for logging.

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

12 years ago2008-07-31 John Sullivan <sullivan@apple.com>
sullivan@apple.com [Thu, 31 Jul 2008 17:50:30 +0000 (17:50 +0000)]
2008-07-31  John Sullivan  <sullivan@apple.com>

        Fixed <https://bugs.webkit.org/show_bug.cgi?id=5195>
        drawing with cacheDisplayInRect:toBitmapImageRep: doesn't trigger layout on Leopard

        Reviewed by Dan

        * WebView/WebHTMLView.mm:
        (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inContext:topView:]):
        include Leopard in the #ifdef that forces a layout if needed

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

12 years agoSecond attempt at Windows/wx build fix. Instead of avoiding inclusion of windows...
kevino@webkit.org [Thu, 31 Jul 2008 17:33:03 +0000 (17:33 +0000)]
Second attempt at Windows/wx build fix. Instead of avoiding inclusion of windows.h, use defines, etc. to avoid conflicts in each affected file.

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

12 years ago2008-07-31 Erik Bunce <elbunce@thehive.com>
hausmann@webkit.org [Thu, 31 Jul 2008 17:20:00 +0000 (17:20 +0000)]
2008-07-31  Erik Bunce  <elbunce@thehive.com>

        Reviewed by Simon.

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

        Include the Writing Direction sub-menu in the context menu of all
        platforms but GTK. This fixes a regression introduced by revision
        34426.

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

12 years agoWebCore:
beidson@apple.com [Thu, 31 Jul 2008 17:14:24 +0000 (17:14 +0000)]
WebCore:

2008-07-31  Brady Eidson  <beidson@apple.com>

        Reviewed by Adam and Hyatt

        Fix for <rdar://problem/6099748>

        Adds a "don't enforce CSS mime type in strict mode" quirk for iWeb 2

        * WebCore.base.exp:

        * html/HTMLLinkElement.cpp:
        (WebCore::HTMLLinkElement::setCSSStyleSheet):

        * loader/CachedCSSStyleSheet.cpp:
        (WebCore::CachedCSSStyleSheet::canUseSheet):
        * loader/CachedCSSStyleSheet.h:
        (WebCore::CachedCSSStyleSheet::sheetText):
        * page/Settings.cpp:

        (WebCore::Settings::Settings):
        (WebCore::Settings::setEnforceCSSMIMETypeInStrictMode):
        * page/Settings.h:
        (WebCore::Settings::enforceCSSMIMETypeInStrictMode):

WebKit/mac:

2008-07-30  Brady Eidson  <beidson@apple.com>

        Reviewed by Adam and Hyatt

        Fix for <rdar://problem/6099748>

        * WebView/WebView.mm:
        (-[WebView _preferencesChangedNotification:]): Set the "don't enforce CSS mime type in strict mode"
          quirk when running under iWeb 2

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

12 years ago2008-07-31 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Thu, 31 Jul 2008 16:56:04 +0000 (16:56 +0000)]
2008-07-31  Anders Carlsson  <andersca@apple.com>

        Reviewed by Adam.

        Fix Windows build.

        * kjs/collector.h:
        * wtf/FastMalloc.cpp:

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

12 years ago2008-07-31 Erik Bunce <elbunce@thehive.com>
hausmann@webkit.org [Thu, 31 Jul 2008 15:11:15 +0000 (15:11 +0000)]
2008-07-31  Erik Bunce  <elbunce@thehive.com>

        Reviewed by Simon.

        Added the ability to get SQLite headers and source from the location·
        specified via the SQLITE3SRCDIR environtment variable.

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

12 years ago2008-07-31 Erik Bunce <elbunce@thehive.com>
hausmann@webkit.org [Thu, 31 Jul 2008 15:10:54 +0000 (15:10 +0000)]
2008-07-31  Erik Bunce  <elbunce@thehive.com>

        Reviewed by Simon.

        Make run-launcher set DYLD_LIBRARY_PATH to make things work on Mac OS X.

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

12 years ago2008-07-31 Erik Bunce <elbunce@thehive.com>
hausmann@webkit.org [Thu, 31 Jul 2008 15:03:31 +0000 (15:03 +0000)]
2008-07-31  Erik Bunce  <elbunce@thehive.com>

        Reviewed by Simon.

        Make sure edit actions get updated when the contents change.

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

12 years ago2008-07-31 Erik Bunce <elbunce@thehive.com>
hausmann@webkit.org [Thu, 31 Jul 2008 15:00:42 +0000 (15:00 +0000)]
2008-07-31  Erik Bunce  <elbunce@thehive.com>

        Reviewed by Simon.

        Add simple edit test abilities to QtLauncher.

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

12 years ago2008-07-31 Csaba Osztrogonac <oszi@inf.u-szeged.hu>
hausmann@webkit.org [Thu, 31 Jul 2008 15:00:30 +0000 (15:00 +0000)]
2008-07-31  Csaba Osztrogonac  <oszi@inf.u-szeged.hu>

        Reviewed by Simon.

        Bug 20170: [Qt] missing namespace defines in JavaScriptCore.pro
        <https://bugs.webkit.org/show_bug.cgi?id=20170>

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

12 years ago Rubber-stamped by Maciej.
ap@webkit.org [Thu, 31 Jul 2008 12:19:22 +0000 (12:19 +0000)]
    Rubber-stamped by Maciej.

        Eliminate JSLock (it was already disabled, removing the stub implementaion and all
        call sites now).

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

12 years ago Rubber-stamped by Oliver Hunt.
ap@webkit.org [Thu, 31 Jul 2008 09:58:12 +0000 (09:58 +0000)]
    Rubber-stamped by Oliver Hunt.

        Fix the Mac project to not display "test/" as part of file name for tests.

        * JavaScriptCore.xcodeproj/project.pbxproj:

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

12 years ago Reviewed by Alexey Proskuryakov.
eric@webkit.org [Thu, 31 Jul 2008 08:44:58 +0000 (08:44 +0000)]
    Reviewed by Alexey Proskuryakov.

        Rename USE(MULTIPLE_THREADS) to ENABLE(JSC_MULTIPLE_THREADS)
        to better match the use/enable pattern (and better describe
        the usage of the feature in question.)

        I also fixed a couple other ENABLE_ macros to be pre-processor
        definition override-able to match the rest of the ENABLE_ macros
        since it seems to be our convention that build systems can set
        ENABLE_ macros in Makefiles.

        * kjs/InitializeThreading.cpp:
        (KJS::initializeThreadingOnce):
        * kjs/JSGlobalData.cpp:
        (KJS::JSGlobalData::JSGlobalData):
        (KJS::JSGlobalData::~JSGlobalData):
        * kjs/MathObject.cpp:
        * kjs/collector.cpp:
        (KJS::Heap::Heap):
        (KJS::Heap::~Heap):
        (KJS::allocateBlock):
        (KJS::Heap::markStackObjectsConservatively):
        * kjs/collector.h:
        * kjs/dtoa.cpp:
        (KJS::pow5mult):
        (KJS::rv_alloc):
        (KJS::freedtoa):
        (KJS::dtoa):
        * wtf/FastMalloc.cpp:
        * wtf/Platform.h:
        * wtf/RefCountedLeakCounter.cpp:

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

12 years agoWindows build fix.
jhoneycutt@apple.com [Thu, 31 Jul 2008 07:37:44 +0000 (07:37 +0000)]
Windows build fix.

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

12 years ago Reviewed by Mark Rowe.
eric@webkit.org [Thu, 31 Jul 2008 06:38:54 +0000 (06:38 +0000)]
    Reviewed by Mark Rowe.

        Try to clean up our usage of USE(MULTIPLE_THREADS) vs. USE(PTHREADS) a little.
        It looks like JSC assumes that if MULTIPLE_THREADS is defined, then pthreads will always be available
        I'm not sure that's always the case for gtk, certainly not for Windows.  We should eventually go back
        and fix wtf/Threading.h to cover all these cases some day.

        * kjs/JSLock.cpp:
        * kjs/collector.h:
        * wtf/Platform.h:

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

12 years agoWindows build fix.
mrowe@apple.com [Thu, 31 Jul 2008 06:14:13 +0000 (06:14 +0000)]
Windows build fix.

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

12 years ago Fix various minor bugs with style editing in the Inspector.
timothy@apple.com [Thu, 31 Jul 2008 04:04:52 +0000 (04:04 +0000)]
    Fix various minor bugs with style editing in the Inspector.

        - Restores the scroll position to 0,0 when finished editing a
        string that was longer than the editing input area.

        - Adjusts the margin of the list item to ensure the text does
        not shift when entering and exiting editing mode.

        - Reliably remembers if a shorthand has children when the
        children haven't been populated yet.

        - Reliably remembers if a shorthand was expanded, and expands
        if needed after editing finishes.

        - Hides color swatches when editing.

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

        Reviewed by Adam Roben.

        * page/inspector/StylesSidebarPane.js:
        (WebInspector.StylePropertyTreeElement.prototype.startEditing):
        Store the expanded state and children state in wasExpanded and
        reallyHasChildren properties.
        (WebInspector.StylePropertyTreeElement.prototype.editingEnded):
        Removed the wasExpanded argument and use the reallyHasChildren and
        wasExpanded properties to restore state. Deletes the state properties.
        (WebInspector.StylePropertyTreeElement.prototype.editingCancelled):
        Removed the wasExpanded argument.
        (WebInspector.StylePropertyTreeElement.prototype.editingCommitted):
        Removed the wasExpanded argument.
        * page/inspector/inspector.css: Tweak the margin and hides the color
        swatches. ALso removes a rule that was not needed.
        * page/inspector/inspector.js:
        (WebInspector.startEditing): Restore the scrollLeft and scrollTop
        to zero when editing finishes.

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

12 years ago2008-07-30 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Thu, 31 Jul 2008 01:21:59 +0000 (01:21 +0000)]
2008-07-30  Anders Carlsson  <andersca@apple.com>

        Reviewed by Mitz.

        Use a COMPropertyBag instead of the HTTPHeaderPropertyBag.

        * HTTPHeaderPropertyBag.cpp: Removed.
        * HTTPHeaderPropertyBag.h: Removed.
        * WebURLResponse.cpp:
        (WebURLResponse::allHeaderFields):

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

12 years ago2008-07-30 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Thu, 31 Jul 2008 01:11:54 +0000 (01:11 +0000)]
2008-07-30  Anders Carlsson  <andersca@apple.com>

        Fix copyright years.

        * COMPropertyBag.h:
        * COMVariantSetter.h:

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

12 years ago2008-07-30 Alice Liu <alice.liu@apple.com>
alice.liu@apple.com [Thu, 31 Jul 2008 00:33:14 +0000 (00:33 +0000)]
2008-07-30  Alice Liu  <alice.liu@apple.com>

        Implement userIdleTime() for Windows, and place a band-aid over other
        platform implementations of userIdleTime().  This will fix the issue
        of indefinitely postposing releasing pages from the PageCache
        on non-Mac platforms, causing us to hang onto just about everything
        else about a web page.

        Reviewed by Sam Weinig.

        * platform/gtk/TemporaryLinkStubs.cpp:
        * platform/wx/TemporaryLinkStubs.cpp:
        * platform/qt/TemporaryLinkStubs.cpp:
        (WebCore::userIdleTime): set to FLT_MAX

        * platform/win/SystemTimeWin.cpp:
        (WebCore::userIdleTime): implemented

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

12 years ago2008-07-30 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Thu, 31 Jul 2008 00:19:28 +0000 (00:19 +0000)]
2008-07-30  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam.

        More property bag work.

        * COMPropertyBag.h:
        (COMPropertyBag::COMPropertyBag):
        (::adopt):
        (::Read):
        * COMVariantSetter.h:
        (COMIUnknownVariantSetter::setVariant):

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

12 years agoWebCore:
bdakin@apple.com [Thu, 31 Jul 2008 00:01:52 +0000 (00:01 +0000)]
WebCore:

2008-07-30  Beth Dakin  <bdakin@apple.com>

        Reviewed by Anders Carlsson.

        Fixes <rdar://problem/6041390>

        Adds the ability to have a frame that is "disconnected" from the
        main frame from the perspective of top and parent in
        Javascript.

        * WebCore.base.exp:
        * page/DOMWindow.cpp:
        (WebCore::DOMWindow::parent):
        (WebCore::DOMWindow::top):
        * page/Frame.cpp:
        (WebCore::Frame::isDisconnectedFrame):
        (WebCore::Frame::setIsDisconnectedFrame):
        (WebCore::FramePrivate::FramePrivate):
        * page/Frame.h:
        * page/FramePrivate.h:
        * page/FrameTree.cpp:
        (WebCore::FrameTree::parent):
        (WebCore::FrameTree::top):
        * page/FrameTree.h:

WebKit/mac:

2008-07-30  Beth Dakin  <bdakin@apple.com>

        Reviewed by Anders Carlsson.

        Fixes <rdar://problem/6041390>

        Adds the ability to have a frame that is "disconnected" from the
        main frame from the perspective of top and parent in
        Javascript.

        * WebView/WebFrame.mm:
        (-[WebFrame _setIsDisconnectedFrame]):
        * WebView/WebFramePrivate.h:

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

12 years ago Reviewed by Oliver.
eric@webkit.org [Wed, 30 Jul 2008 23:14:37 +0000 (23:14 +0000)]
    Reviewed by Oliver.

        MSVC warns when structs are called classes or vice versa.
        Make all the source refer to JSGlobalData as a class.

        * kjs/CommonIdentifiers.h:
        * kjs/JSGlobalData.h:
        * kjs/Parser.h:
        * kjs/lexer.h:

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

12 years ago Reviewed by Justin.
eric@webkit.org [Wed, 30 Jul 2008 23:13:57 +0000 (23:13 +0000)]
    Reviewed by Justin.

        Crash Safari when dragging images into Google presentations
        https://bugs.webkit.org/show_bug.cgi?id=20161

        Test: manual-tests/remove-on-drop-crash.html

        * editing/ReplaceSelectionCommand.cpp:
        (WebCore::ReplaceSelectionCommand::doApply):
        * manual-tests/remove-on-drop-crash.html: Added.

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

12 years ago2008-07-30 Jessica Kahn <jess@apple.com>
jess@apple.com [Wed, 30 Jul 2008 22:59:16 +0000 (22:59 +0000)]
2008-07-30  Jessica Kahn  <jess@apple.com>

        Reviewed by Adam Roben.

        Slightly stricter checking for previous change, suggested by Adam.

        * Scripts/extract-localizable-strings:

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

12 years ago2008-07-30 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Wed, 30 Jul 2008 22:29:43 +0000 (22:29 +0000)]
2008-07-30  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam.

        Add COMPropertyBag, a simple template class that implements the IPropertyBag interface. All
        property bag values must be of the same type.

        The COMVariantSetter helpers are now in COMVariantSetter.h

        * COMEnumVariant.h:
        * COMPropertyBag.h: Added.
        * COMVariantSetter.h: Added.
        * WebKit.vcproj/WebKit.vcproj:

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

12 years ago2008-07-30 Jessica Kahn <jess@apple.com>
jess@apple.com [Wed, 30 Jul 2008 22:22:04 +0000 (22:22 +0000)]
2008-07-30  Jessica Kahn  <jess@apple.com>

        Reviewed by Darin Adler.

        Added support for UI_STRING and UI_STRING_KEY macros with flexible prefixes.

        * Scripts/extract-localizable-strings:

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

12 years agoBuild fix for Cairo < 1.6
christian@webkit.org [Wed, 30 Jul 2008 21:12:12 +0000 (21:12 +0000)]
Build fix for Cairo < 1.6

* platform/graphics/cairo/PathCairo.cpp:
  (WebCore::Path::boundingRect): use cairo_stroke_extends for < 1.6

Reviewed by Mark.

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

12 years ago2008-07-30 Alice Liu <alice.liu@apple.com>
alice.liu@apple.com [Wed, 30 Jul 2008 20:34:39 +0000 (20:34 +0000)]
2008-07-30  Alice Liu  <alice.liu@apple.com>

        Reviewed by Adam Roben.

        Adding logging of COM class names and counts to facilitate
        investigating memory issues.

        * Interfaces/IWebKitStatistics.idl:
        * WebKitDLL.cpp:
        * WebKitDLL.h:
        * WebKitStatistics.cpp:
        (WebKitStatistics::comClassNameCounts):
        * WebKitStatistics.h:

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

12 years ago2008-07-29 Kevin McCullough <kmccullough@apple.com>
kmccullough@apple.com [Wed, 30 Jul 2008 20:17:53 +0000 (20:17 +0000)]
2008-07-29  Kevin McCullough  <kmccullough@apple.com>

        Reviewed by Geoff.

        <rdar://problem/6110314> Crash in profiler dereferencing null frame or
        page (20214)
        - Null check.

        * page/Console.cpp:
        (WebCore::Console::finishedProfiling):

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

12 years ago Reviewed by Geoff Garen.
ap@webkit.org [Wed, 30 Jul 2008 20:16:06 +0000 (20:16 +0000)]
    Reviewed by Geoff Garen.

        Add consistency checks to UString to document and enforce its design.

        * kjs/ustring.cpp:
        (KJS::UString::Rep::create):
        (KJS::UString::Rep::destroy):
        (KJS::UString::Rep::checkConsistency):
        (KJS::UString::expandCapacity):
        (KJS::UString::expandPreCapacity):
        (KJS::UString::UString):
        (KJS::UString::spliceSubstringsWithSeparators):
        (KJS::UString::append):
        * kjs/ustring.h:
        (KJS::UString::Rep::checkConsistency):

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

12 years ago2008-07-30 David Hyatt <hyatt@apple.com>
hyatt@apple.com [Wed, 30 Jul 2008 20:02:32 +0000 (20:02 +0000)]
2008-07-30  David Hyatt  <hyatt@apple.com>

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

        Full page zoom needs to work properly with JS mouse events.  Make sure to adjust the coordinates of the
        JS mouse event to account for zoom.

        Reviewed by olliej

        * dom/EventTargetNode.cpp:
        (WebCore::EventTargetNode::dispatchMouseEvent):

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

12 years agoWebCore:
weinig@apple.com [Wed, 30 Jul 2008 19:00:28 +0000 (19:00 +0000)]
WebCore:

2008-07-29  Sam Weinig  <sam@webkit.org>

        Reviewed by Darin Adler.

        Update Cross-site XMLHttpRequests using Access control to
        the latest spec. (Editor's Draft 8 July 2008)

        - This leaves us at about the same place as we previously were
          still needing preflight caching and better redirect support.

        * GNUmakefile.am:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * WebCoreSources.bkl:
        * xml/AccessControlList.cpp: Removed.
        * xml/AccessControlList.h: Removed.
        * xml/AccessItem.cpp: Removed.
        * xml/AccessItem.h: Removed.
        * xml/AccessItemRule.cpp: Removed.
        * xml/AccessItemRule.h: Removed.
        * xml/XMLHttpRequest.cpp:
        (WebCore::isOnAccessControlSimpleRequestHeaderWhitelist):
        (WebCore::XMLHttpRequest::XMLHttpRequest):
        (WebCore::XMLHttpRequest::isSimpleCrossSiteAccessRequest):
        (WebCore::XMLHttpRequest::makeCrossSiteAccessRequest):
        (WebCore::XMLHttpRequest::makeSimpleCrossSiteAccessRequest):
        (WebCore::XMLHttpRequest::makeCrossSiteAccessRequestWithPreflight):
        (WebCore::XMLHttpRequest::handleAsynchronousPreflightResult):
        (WebCore::XMLHttpRequest::abort):
        (WebCore::XMLHttpRequest::clearRequest):
        (WebCore::XMLHttpRequest::didFinishLoading):
        (WebCore::XMLHttpRequest::didFinishLoadingPreflight):
        (WebCore::XMLHttpRequest::accessControlCheck):
        (WebCore::XMLHttpRequest::didReceiveResponse):
        (WebCore::parseAccessControlAllowList):
        (WebCore::XMLHttpRequest::didReceiveResponsePreflight):
        * xml/XMLHttpRequest.h:

LayoutTests:

2008-07-29  Sam Weinig  <sam@webkit.org>

        Reviewed by Darin Adler.

        Update Cross-site XMLHttpRequests using Access control to
        the latest spec. (Editor's Draft 8 July 2008)

        - Update syntax in tests a remove tests for removed features.

        * http/tests/xmlhttprequest/access-control-basic-allow-async.html:
        * http/tests/xmlhttprequest/access-control-basic-blacklist-request-headers-expected.txt: Removed.
        * http/tests/xmlhttprequest/access-control-basic-blacklist-request-headers.html: Removed.
        * http/tests/xmlhttprequest/access-control-basic-exclude.html: Removed.
        * http/tests/xmlhttprequest/access-control-basic-non-simple-allow-async-expected.txt: Copied from LayoutTests/http/tests/xmlhttprequest/access-control-basic-not-get-allow-async-expected.txt.
        * http/tests/xmlhttprequest/access-control-basic-non-simple-allow-async.html: Copied from LayoutTests/http/tests/xmlhttprequest/access-control-basic-not-get-allow-async.html.
        * http/tests/xmlhttprequest/access-control-basic-non-simple-allow-expected.txt: Copied from LayoutTests/http/tests/xmlhttprequest/access-control-basic-not-get-allow-expected.txt.
        * http/tests/xmlhttprequest/access-control-basic-non-simple-allow.html: Copied from LayoutTests/http/tests/xmlhttprequest/access-control-basic-not-get-allow.html.
        * http/tests/xmlhttprequest/access-control-basic-not-get-allow-async-expected.txt: Removed.
        * http/tests/xmlhttprequest/access-control-basic-not-get-allow-async.html: Removed.
        * http/tests/xmlhttprequest/access-control-basic-not-get-allow-expected.txt: Removed.
        * http/tests/xmlhttprequest/access-control-basic-not-get-allow.html: Removed.
        * http/tests/xmlhttprequest/resources/access-control-basic-allow-access-control-origin-header.cgi:
        * http/tests/xmlhttprequest/resources/access-control-basic-allow-print-headers.cgi:
        * http/tests/xmlhttprequest/resources/access-control-basic-allow-star.cgi:
        * http/tests/xmlhttprequest/resources/access-control-basic-allow.cgi:
        * http/tests/xmlhttprequest/resources/access-control-basic-exclude.cgi: Removed.
        * http/tests/xmlhttprequest/resources/access-control-basic-get-fail-non-simple.cgi:
        * http/tests/xmlhttprequest/resources/access-control-basic-non-get-allow.cgi:
        * http/tests/xmlhttprequest/resources/access-control-basic-whitelist-response-headers.cgi:

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

12 years ago[GTK] Auto generate webkitmarshal.list
christian@webkit.org [Wed, 30 Jul 2008 18:17:24 +0000 (18:17 +0000)]
[GTK] Auto generate webkitmarshal.list

Auto generate webkitmarshal.list from source files to reduce the
number of conflicts when merging git branches or when applying
patches.
Also rename webkit-marshal.* to webkitmarshal.* for consistency.

Reviewed by Holger.

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