WebKit-https.git
12 years agoRemove the workaround for bug 11399 now that it is fixed.
timothy@apple.com [Mon, 7 Apr 2008 16:41:12 +0000 (16:41 +0000)]
Remove the workaround for bug 11399 now that it is fixed.

Reviewed by Adam Roben.

* page/inspector/Console.js: Removed the 'with' statement
around the eval and call eval directly on the inspected window.

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

12 years ago2008-04-07 Luca Bruno <lethalman88@gmail.com>
alp@webkit.org [Mon, 7 Apr 2008 13:34:45 +0000 (13:34 +0000)]
2008-04-07  Luca Bruno  <lethalman88@gmail.com>

        Reviewed by Alp Toker.

        http://bugs.webkit.org/show_bug.cgi?id=18297
        Bug #18297 - Acid2/Acid3 -tests don't load load with soup.

        Fixes in the libsoup backend: data url parsing, acid tests, redirects,
        response headers handling and re-entrancy issues on job cancellation.
        Thanks to Dan Winship for libsoup hints.

        * platform/network/ResourceHandleInternal.h:
        (WebCore::ResourceHandleInternal::ResourceHandleInternal): add m_cancelled and remove unuseful m_session
        * platform/network/soup/ResourceHandleSoup.cpp:
        (WebCore::restartedCallback): added to route redirects to webkit
        (WebCore::dataCallback): add response headers, some checks and fix re-entrancy
        (WebCore::parseDataUrl): be an idle callback for the main loop
        (WebCore::ResourceHandle::start):
        (WebCore::ResourceHandle::cancel): fixed re-entrancy

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

12 years ago Build fix, rubber-stamped and landed by ap.
ap@webkit.org [Mon, 7 Apr 2008 12:24:26 +0000 (12:24 +0000)]
    Build fix, rubber-stamped and landed by ap.

        * configure.ac: Add autoconf flag for HTML5 client-side session and persistent storage support.

WebCore:
        * GNUmakefile.am: Fix dom_storage conditional and typo: ENABLE_DOM_STORAG.

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

12 years ago2008-04-07 Brady Eidson <beidson@apple.com>
beidson@apple.com [Mon, 7 Apr 2008 07:07:19 +0000 (07:07 +0000)]
2008-04-07  Brady Eidson  <beidson@apple.com>

        Whoops, idls don't go in the vcproj!

        * WebCore.vcproj/WebCore.vcproj:

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

12 years ago2008-04-06 Brady Eidson <beidson@apple.com>
beidson@apple.com [Mon, 7 Apr 2008 06:55:43 +0000 (06:55 +0000)]
2008-04-06  Brady Eidson <beidson@apple.com>

        Attempt to tickle Windows build into accepting this idl

        * storage/StorageEvent.idl:

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

12 years ago2008-04-06 Brady Eidson <beidson@apple.com>
beidson@apple.com [Mon, 7 Apr 2008 06:39:35 +0000 (06:39 +0000)]
2008-04-06  Brady Eidson <beidson@apple.com>

        Reviewed by Sam

        HTML5 Session and Local Storage

        Land a bunch of empty files and interfaces to keep things building while
        I finish off the rest of the implementation of SessionStorage

        * DerivedSources.make:
        * GNUmakefile.am:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * WebCoreSources.bkl:

        * storage/OriginStorage.cpp: Added.
        * storage/OriginStorage.h: Added.

        * storage/SessionStorage.cpp: Added.
        * storage/SessionStorage.h: Added.

        * storage/Storage.cpp: Added.
        (WebCore::Storage::length):
        (WebCore::Storage::key):
        (WebCore::Storage::getItem):
        (WebCore::Storage::setItem):
        (WebCore::Storage::removeItem):
        * storage/Storage.h: Added.
        * storage/Storage.idl: Added.

        * storage/StorageEvent.cpp: Added.
        * storage/StorageEvent.h: Added.
        (WebCore::StorageEvent::key):
        (WebCore::StorageEvent::oldValue):
        (WebCore::StorageEvent::newValue):
        (WebCore::StorageEvent::uri):
        (WebCore::StorageEvent::source):
        (WebCore::StorageEvent::initStorageEvent):
        * storage/StorageEvent.idl: Added.

        * storage/StorageMap.cpp: Added.
        * storage/StorageMap.h: Added.

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

12 years ago Reviewed by Darin.
ap@webkit.org [Mon, 7 Apr 2008 06:33:20 +0000 (06:33 +0000)]
    Reviewed by Darin.

        Make UString thread-safe.

        No change on SunSpider total, although individual tests have changed a lot, up to 3%.

        * kjs/InitializeThreading.cpp: (KJS::initializeThreading): Call UString::null() to initialize
        a static.

        * kjs/identifier.cpp:
        (KJS::CStringTranslator::translate):
        (KJS::UCharBufferTranslator::translate):
        Use "true" for a boolean value instead of 1, because it's C++.

        * kjs/ustring.h:
        (KJS::CString::adopt): Added a method to create from a char* buffer without copying.
        (KJS::UString::Rep::ref): Removed an assertion for JSLock::lockCount, as it's no longer
        necessary to hold JSLock when working with strings.
        (KJS::UString::Rep::deref): Ditto.
        (KJS::UString::Rep::isStatic): Added a field to quickly determine that this is an empty
        or null static string.

        * kjs/ustring.cpp:
        (KJS::): Removed normalStatBufferSize and statBufferSize, as there is no reason to have such
        an advanced implementation of a debug-only ascii() method. Removed a long-obsolete comment
        about UChar.
        (KJS::UString::Rep::createCopying): Removed an assertion for JSLock::lockCount.
        (KJS::UString::Rep::create): Ditto.
        (KJS::UString::Rep::destroy): Ditto. Do not do anything for static null and empty strings,
        as refcounting is not reliable for those. Reordered branches for a noticeable speed gain -
        apparently this functiton is hot enough for SunSpider to see an effect from this!
        (KJS::UString::null): Moved a star, added a comment.
        (KJS::UString::cstring): Reimplemented to not call ascii(), which is not thread-safe.
        (KJS::UString::ascii): Simplified statBuffer handling logic.
        (KJS::UString::toDouble): Use cstring() instead of ascii().

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

12 years ago2008-04-06 Luca Bruno <lethalman88@gmail.com>
alp@webkit.org [Mon, 7 Apr 2008 00:09:36 +0000 (00:09 +0000)]
2008-04-06  Luca Bruno  <lethalman88@gmail.com>

        Reviewed by Alp Toker.

        Fix webkit_web_view_get_transparent() return value.

        * webkit/webkitwebview.cpp:

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

12 years agoRubber stamped by Mark Rowe.
kevino@webkit.org [Sun, 6 Apr 2008 00:56:32 +0000 (00:56 +0000)]
Rubber stamped by Mark Rowe.

Don't assume wxWebKit to be part of the wx package. This allows us to run it from any directory on the PYTHONPATH rather than having to copy files into the wxPython directory.

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

12 years agoReviewed by Mark Rowe.
kevino@webkit.org [Sun, 6 Apr 2008 00:38:16 +0000 (00:38 +0000)]
Reviewed by Mark Rowe.

Add CSS to the MIMETypeRegistry, which ensures CSS files get the right MIMEType when loaded from disk.

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

12 years ago Reviewed by Eric.
rwlbuis@webkit.org [Sat, 5 Apr 2008 20:43:48 +0000 (20:43 +0000)]
    Reviewed by Eric.

        http://bugs.webkit.org/show_bug.cgi?id=17129
        Incorrect style resolution in CSS styled SVG, with multiple style sheets
        Fix the style resolution on the svg by ensuring xml-stylesheet pseudo
        attributes title and alternate are transferred to the stylesheet
        created from the ProcessingInstruction.

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

12 years agoWebCore:
mitz@apple.com [Sat, 5 Apr 2008 16:05:08 +0000 (16:05 +0000)]
WebCore:

        Reviewed by Darin Adler.

        - fix <rdar://problem/5843719> Excessive repainting of cells in tables with non-auto height

        Test: fast/repaint/table-two-pass-layout-overpaint.html

        * rendering/RenderTable.cpp:
        (WebCore::RenderTable::layout): Changed the first pass over the sections
        to only call calcRowHeight() and recalcOuterBorder() but not
        layoutRows(), because the section's final height is unknown yet.
        Removed caching of m_height before the call to calcHeight(), because
        for non-positioned tables, calcHeight() only calculates the vertical
        margins and does not change m_height.
        Added a second pass over the sections, after the table height is known,
        to call layoutRows() on each section, with additional height if needed.
        Did minimal cleanup including caching the value of collapseBorders() in
        a local variable and changing a while loop into a for loop.
        * rendering/RenderTableSection.cpp:
        (WebCore::RenderTableSection::calcRowHeight): Changed to return the
        height of the section based on row height calculations.
        (WebCore::RenderTableSection::layoutRows): Removed a call to
        recalcOuterBorder(), which is now done by RenderTable::layout().
        * rendering/RenderTableSection.h: Changed calcRowHeight() to have a
        return value.

LayoutTests:

        Reviewed by Darin Adler.

        - repaint test for <rdar://problem/5843719> Excessive repainting of cells in tables with non-auto height

        * fast/repaint/table-two-pass-layout-overpaint.html: Added.
        * platform/mac/fast/repaint/table-two-pass-layout-overpaint-expected.checksum: Added.
        * platform/mac/fast/repaint/table-two-pass-layout-overpaint-expected.png: Added.
        * platform/mac/fast/repaint/table-two-pass-layout-overpaint-expected.txt: Added.

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

12 years agoSimon Hausmann <shausman@trolltech.com>
hausmann@webkit.org [Sat, 5 Apr 2008 12:33:57 +0000 (12:33 +0000)]
Simon Hausmann <shausman@trolltech.com>

Fixes: Disable "unimplemented" warnings when building WebKit inside Qt.

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

12 years agoOlivier Goffart <ogoffart@trolltech.com>
hausmann@webkit.org [Sat, 5 Apr 2008 12:24:17 +0000 (12:24 +0000)]
Olivier Goffart <ogoffart@trolltech.com>

Fixes: Right clicking an image and choosing "copy image" doesnt put anything in the clipboard.

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

12 years agoOlivier Goffart <ogoffart@trolltech.com>
hausmann@webkit.org [Sat, 5 Apr 2008 12:24:05 +0000 (12:24 +0000)]
Olivier Goffart <ogoffart@trolltech.com>

Fixes: Right click, and "Open image" open the link instead of the image.

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

12 years agoSimon Hausmann <hausmann@webkit.org>
hausmann@webkit.org [Sat, 5 Apr 2008 12:23:51 +0000 (12:23 +0000)]
Simon Hausmann <hausmann@webkit.org>

Rubber-stamped by Holger

Revert "* Load images incrementally. This will show warnings on the console"
This rolls out -r29739.

This unfortunately caused some crashes and drawing errors. Backing out for now.

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

12 years agoBenjamin Meyer <bmeyer@trolltech.com>
hausmann@webkit.org [Sat, 5 Apr 2008 11:56:18 +0000 (11:56 +0000)]
Benjamin Meyer <bmeyer@trolltech.com>

Added doc stub for QWebSettings so class docs are generated

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

12 years agoHolger Hans Peter Freyther <holger.freyther@trolltech.com>
hausmann@webkit.org [Sat, 5 Apr 2008 11:56:04 +0000 (11:56 +0000)]
Holger Hans Peter Freyther <holger.freyther@trolltech.com>

* Propose the addition of updateRequest and scrollRequest to the QWebPage.

* The question is if these signals belong to QWebPage or  QWebFrame.
    -It is more easy to have them in QWebPage because ScrollView is invoking
     the ChromeClient with the right coordinates
    -On the other hand someone wants to render frames separately. But this is partly
     doomed as you can have overlapping frames and what you paint would not relate to
     what you normally see on webpages.

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

12 years ago Only delete the backing store of background windows.
sfalken@apple.com [Sat, 5 Apr 2008 06:34:15 +0000 (06:34 +0000)]
    Only delete the backing store of background windows.

        Reviewed by Ada Chan.

        * WebView.cpp:
        (WebView::WebView):
        (WebView::deleteBackingStore):
        (WebView::paint): Added active check.
        (WebView::deleteBackingStoreSoon):
        (WebView::cancelDeleteBackingStoreSoon): Added.
        (WebView::active): Added.
        (WebView::updateActiveState): Moved active check code from here to active().
        * WebView.h:

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

12 years ago Fix tooltip window leak.
sfalken@apple.com [Sat, 5 Apr 2008 05:50:00 +0000 (05:50 +0000)]
    Fix tooltip window leak.

        Explicitly call DestroyWindow on the tooltip.
        Destroying its parent won't destroy the tooltip, since it not a WS_CHILD style window.

        Reviewed by Ada Chan.

        * WebView.cpp:
        (WebView::~WebView):

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

12 years agoAdd GradientWx.cpp to the wx build process.
kevino@webkit.org [Sat, 5 Apr 2008 05:17:20 +0000 (05:17 +0000)]
Add GradientWx.cpp to the wx build process.

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

12 years ago Reviewed by Sam Weinig.
mitz@apple.com [Sat, 5 Apr 2008 04:54:52 +0000 (04:54 +0000)]
    Reviewed by Sam Weinig.

        - speed up CSSFontSelector::getFontData()

        * css/CSSFontSelector.cpp:
        (WebCore::fontDataForGenericFamily): Factored out of getFontData().
        (WebCore::CSSFontSelector::getFontData): Changed to call
        fontDataForGenericFamily() directly if the map is empty.

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

12 years ago2008-04-04 Jon Honeycutt <jhoneycutt@apple.com>
jhoneycutt@apple.com [Sat, 5 Apr 2008 04:02:10 +0000 (04:02 +0000)]
2008-04-04  Jon Honeycutt  <jhoneycutt@apple.com>

        Reviewed by Oliver.

        Replace AccessibilityObject::isRenderImage() with a virtual
        RenderObject::isRenderImage().

        * page/AccessibilityObject.cpp:
        (WebCore::AccessibilityObject::accessibilityIsIgnored):
        (WebCore::AccessibilityObject::addChildren):
        * page/AccessibilityObject.h:
        (WebCore::AccessibilityObject::isDetached):
        * rendering/RenderImage.h:
        (WebCore::RenderImage::isRenderImage):
        * rendering/RenderObject.h:
        (WebCore::RenderObject::isRenderImage):

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

12 years ago Delete backing store after we go 5 seconds without a paint.
sfalken@apple.com [Sat, 5 Apr 2008 02:14:02 +0000 (02:14 +0000)]
    Delete backing store after we go 5 seconds without a paint.

        Timer will be reset if a paint occurs, so this won't negatively impact performance.

        Reviewed by Ada Chan.

        * WebView.cpp:
        (WebView::paint): Call deleteBackingStoreSoon after paint.
        (WebViewWndProc): Add DeleteBackingStoreTimer.
        (WebView::deleteBackingStoreSoon): Added.
        * WebView.h: Add deleteBackingStoreSoon.

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

12 years ago - try to fix the wx build
mitz@apple.com [Sat, 5 Apr 2008 00:13:30 +0000 (00:13 +0000)]
    - try to fix the wx build

        * platform/graphics/wx/FontPlatformDataWx.cpp:
        (WebCore::fontWeightToWxFontWeight):
        (WebCore::FontPlatformData::FontPlatformData):

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

12 years ago2008-04-04 Jon Honeycutt <jhoneycutt@apple.com>
jhoneycutt@apple.com [Sat, 5 Apr 2008 00:05:24 +0000 (00:05 +0000)]
2008-04-04  Jon Honeycutt  <jhoneycutt@apple.com>

        Reviewed by Beth.

        Some more clean-up of AccessibilityObject:
        - Rearranged/grouped methods.
        - Marked many methods const.
        - Changed many methods to take args by const ref instead of by val.
        - Made headingLevel() static.
        - Renamed detached() to isDetached(), loaded() to isLoaded(),
          documentLinks to getDocumentLinks().
        - Made clearChildren(), removeAXObjectID(), isDetached() private.
        - Added notImplemented() calls for unimplemented methods.
        - Replaced stringForReplacedNode method with static function.

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

12 years agoRestore the user entered text when clearing the auto-completion.
timothy@apple.com [Fri, 4 Apr 2008 21:13:38 +0000 (21:13 +0000)]
Restore the user entered text when clearing the auto-completion.
This is important when the user typed text that is a different
case than the completion. This has no affect on the Console, since
it matches completions case-sensitively. This is used in the up-coming
Database Query view for words like "SELECT" and "INSERT".

Reviewed by Adam Roben.

* page/inspector/TextPrompt.js:
(WebInspector.TextPrompt.prototype.clearAutoComplete): Restore the user typed
text in the original DOM range that complete() saved away.
(WebInspector.TextPrompt.prototype.complete): Store away the fullWordRange
and it's text content so clearAutoComplete can restore it.

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

12 years agoDon't trim whitespace when looking for the current match, this prevents tabbing throu...
timothy@apple.com [Fri, 4 Apr 2008 20:58:58 +0000 (20:58 +0000)]
Don't trim whitespace when looking for the current match, this prevents tabbing through matches in the up-coming Database Query view.

Reviewed by Adam Roben.

* page/inspector/TextPrompt.js: Removed a trimTrailingWhitespace() call.

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

12 years agoFactor out the Console text completion and command history into
timothy@apple.com [Fri, 4 Apr 2008 20:50:58 +0000 (20:50 +0000)]
Factor out the Console text completion and command history into
a new TextPrompt object. This TextPrompt object will be used later
other parts of the Inspector that need text completion and history.
Not functionality changed, just moved code around.

Reviewed by Adam Roben.

* WebCore.vcproj/WebCore.vcproj: Add TextPrompt.js.
* page/inspector/Console.js: Call the new prompt object and
  delete all the code that moved.
* page/inspector/TextPrompt.js: Added. Moved code from Console.js.
* page/inspector/WebKit.qrc: Add TextPrompt.js.
* page/inspector/inspector.html: Add TextPrompt.js.

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

12 years agoMakes setting shouldRefreshChildren on a TreeElement perform the refresh
timothy@apple.com [Fri, 4 Apr 2008 20:29:47 +0000 (20:29 +0000)]
Makes setting shouldRefreshChildren on a TreeElement perform the refresh
immediately if the element is already expanded.

Reviewed by Adam Roben.

* page/inspector/treeoutline.js:
(TreeElement.prototype.get shouldRefreshChildren): Return this._shouldRefreshChildren.
(TreeElement.prototype.set shouldRefreshChildren): If changing to true, and
already expanded,
call expand again to trigger the refresh. Sets this._shouldRefreshChildren.
(TreeElement.prototype._attach): Check for this._shouldRefreshChildren.
(TreeElement.prototype.expand): Ditto.

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

12 years ago2008-04-04 Jon Honeycutt <jhoneycutt@apple.com>
jhoneycutt@apple.com [Fri, 4 Apr 2008 20:17:50 +0000 (20:17 +0000)]
2008-04-04  Jon Honeycutt  <jhoneycutt@apple.com>

        Reviewed by Beth.

        Some clean up of AccessibilityObject:
        - Use existing isImage() in more places.
        - Use existing isTextControl() in more places.
        - Added isRenderImage(). Check this before casting to RenderImage,
          since other, non-RenderImage derived RenderObjects (e.g.
          RenderListMarker) can return true for isImage().
        - Fix two copy/paste errors with improper semicolons.

        * page/AccessibilityObject.cpp:
        (WebCore::AccessibilityObject::isImageButton): Use isImage().
        (WebCore::AccessibilityObject::isRenderImage): Added.
        (WebCore::AccessibilityObject::isAnchor): Use isImage().
        (WebCore::AccessibilityObject::isAttachment): Same.
        (WebCore::AccessibilityObject::accessibilityDescription): Same.
        (WebCore::AccessibilityObject::accessibilityIsIgnored): Use
        isRenderImage() instead of isImage().
        (WebCore::AccessibilityObject::url): Use isImage().
        (WebCore::AccessibilityObject::textControl): Remove improper semicolon,
        and use isTextControl().
        (WebCore::AccessibilityObject::textMarkerForIndex): Same.
        (WebCore::AccessibilityObject::indexForTextMarker): Use isTextControl().
        (WebCore::AccessibilityObject::doAXRangeForLine): Same.
        (WebCore::AccessibilityObject::doAXRangeForIndex): Same
        (WebCore::AccessibilityObject::doAXStringForRange): Same.
        (WebCore::AccessibilityObject::roleValue):  Use isImage().
        (WebCore::AccessibilityObject::addChildren): Use isRenderImage().
        * page/AccessibilityObject.h:

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

12 years agoFixes a null exception when hovering in some areas of the DOM tree.
timothy@apple.com [Fri, 4 Apr 2008 20:13:34 +0000 (20:13 +0000)]
Fixes a null exception when hovering in some areas of the DOM tree.

Reviewed by Adam Roben.

* page/inspector/treeoutline.js:
(TreeOutline.prototype.treeElementFromPoint): Check listNode for null/undefined
before accessing any properties. Return null if listNode is null.

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

12 years agoChanging WebInspector.currentFocusElement to/from an input element
timothy@apple.com [Fri, 4 Apr 2008 20:05:38 +0000 (20:05 +0000)]
Changing WebInspector.currentFocusElement to/from an input element
does not change the actual focus of that input element. You see this
in the search field.

Reviewed by Adam Roben.

* page/inspector/inspector.js:
(WebInspector.set currentFocusElement): Call blur and focus if the
node implements them.

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

12 years ago2008-04-04 David Hyatt <hyatt@apple.com>
hyatt@apple.com [Fri, 4 Apr 2008 19:18:12 +0000 (19:18 +0000)]
2008-04-04  David Hyatt  <hyatt@apple.com>

        Improve the background size heuristic for SVGs used as background images with no intrinsic size specified.
        Treat them as having a background-size of 100%.  This means their maximal size will be the box established
        by background-origin.

        Reviewed by Beth

        * rendering/RenderBox.cpp:
        (WebCore::RenderBox::calculateBackgroundSize):

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

12 years agoCorrectly show DOCTYPE in the breadcrumbs and match the CSS rules
timothy@apple.com [Fri, 4 Apr 2008 19:16:46 +0000 (19:16 +0000)]
Correctly show DOCTYPE in the breadcrumbs and match the CSS rules
from view-source.css for the DOCTYPE in the DOM tree.

Reviewed by Adam Roben.

* css/view-source.css: Add and correct comments about keeping
in-sync with inspector.css.
* page/inspector/ElementsPanel.js:
(WebInspector.DocumentPanel.prototype.updateBreadcrumb):
Add a case for Node.DOCUMENT_TYPE_NODE.
* page/inspector/inspector.css: Add a rule for .webkit-html-doctype.
* page/inspector/utilities.js:
(nodeTitleInfo): Use the webkit-html-doctype class for nodes
with Node.DOCUMENT_TYPE_NODE.

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

12 years ago - try to fix the Tiger build
mitz@apple.com [Fri, 4 Apr 2008 19:02:33 +0000 (19:02 +0000)]
    - try to fix the Tiger build

        * icu/unicode/uscript.h: Copied from WebKit/mac/icu/unicode/uscript.h.

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

12 years agoMake WebKit use WebCore's copy of the ICU headers
aroben@apple.com [Fri, 4 Apr 2008 18:17:58 +0000 (18:17 +0000)]
Make WebKit use WebCore's copy of the ICU headers

WebCore:

        Copy icu/ to PrivateHeaders for WebKit's benefit

        Rubberstamped by Tim Hatcher.

        * WebCore.xcodeproj/project.pbxproj: Renamed the Copy Forwarding
        Headers build phase to Copy Forwarding and ICU Headers, and added the
        icu/ directory to it.

WebKit/mac:

        Use WebCore's ICU headers instead of our own copy

        Rubberstamped by Tim Hatcher.

        * Configurations/WebKit.xcconfig: Pick up ICU headers from WebCore's
        PrivateHeaders.

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

12 years agoFix <rdar://problem/5804776> Would like to use WebCore's ForwardingHeaders in WebKit...
aroben@apple.com [Fri, 4 Apr 2008 17:47:42 +0000 (17:47 +0000)]
Fix <rdar://problem/5804776> Would like to use WebCore's ForwardingHeaders in WebKit without manually creating copies

WebCore:

        Fix <rdar://problem/5804776> Would like to use WebCore's
        ForwardingHeaders in WebKit without manually creating copies

        Patch by Tim Hatcher, typed by me.

        * WebCore.xcodeproj/project.pbxproj: Added a new build phase, Copy
        Forwarding Headers, that copies the ForwardingHeaders directory to
        WebCore's PrivateHeaders directory.

WebKit/mac:

        Fix <rdar://problem/5804776> Would like to use WebCore's
        ForwardingHeaders in WebKit without manually creating copies

        Patch by Tim Hatcher, typed by me.

        * Configurations/WebKit.xcconfig: Use the copy of ForwardingHeaders in
        WebCore's PrivateHeaders instead of our own copy.

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

12 years agoWebCore:
adachan@apple.com [Fri, 4 Apr 2008 17:21:33 +0000 (17:21 +0000)]
WebCore:
        Changed the signature of imageTitleForFilename so we can pass in the width
        and height as integers.

        Reviewed by Dan.

        * page/mac/WebCoreViewFactory.h:
        * platform/mac/LocalizedStringsMac.mm:
        (WebCore::imageTitle):

WebKit:
        Updated the format string for window title for a standalone image to take integers.

        Reviewed by Dan.

        * English.lproj/Localizable.strings:

WebKit/mac:
        Now we pass width and height directly as integers to format
        the window title for a standalone image.

        Reviewed by Dan.

        * WebCoreSupport/WebViewFactory.mm:
        (-[WebViewFactory imageTitleForFilename:width:height:]):

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

12 years ago <rdar://problem/5830598> Image file opened in the browser window shows "Local...
adachan@apple.com [Fri, 4 Apr 2008 15:57:16 +0000 (15:57 +0000)]
    <rdar://problem/5830598> Image file opened in the browser window shows "Localized String Not Found' in window's title bar instead file name
        Save WebCoreLocalizedStrings.cpp with UTF8 encoding.
        Changed the format string to take in integers.

        Reviewed by Dan.

        * English.lproj/Localizable.strings: Updated.
        * WebCoreLocalizedStrings.cpp:
        (WebCore::imageTitle):

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

12 years agoForgot to save after the last change...
mitz@apple.com [Fri, 4 Apr 2008 05:28:56 +0000 (05:28 +0000)]
Forgot to save after the last change...

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

12 years ago - Windows build fix
mitz@apple.com [Fri, 4 Apr 2008 05:20:53 +0000 (05:20 +0000)]
    - Windows build fix

        * platform/graphics/win/FontCacheWin.cpp:
        (WebCore::matchImprovingEnumProc):

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

12 years agoFix PlatformGradient so that it's a pointer on all platforms.
kevino@webkit.org [Fri, 4 Apr 2008 05:08:34 +0000 (05:08 +0000)]
Fix PlatformGradient so that it's a pointer on all platforms.

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

12 years ago - 64-bit build fix
mitz@apple.com [Fri, 4 Apr 2008 04:47:03 +0000 (04:47 +0000)]
    - 64-bit build fix

        * platform/mac/WebFontCache.mm:
        (+[WebFontCache internalFontWithFamily:traits:weight:size:]):

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

12 years agowx build fix. Add stubs for gradient class platform functions.
kevino@webkit.org [Fri, 4 Apr 2008 04:34:44 +0000 (04:34 +0000)]
wx build fix. Add stubs for gradient class platform functions.

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

12 years agoReviewed by Dan Bernstein.
kevino@webkit.org [Fri, 4 Apr 2008 04:32:38 +0000 (04:32 +0000)]
Reviewed by Dan Bernstein.

Refactor Gradient.h to have the same API on platforms without a gradient class.

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

12 years ago - Qt build fix
mitz@apple.com [Fri, 4 Apr 2008 04:13:45 +0000 (04:13 +0000)]
    - Qt build fix

        * platform/graphics/qt/FontQt.cpp:
        (WebCore::Font::Font):

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

12 years ago - Tiger build fix
mitz@apple.com [Fri, 4 Apr 2008 04:07:28 +0000 (04:07 +0000)]
    - Tiger build fix

        * platform/mac/WebFontCache.mm:
        * rendering/RenderThemeMac.mm:

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

12 years ago - Gtk build fix
mitz@apple.com [Fri, 4 Apr 2008 04:04:29 +0000 (04:04 +0000)]
    - Gtk build fix

        * platform/graphics/gtk/FontPlatformData.h:
        (WebCore::FontPlatformData::size):
        * platform/graphics/gtk/FontPlatformDataGtk.cpp:
        (WebCore::FontPlatformData::FontPlatformData):
        * platform/graphics/gtk/FontPlatformDataPango.cpp:
        (WebCore::FontPlatformData::FontPlatformData):

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

12 years ago - project file updates in preparation for build fixes
mitz@apple.com [Fri, 4 Apr 2008 03:51:50 +0000 (03:51 +0000)]
    - project file updates in preparation for build fixes

        * GNUmakefile.am:
        * WebCore.pro:
        * WebCoreSources.bkl:

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

12 years agoWebCore:
mitz@apple.com [Fri, 4 Apr 2008 03:46:59 +0000 (03:46 +0000)]
WebCore:

2008-04-03  Nicholas Shanks  <webkit@nickshanks.com>

        Updated by Dan Bernstein. Reviewed by Dave Hyatt.

        - WebCore part of fixing http://bugs.webkit.org/show_bug.cgi?id=6484
          font-weight does not properly support graded weights

        Tests to come: <http://bugs.webkit.org/show_bug.cgi?id=18306>

        Build fixes for platforms other than Mac and Windows to come.

        * WebCore.vcproj/WebCore.vcproj: Added FontDescription.cpp.

        * WebCore.xcodeproj/project.pbxproj: Ditto.

        * css/CSSComputedStyleDeclaration.cpp:
        (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Changed to
        return additional weight value keywords 100, 200, 300, 500, 600, 800
        and 900.

        * css/CSSFontSelector.cpp:
        (WebCore::hashForFont): Changed the bold parameter into a weight
        parameter and added the weight to the string to be hashed.
        (WebCore::CSSFontSelector::addFontFaceRule): Changed to apply all CSS
        weight values to the font description.
        (WebCore::CSSFontSelector::getFontData): Updated the fallback logic to
        go through all weights equal or lighter from the desired weight. For
        SVG, to also consider heavier weights.

        * css/CSSParser.cpp:
        (WebCore::CSSParser::parseValue): Cleaned up parsing of the font-weight
        property.

        * css/CSSStyleSelector.cpp:
        (WebCore::CSSStyleSelector::applyProperty): Changed to apply all CSS
        weight values to the font description.

        * platform/graphics/Font.h:
        (WebCore::Font::weight): Updated for the change to
        FontDescription::weight().

        * platform/graphics/FontCache.cpp:
        (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey): Replaced
        the bold component of the key with a weight component.
        (WebCore::FontPlatformDataCacheKey::operator==): Updated for the above.
        (WebCore::computeHash): Ditto.
        (WebCore::FontPlatformDataCacheKeyTraits::deletedValue): Removed
        unnecessary parameters.
        (WebCore::FontPlatformDataCacheKeyTraits::emptyValue): Ditto.
        (WebCore::FontCache::getCachedFontPlatformData): Updated for the change
        in FontPlatformDataCacheKey.

        * platform/graphics/FontDescription.cpp: Added.
        (WebCore::FontDescription::lighterWeight): Added. Returns a lighter CSS
        font-weight value if there is one, or the lightest value.
        (WebCore::FontDescription::bolderWeight): Added. Returns a heavier CSS
        font-weight value if there is one, or the heaviest value.

        * platform/graphics/FontDescription.h:
        (WebCore::FontWeight): Added this enumeration.
        (WebCore::FontDescription::FontDescription):
        (WebCore::FontDescription::bold): Removed.
        (WebCore::FontDescription::weight): Changed to return a FontWeight.
        (WebCore::FontDescription::setBold): Removed.
        (WebCore::FontDescription::setWeight): Changed to take a FontWeight.

        * platform/graphics/mac/FontCacheMac.mm:
        (WebCore::toAppKitFontWeight): Added. Maps a FontWeight to the AppKit
        font weight scale of 0-15.
        (WebCore::isAppKitFontWeightBold): Added.
        (WebCore::FontCache::getFontDataForCharacters): Changed to use a weight
        instead of the bold trait for custom fonts, and to decide whether to
        synthesize bold based on the weights rather than the bold trait.
        (WebCore::FontCache::fontExists): Updated for the change in
        WebFontCache .
        (WebCore::FontCache::createFontPlatformData): Ditto. Also changed to
        decide whether to synthesize bold based on the weights rather than on
        the bold trait.

        * platform/graphics/win/FontCacheWin.cpp:
        (WebCore::toGDIFontWeight): Added. Maps a FontWeight to a GDI font
        weight constant.
        (WebCore::isGDIFontWeightBold): Added.
        (WebCore::adjustedGDIFontWeight): Added.
        (WebCore::MatchImprovingProcData::MatchImprovingProcData): Added this
        data structure for use by the following callback.
        (WebCore::matchImprovingEnumProc): Added. The logic of this method is a
        simplification of the betterChoice() predicate in WebFontCache.mm, which
        considers only the italic trait and the weight.
        (WebCore::createGDIFont): Added. Similarly to
        +[WebFontCache fontWithFamily:traits:weight:size:], this function
        finds the closest match in the family for the desired italic bit and
        weight.
        (WebCore::FontCache::fontExists): Changed to call createGDIFont().
        (WebCore::FontCache::createFontPlatformData): Ditto. Also changed to
        compute the synthetic bold and synthetic italic flags based on weights
        and italic bits and pass them to the FontPlatformData constructor.

        * platform/graphics/win/FontPlatformDataWin.cpp:
        (WebCore::FontPlatformData::FontPlatformData): Changed the bold and
        oblique parameters to mean whether these should be synthesized and
        removed the font enumeration code that used to decide that.

        * platform/graphics/win/SimpleFontDataWin.cpp:
        (WebCore::SimpleFontData::smallCapsFontData): Changed to pass the
        synthetic bold and oblique flags from the full-size FontPlatformData to
        the FontPlatformData constructor for the small caps font.

        * platform/mac/WebCoreTextRenderer.h:
        * platform/mac/WebCoreTextRenderer.mm:
        (WebCoreFindFont): Added a weight parameter, which is passed to
        +[WebFontCache fontWithFamily:traits:weight:size:].

        * platform/mac/WebFontCache.h:
        * platform/mac/WebFontCache.mm:
        (acceptableChoice):
        (betterChoice): Changed to ignore the bold trait. Changed the logic for
        deciding based on weights to prefer the font whose weight is closer to
        the desired one, or, if both candidates' weights are the same distance
        from the desired weight, the one that is more "off-center".
        (+[WebFontCache internalFontWithFamily:traits:weight:size:]): Changed to
        check for weight when matching by full name. Changed to pass
        the actual desired weight instead of the constant 5 to
        acceptableChoice() and betterChoice(). Changed to use weights to decide
        whether to synthesize bold.
        (+[WebFontCache fontWithFamily:traits:weight:size:]): Added a weight
        parameter, which is passed to the internal method.

        * platform/win/PopupMenuWin.cpp:
        (WebCore::PopupMenu::paint): Updated for the change to FontDescription.

        * rendering/RenderListBox.cpp:
        (WebCore::RenderListBox::updateFromElement): Ditto.
        (WebCore::RenderListBox::paintItemForeground): Ditto.

        * rendering/RenderThemeMac.mm:
        (WebCore::toFontWeight): Added. Maps the AppKit font weight range of
        0-15 to the FontWeight range.
        (WebCore::RenderThemeMac::systemFont): Updated for the change to
        FontDescription.

        * rendering/RenderThemeSafari.cpp:
        (WebCore::RenderThemeSafari::systemFont): Ditto.

WebKit/mac:

2008-04-03  Nicholas Shanks  <webkit@nickshanks.com>

        Updated by Dan Bernstein. Reviewed by Dave Hyatt.

        - WebKit part of fixing http://bugs.webkit.org/show_bug.cgi?id=6484
          font-weight does not properly support graded weights

        * WebView/WebHTMLView.mm:
        (-[WebHTMLView _styleFromFontAttributes:]):
        (-[WebHTMLView _originalFontB]):
        (-[WebHTMLView _addToStyle:fontA:fontB:]):

WebKit/win:

2008-04-03  Dan Bernstein  <mitz@apple.com>

        Reviewed by Dave Hyatt.

        - WebKit part of fixing http://bugs.webkit.org/show_bug.cgi?id=6484
          font-weight does not properly support graded weights

        * DOMCoreClasses.cpp:
        (DOMElement::font): Updated for the change to FontDescription.
        * WebCoreSupport/WebDragClient.cpp:
        (dragLabelFont): Ditto.
        * WebKitGraphics.cpp:
        (makeFont): Ditto.
        * WebKitGraphics.h: Added a FIXME.

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

12 years ago - another Gtk build fix attempt
mitz@apple.com [Fri, 4 Apr 2008 03:10:23 +0000 (03:10 +0000)]
    - another Gtk build fix attempt

        * platform/graphics/cairo/GradientCairo.cpp:
        (WebCore::Gradient::platformDestroy):

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

12 years ago - attempted Gtk build fix
mitz@apple.com [Fri, 4 Apr 2008 02:05:42 +0000 (02:05 +0000)]
    - attempted Gtk build fix

        * GNUmakefile.am:

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

12 years ago - attempted Qt build fix
mitz@apple.com [Fri, 4 Apr 2008 01:02:09 +0000 (01:02 +0000)]
    - attempted Qt build fix

        * platform/graphics/qt/GradientQt.cpp:
        (WebCore::Gradient::platformDestroy):

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

12 years ago - attempted Gtk build fix
mitz@apple.com [Fri, 4 Apr 2008 00:43:39 +0000 (00:43 +0000)]
    - attempted Gtk build fix

        * html/CanvasRenderingContext2D.cpp:
        (WebCore::CanvasRenderingContext2D::stroke):

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

12 years ago - attempted Qt build fix
mitz@apple.com [Fri, 4 Apr 2008 00:40:22 +0000 (00:40 +0000)]
    - attempted Qt build fix

        * html/CanvasRenderingContext2D.cpp:
        (WebCore::CanvasRenderingContext2D::stroke):

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

12 years ago <rdar://problem/5835382> Calling window.open immediately after window.close...
sfalken@apple.com [Thu, 3 Apr 2008 23:13:24 +0000 (23:13 +0000)]
    <rdar://problem/5835382> Calling window.open immediately after window.close can sometimes result in no window being created

        Group name tracking needs to happen using code in WebCore::Page, since it is more involved than
        just setting a string.

        Reviewed by Adam Roben.

        * WebView.cpp:
        (WebView::close): Add null check (found via code inspection).
        (WebView::initWithFrame): Store the group name directly in Page.
        (WebView::setGroupName): Store the group name directly in Page.
        (WebView::groupName): Retrieve the group name directly from Page.
        * WebView.h: Removed m_groupName

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

12 years ago2008-04-03 Beth Dakin <bdakin@apple.com>
bdakin@apple.com [Thu, 3 Apr 2008 23:08:28 +0000 (23:08 +0000)]
2008-04-03  Beth Dakin  <bdakin@apple.com>

        Reviewed by Alice.

        Build fix for non-Macs.

        * page/AXObjectCache.h:
        (WebCore::AXObjectCache::isIDinUse):

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

12 years ago2008-04-03 Brent Fulgham <bfulgham@gmail.com>
pewtermoose@webkit.org [Thu, 3 Apr 2008 22:48:48 +0000 (22:48 +0000)]
2008-04-03  Brent Fulgham  <bfulgham@gmail.com>

        Reviewed by Darin.

        Correct build error due to incomplete merging of changes to project
        files from Issue 17985.  This small project file patch corrects
        the build issue (see http://bugs.webkit.org/show_bug.cgi?id=18195).

        * WebCore.vcproj/WebCore.vcproj:

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

12 years ago2008-04-02 Beth Dakin <bdakin@apple.com>
bdakin@apple.com [Thu, 3 Apr 2008 22:02:45 +0000 (22:02 +0000)]
2008-04-02  Beth Dakin  <bdakin@apple.com>

        Reviewed by Hyatt.

        This patch eliminates AccessibilityObjectMac. All of the platform-
        specific code is now in AccessibilityObjectWrapper.

        * WebCore.xcodeproj/project.pbxproj:
        * dom/Element.h:
        (WebCore::Element::isPasswordField):
        * html/HTMLInputElement.h:
        (WebCore::HTMLInputElement::isPasswordField):
        * page/AXObjectCache.h:
        (WebCore::AXObjectCache::isIDinUse):
        * page/AccessibilityObject.cpp:
        (WebCore::AccessibilityObject::isPasswordField):
        (WebCore::AccessibilityObject::press):
        (WebCore::AccessibilityObject::widgetForAttachmentView):
        (WebCore::AccessibilityObject::doAXBoundsForTextMarkerRange):
        (WebCore::AccessibilityObject::doAXTextMarkerForPosition):
        * page/AccessibilityObject.h:
        (WebCore::AccessibilityObject::areaElement):
        (WebCore::AccessibilityObject::setWrapper):
        * page/mac/AXObjectCacheMac.mm:
        * page/mac/AccessibilityObjectMac.mm: Removed.
        * page/mac/AccessibilityObjectWrapper.h:
        * page/mac/AccessibilityObjectWrapper.mm:
        (-[AccessibilityObjectWrapper attachmentView]):
        (textMarkerForVisiblePosition):
        (visiblePositionForTextMarker):
        (visiblePositionForStartOfTextMarkerRange):
        (visiblePositionForEndOfTextMarkerRange):
        (textMarkerRangeFromMarkers):
        (AXAttributeStringSetFont):
        (CreateCGColorIfDifferent):
        (AXAttributeStringSetColor):
        (AXAttributeStringSetNumber):
        (AXAttributeStringSetStyle):
        (blockquoteLevel):
        (AXAttributeStringSetBlockquoteLevel):
        (AXAttributeStringSetSpelling):
        (AXAttributeStringSetHeadingLevel):
        (AXLinkElementForNode):
        (AXAttributeStringSetElement):
        (AXAttributedStringAppendText):
        (nsStringForReplacedNode):
        (-[AccessibilityObjectWrapper doAXAttributedStringForTextMarkerRange:]):
        (textMarkerRangeFromVisiblePositions):
        (-[AccessibilityObjectWrapper accessibilityActionNames]):
        (-[AccessibilityObjectWrapper accessibilityAttributeNames]):
        (-[AccessibilityObjectWrapper visiblePositionRangeForTextMarkerRange:]):
        (-[AccessibilityObjectWrapper textMarkerRangeForSelection]):
        (-[AccessibilityObjectWrapper position]):
        (createAccessibilityRoleMap):
        (RoleEntry::):
        (roleValueToNSString):
        (-[AccessibilityObjectWrapper role]):
        (-[AccessibilityObjectWrapper subrole]):
        (-[AccessibilityObjectWrapper roleDescription]):
        (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
        (-[AccessibilityObjectWrapper accessibilityIsIgnored]):
        (-[AccessibilityObjectWrapper accessibilityPerformAction:]):
        (-[AccessibilityObjectWrapper doAXAttributedStringForRange:]):
        (-[AccessibilityObjectWrapper doAXRTFForRange:]):
        (-[AccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]):
        (-[AccessibilityObjectWrapper accessibilityShouldUseUniqueId]):
        * platform/ScrollView.h:
        * platform/mac/ScrollViewMac.mm:
        (WebCore::ScrollView::viewRectToScreen):
        (WebCore::ScrollView::absolutePointToView):

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

12 years ago2008-04-03 David Hyatt <hyatt@apple.com>
hyatt@apple.com [Thu, 3 Apr 2008 21:57:13 +0000 (21:57 +0000)]
2008-04-03  David Hyatt  <hyatt@apple.com>

        Create a new cross-platform Gradient abstraction and make CanvasGradient wrap it.  This first
        step just cleans up CanvasGradient.  The code that calls it remains ifdef'd however.

        Reviewed by olliej

        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * WebCoreSources.bkl:
        * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
        (WebCore::toJS):
        * html/CanvasGradient.cpp:
        (WebCore::CanvasGradient::CanvasGradient):
        * html/CanvasGradient.h:
        (WebCore::CanvasGradient::gradient):
        (WebCore::CanvasGradient::addColorStop):
        (WebCore::CanvasGradient::getColor):
        * html/CanvasRenderingContext2D.cpp:
        (WebCore::CanvasRenderingContext2D::fill):
        (WebCore::CanvasRenderingContext2D::stroke):
        (WebCore::CanvasRenderingContext2D::fillRect):
        * html/CanvasStyle.h:
        (WebCore::CanvasStyle::canvasGradient):
        * platform/graphics/Gradient.cpp: Added.
        (WebCore::Gradient::Gradient):
        (WebCore::Gradient::~Gradient):
        (WebCore::Gradient::addColorStop):
        (WebCore::compareStops):
        (WebCore::Gradient::getColor):
        (WebCore::Gradient::findStop):
        * platform/graphics/Gradient.h: Added.
        (WebCore::Gradient::ColorStop::ColorStop):
        (WebCore::Gradient::platformInit):
        * platform/graphics/cairo/GradientCairo.cpp: Added.
        (WebCore::Gradient::platformDestroy):
        (WebCore::Gradient::platformGradient):
        * platform/graphics/cg/GradientCG.cpp: Added.
        (WebCore::Gradient::platformDestroy):
        (WebCore::gradientCallback):
        (WebCore::Gradient::platformGradient):
        * platform/graphics/qt/GradientQt.cpp: Added.
        (WebCore::Gradient::platformDestroy):
        (WebCore::Gradient::platformGradient):

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

12 years agoRoll out r31599 and r31605 again after discussion with Mark Rowe.
hausmann@webkit.org [Thu, 3 Apr 2008 21:47:25 +0000 (21:47 +0000)]
Roll out r31599 and r31605 again after discussion with Mark Rowe.

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

12 years agoAttempted build fix
hausmann@webkit.org [Thu, 3 Apr 2008 21:25:39 +0000 (21:25 +0000)]
Attempted build fix

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

12 years ago2008-04-03 David Hyatt <hyatt@apple.com>
hyatt@apple.com [Thu, 3 Apr 2008 21:14:47 +0000 (21:14 +0000)]
2008-04-03  David Hyatt  <hyatt@apple.com>

        Fix for bug 18194, resizable text fields get messed up when resizing in the presence of zoom.

        Reviewed by adele

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

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

12 years agoRollout r31566 as there were a few issues i missed during review (thanks to antti...
oliver@apple.com [Thu, 3 Apr 2008 20:30:05 +0000 (20:30 +0000)]
Rollout r31566 as there were a few issues i missed during review (thanks to antti for pointing them out)

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

12 years ago2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
hausmann@webkit.org [Thu, 3 Apr 2008 20:17:59 +0000 (20:17 +0000)]
2008-04-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>

        Reviewed by Simon.

        * Change IconDatabase::iconForPageURL to return more information. E.g. if
        an image has been found, or if the loading of an image has been scheduled.
        * Update FrameLoader to use another method to trigger reading from disk
        * Update the QWebFrame and QWebSettings

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

12 years agoHolger Hans Peter Freyther <holger.freyther@trolltech.com>
hausmann@webkit.org [Thu, 3 Apr 2008 19:22:57 +0000 (19:22 +0000)]
Holger Hans Peter Freyther <holger.freyther@trolltech.com>

* Safari is using the IconDatabase the following way (assumption). Before they
  call iconDatabase()->open they "retain" all URLs they are interested in, these
  could come from the history.
* When opening the iconDatabase() a thread will be started that is going to import
  the URLs, all none manually retained URLs are scheduled for removal. The removal
  is going to happen when the next icon gets stored in the database.
* We do not have any IconDatabase code, we can not retain the URLs before opening the
  database. To disable the automatic pruning of the icons we will ask the IconDatabase
  to delay this operation. This means our IconDatabase, when used, will grow, so we should
  try to have a IconDatabase class in 4.4.
* The only way to counter the growth is a call to QWebSettings::clearIconDatabase

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

12 years agoOops, fixed previous commit/merge error that caused build failure in Qt.
hausmann@webkit.org [Thu, 3 Apr 2008 19:01:45 +0000 (19:01 +0000)]
Oops, fixed previous commit/merge error that caused build failure in Qt.

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

12 years ago Allow WebArchive to be created via COM.
adachan@apple.com [Thu, 3 Apr 2008 19:00:40 +0000 (19:00 +0000)]
    Allow WebArchive to be created via COM.
        Replaced IID_DOMNode with __uuidof(DOMNode).

        Reviewed by Adam and Steve.

        * DOMCoreClasses.cpp:
        (DOMNode::QueryInterface):
        (DOMNode::isSameNode):
        * DOMCoreClasses.h:
        * ForEachCoClass.h:
        * Interfaces/WebKit.idl:
        * WebArchive.cpp:
        (WebArchive::createInstance):
        * WebArchive.h:
        * WebKitClassFactory.cpp:

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

12 years agoBenjamin Meyer <bmeyer@trolltech.com>
hausmann@webkit.org [Thu, 3 Apr 2008 18:59:03 +0000 (18:59 +0000)]
Benjamin Meyer <bmeyer@trolltech.com>

Add a way to get the site icon for a url
static QPixmap iconForUrl(const QUrl &url);

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

12 years agoHolger Hans Peter Freyther <holger.freyther@trolltech.com>
hausmann@webkit.org [Thu, 3 Apr 2008 18:46:58 +0000 (18:46 +0000)]
Holger Hans Peter Freyther <holger.freyther@trolltech.com>

* Update the Copyright info in QWebSettings

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

12 years agoHolger Hans Peter Freyther <holger.freyther@trolltech.com>
hausmann@webkit.org [Thu, 3 Apr 2008 18:46:44 +0000 (18:46 +0000)]
Holger Hans Peter Freyther <holger.freyther@trolltech.com>

* The isEmpty check is not needed anymore with the earlier backport

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

12 years ago2008-04-03 Brady Eidson <beidson@apple.com>
beidson@apple.com [Thu, 3 Apr 2008 16:50:13 +0000 (16:50 +0000)]
2008-04-03  Brady Eidson  <beidson@apple.com>

        Fix a tab into 4-spaces instead

        * webarchive/test-css-import-expected.txt:

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

12 years ago - Mac build fix
mitz@apple.com [Thu, 3 Apr 2008 16:20:42 +0000 (16:20 +0000)]
    - Mac build fix

        * WebCore.base.exp:

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

12 years agoFix the build when building without icondatabase.
hausmann@webkit.org [Thu, 3 Apr 2008 13:21:25 +0000 (13:21 +0000)]
Fix the build when building without icondatabase.

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

12 years agoHolger Hans Peter Freyther <holger.freyther@trolltech.com>
hausmann@webkit.org [Thu, 3 Apr 2008 12:27:21 +0000 (12:27 +0000)]
Holger Hans Peter Freyther <holger.freyther@trolltech.com>

* Remove the unused 'cache' parameter

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

12 years ago2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
hausmann@webkit.org [Thu, 3 Apr 2008 12:04:09 +0000 (12:04 +0000)]
2008-04-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>

        Reviewed by Simon.

        * Add WebCore/loader/icon to the DEPENDPATH as well

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

12 years agoHolger Hans Peter Freyther <holger.freyther@trolltech.com>
hausmann@webkit.org [Thu, 3 Apr 2008 11:40:30 +0000 (11:40 +0000)]
Holger Hans Peter Freyther <holger.freyther@trolltech.com>

* Add a Qt specific result for bad-scheme-subframe-expected.txt
* To match the mac-port we would have to return IgnoreNavigationRequest for
  schemes/URLs not supported by the QNetworkAccessManager in QWebPage::navigationRequested
  but we can't do that because QNetworkAccessManager does not expose a list of supported
  schemes and operations. So in contrast to the mac we will try to load the frame and fail.

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

12 years agoHolger Hans Peter Freyther <holger.freyther@trolltech.com>
hausmann@webkit.org [Thu, 3 Apr 2008 11:40:09 +0000 (11:40 +0000)]
Holger Hans Peter Freyther <holger.freyther@trolltech.com>

* Fix http/tests/loading/simple-subframe.html by adding a test result. The result is
  quite similar to the one of the mac port.

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

12 years ago2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
hausmann@webkit.org [Thu, 3 Apr 2008 10:31:31 +0000 (10:31 +0000)]
2008-04-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>

        Reviewed by Simon.

        * Enable running http tests for Qt again. Failing tests can be put into the skipped list.
        * Running these tests on windows and other platforms might need some work.

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

12 years agoHolger Hans Peter Freyther <holger.freyther@trolltech.com>
hausmann@webkit.org [Thu, 3 Apr 2008 10:31:18 +0000 (10:31 +0000)]
Holger Hans Peter Freyther <holger.freyther@trolltech.com>

* For the http tests we need the output of the FrameLoaderClient. The QtWebKit API
  is not exporting enough to create the output in DRT itself. Settle with the approach
  Lars has taken for the Editing support and add branches to our FrameLoaderClient code.
* run-webkit-tests http/tests(/loading) can now be executed.
* For tests in loading/ directories we are going to throw away the dirty
  QWebPage to start with something clean.

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

12 years agoHolger Hans Peter Freyther <holger.freyther@trolltech.com>
hausmann@webkit.org [Thu, 3 Apr 2008 10:30:59 +0000 (10:30 +0000)]
Holger Hans Peter Freyther <holger.freyther@trolltech.com>

* Treat http and https as special URLs as well. Change the main.cpp and
  DumpRenderTree.cpp to handle http and https URIs as input.
* I'm not doing the clean up and merging of these two checks now.

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

12 years agoHolger Hans Peter Freyther <holger.freyther@trolltech.com>
hausmann@webkit.org [Thu, 3 Apr 2008 10:30:44 +0000 (10:30 +0000)]
Holger Hans Peter Freyther <holger.freyther@trolltech.com>

* Remove dumpFrameLoadCallbacks from simple-subframe.html because it is
  located in a directory with the name "loading". And this will autoamtically
  enable dumping.
* Remove this method from the LayoutTestController as it is unused now and this
  avoids adding it to the DRT of the Qt port.

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

12 years agoWebCore:
beidson@apple.com [Thu, 3 Apr 2008 05:56:21 +0000 (05:56 +0000)]
WebCore:

2008-04-02  Brady Eidson  <beidson@apple.com>

        Reviewed by Mitz Pettel

        <rdar://problem/5838347> and http://bugs.webkit.org/show_bug.cgi?id=11839
        Webarchive fails to save CSS files in @import statements

        * css/CSSStyleSheet.cpp:
        (WebCore::CSSStyleSheet::addSubresourceURLStrings): Recursively add the URL each @import rule under the current style sheet.
        * css/CSSStyleSheet.h:
        * css/StyleSheet.h:
        (WebCore::StyleSheet::addSubresourceURLStrings):

        * html/HTMLLinkElement.cpp:
        (WebCore::HTMLLinkElement::getSubresourceAttributeStrings): Add the linked URL as well as all @import
          rules rooted at the linked stylesheet.

        * html/HTMLStyleElement.cpp:
        (WebCore::HTMLStyleElement::getSubresourceAttributeStrings): Walk all @import rules rooted at this
          stylesheet to add to the list.
        * html/HTMLStyleElement.h:

LayoutTests:

2008-04-02  Brady Eidson  <beidson@apple.com>

        Written by David Kilzer, tweaked by Brady, Reviewed by Mitz Pettel

        - test for http://bugs.webkit.org/show_bug.cgi?id=11839
          Webarchive fails to save CSS files in @import statements

        The idea is to <link> to a CSS file which @imports another CSS file,
        and also @import a CSS file inside a <style> element, which also @imports another CSS file

        Then make sure all 4 of the css files are in the resulting webarchive

        * webarchive/resources/test-css-import-recurse.css: Added.
        * webarchive/resources/test-css-import.css: Added.
        * webarchive/resources/test-css-link-recurse.css: Added.
        * webarchive/resources/test-css-link.css: Added.
        * webarchive/test-css-import-expected.txt: Added.
        * webarchive/test-css-import.html: Added.

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

12 years agoEnsure that debug symbols are generated for x86_64 and ppc64 builds.
mrowe@apple.com [Thu, 3 Apr 2008 05:11:00 +0000 (05:11 +0000)]
Ensure that debug symbols are generated for x86_64 and ppc64 builds.

Reviewed by Oliver Hunt.

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

12 years agoBuild fix for GCC 4.3.
christian@webkit.org [Thu, 3 Apr 2008 00:24:26 +0000 (00:24 +0000)]
Build fix for GCC 4.3.

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

12 years ago2008-04-02 Christian Persch <chpe@gnome.org>
alp@webkit.org [Wed, 2 Apr 2008 22:49:55 +0000 (22:49 +0000)]
2008-04-02  Christian Persch  <chpe@gnome.org>

        Reviewed by Alp Toker.

        GTK+/Pango font backend build fix.

        * platform/graphics/gtk/FontCustomPlatformDataPango.cpp:
        (WebCore::FontCustomPlatformData::fontPlatformData):

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

12 years agoNot reviewed. Speculative fix for hanging tests on buildbot (Tiger). Click events...
zimmermann@webkit.org [Wed, 2 Apr 2008 21:48:16 +0000 (21:48 +0000)]
Not reviewed. Speculative fix for hanging tests on buildbot (Tiger). Click events may have wrong origins.

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

12 years ago No review, build fix only.
eric@webkit.org [Wed, 2 Apr 2008 18:41:54 +0000 (18:41 +0000)]
    No review, build fix only.

        Speculative build fix for no-svg build.
        Use #if ENABLE(SVG) instead of #if ENABLE_SVG

        * css/CSSMutableStyleDeclaration.cpp:
        (WebCore::CSSMutableStyleDeclaration::getPropertyValue):

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

12 years ago Rename instances of ExecState from "state" to "exec" in JavaScriptDebugServer
aroben@apple.com [Wed, 2 Apr 2008 18:12:28 +0000 (18:12 +0000)]
    Rename instances of ExecState from "state" to "exec" in JavaScriptDebugServer

        Rename requested by Darin Adler.

        * page/JavaScriptDebugServer.cpp:

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

12 years ago Make it possible for JavaScriptDebugListeners to listen to specific Pages
aroben@apple.com [Wed, 2 Apr 2008 17:59:44 +0000 (17:59 +0000)]
    Make it possible for JavaScriptDebugListeners to listen to specific Pages

        JavaScriptDebugServer now has overloads of its
        addListener/removeListener methods that take a Page* to indicate for
        which Page the JavaScriptDebugListener wishes to receive messages.

        Reviewed by Darin.

        * page/JavaScriptDebugServer.cpp:
        (WebCore::JavaScriptDebugServer::~JavaScriptDebugServer): Delete all
        ListenerSets being held in m_pageListenersMap.
        (WebCore::JavaScriptDebugServer::addListener): Changed to call
        hasListeners().
        (WebCore::JavaScriptDebugServer::removeListener): Ditto.
        (WebCore::JavaScriptDebugServer::addListener): Added. This overload
        takes a Page* and puts the listener in the appropriate ListenerSet
        within m_pageListenersMap. The ListenerSet is allocated and added to
        m_pageListenersMap when its first listener is added.
        (WebCore::JavaScriptDebugServer::removeListener): Added. This overload
        takes a Page* and removes the listener from the appropriate
        ListenerSet in m_pageListenersMap. The ListenerSet is deleted and
        removed from m_pageListenersMap when its last listener is removed.
        (WebCore::toPage): Added. Retrieves the parent Page from an ExecState.
        (WebCore::JavaScriptDebugServer::sourceParsed): Changed to call
        dispatchDidParseSource/dispatchDidFailToParseSource for both the
        global listeners and the Page listeners.
        (WebCore::dispatchFunctionToListeners): Added. This code was extracted
        from the JavaScriptDebugServer method of the same name.
        (WebCore::JavaScriptDebugServer::dispatchFunctionToListeners): Call
        dispatchFunctionToListeners for both the global listeners and the Page
        listeners.
        * page/JavaScriptDebugServer.h:
          - Added declarations for new methods.
          - Made JavaScriptExecutionCallback typedef public so that it could
            be used by a helper method.
          - Added new m_pageListenersMap member.

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

12 years agoHolger Hans Peter Freyther <holger.freyther@trolltech.com>
hausmann@webkit.org [Wed, 2 Apr 2008 13:50:35 +0000 (13:50 +0000)]
Holger Hans Peter Freyther <holger.freyther@trolltech.com>

* Export the PageCache and Cache capacity call one to one. This is only there
  to allow the QtLauncher to play with caching.
* TODO: make API decisions and consider following the windows Api to set a WebCacheModel
  and determine certain values automatically.

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

12 years agoHolger Hans Peter Freyther <holger.freyther@trolltech.com>
hausmann@webkit.org [Wed, 2 Apr 2008 13:50:19 +0000 (13:50 +0000)]
Holger Hans Peter Freyther <holger.freyther@trolltech.com>

Prepapre everything for enabling the PageCache for the Qt Platform:
    * Claim that we can cache pages
    * Create the FrameView FrameLoaderClientQt::transitionToCommittedForNewPage using
      the initial size of the viewport and stop creating it in the QWebFramePrivate::init

Differences to the Windows port:
    * attachToWindow/detachFromWindow is not called and is not (yet) part
      of Widget/ScrollView of the Qt platform. We might need that for plugin
      support in the future.
    * We store the margin's and scrolling flag inside QWebFrame and use it when
      creating the FrameView.

What is missing:
    * API to call pageCache()->setCapacity(XYZ);

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

12 years agoFix compilation on case-sensitive file systems.
hausmann@webkit.org [Wed, 2 Apr 2008 13:49:12 +0000 (13:49 +0000)]
Fix compilation on case-sensitive file systems.

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

12 years agoReviewed by Oliver.
zimmermann@webkit.org [Wed, 2 Apr 2008 12:55:03 +0000 (12:55 +0000)]
Reviewed by Oliver.

Fixes: http://bugs.webkit.org/show_bug.cgi?id=17779 (SVG 1.1 Errata demands "SVG JavaScript Liveness" support)

SVG Errata states: "All SVG DOM objects that directly correspond to an
attribute, e.g. the SVGAnimatedLength 'ry' in an SVGRectElement, are live. This
means that any changes made to the attribute are immediately reflected in the
corresponding SVG DOM object." (see linked URL on bug report)

Until now only XML -> SVG DOM changes took affect, aka. changing the 'rx' attribute of a <rect>
element resuted in changes when accessing 'rx' through SVG DOM (rx.baseVal.value).

Add a new synchronization layer to handle SVG DOM -> XML changes.

Added Test: svg/custom/svg-xml-dom-sync.html

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

12 years agoHolger Hans Peter Freyther <holger.freyther@trolltech.com>
hausmann@webkit.org [Wed, 2 Apr 2008 12:00:58 +0000 (12:00 +0000)]
Holger Hans Peter Freyther <holger.freyther@trolltech.com>

* For the PageCache support we do not want to create a FrameView in the constructor
  of QWebFrame. In QWegPage::viewportSize() we currently call mainFrame() and that will
  create a QWebFrame if no mainFrame is present and this gets called when we try to
  create a FrameView...
* Keep a copy of the initial viewportSize around and use it if we do not have a Frame
  or FrameView.

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

12 years ago2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
hausmann@webkit.org [Wed, 2 Apr 2008 12:00:45 +0000 (12:00 +0000)]
2008-04-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>

        Reviewed by Simon.

        * Always return true in FrameLoaderClientQt::shouldGoToHistoryItem, like the windows port

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

12 years agoHolger Hans Peter Freyther <holger.freyther@trolltech.com>
hausmann@webkit.org [Wed, 2 Apr 2008 12:00:31 +0000 (12:00 +0000)]
Holger Hans Peter Freyther <holger.freyther@trolltech.com>

* Attempt to make the m_webFrame null pointer checking consistent. Always check for
  m_webFrame. It should get set by the QWebFrame with the FramerLoaderClientQt::setFrame
  call and should stay valid until the destruction of the QWebFrame.
* Currently the same checking is not needed for m_frame as it will only set to 0 in
  FrameLoaderClientQt::frameLoaderDestroyed and should be not 0 because of the setFrame
  initialisation.

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

12 years ago2008-04-02 Darin Adler <darin@apple.com>
darin@apple.com [Wed, 2 Apr 2008 11:54:02 +0000 (11:54 +0000)]
2008-04-02  Darin Adler  <darin@apple.com>

        Reviewed by Alexey.

        - fix storage leak seen on buildbot

        * platform/graphics/cg/ImageBufferCG.cpp:
        (WebCore::utiFromMIMEType): Put the result of createCFString() into a RetainPtr. Changed
        result to be a RetainPtr.
        (WebCore::ImageBuffer::toDataURL): Tweak a little bit, removing one local variable and
        some unneeded explicit conversions.

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

12 years ago Rubber-stamped by Darin.
ap@webkit.org [Wed, 2 Apr 2008 06:50:41 +0000 (06:50 +0000)]
    Rubber-stamped by Darin.

        Turn off using 64-bit arithmetic on 32-bit hardware, as dtoa own code is faster than
        compiler-provided emulation.

        1% speedup on Acid3 test 26.

        * kjs/dtoa.cpp:

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