WebKit-https.git
11 years agoMake DatabaseTrackerChromium::removeOpenDatabase() send and IPC on
dumi@chromium.org [Sat, 19 Dec 2009 02:03:00 +0000 (02:03 +0000)]
Make DatabaseTrackerChromium::removeOpenDatabase() send and IPC on
the main thread when a database is being closed.

Reviewed by Eric Seidel.

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

* storage/chromium/DatabaseTrackerChromium.cpp:
(WebCore::removeOpenDatabaseOnMainThread):
(WebCore::DatabaseTracker::removeOpenDatabase):

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

11 years agoBuild fix, no review.
bfulgham@webkit.org [Sat, 19 Dec 2009 01:59:18 +0000 (01:59 +0000)]
Build fix, no review.

* page/win/FrameCairoWin.cpp: Add missing include.
* platform/graphics/win/FontCacheWin.cpp:
(WebCore::FontCache::createFontPlatformData): Conditionalize
  Safari-only call.

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

11 years agoAdd Mac WebKit side of the client based geolocation provider.
weinig@apple.com [Sat, 19 Dec 2009 01:56:45 +0000 (01:56 +0000)]
Add Mac WebKit side of the client based geolocation provider.

Reviewed by Dan Bernstein.

WebKit:

* WebKit.xcodeproj/project.pbxproj:

WebKit/mac:

* Misc/WebKitErrors.m:
(registerErrors): Add Geolocation errors.
* Misc/WebKitErrorsPrivate.h:
* WebCoreSupport/WebGeolocationControllerClient.h: Added.
(WebGeolocationControllerClient::webView):
* WebCoreSupport/WebGeolocationControllerClient.mm: Added.
(WebGeolocationControllerClient::WebGeolocationControllerClient):
(WebGeolocationControllerClient::startUpdating):
(WebGeolocationControllerClient::stopUpdating):
(WebGeolocationControllerClient::lastPosition):
Add implementation of the WebGeolocationControllerClient.

* WebView/WebGeolocationPosition.h: Added.
* WebView/WebGeolocationPosition.mm: Added.
(-[WebGeolocationPositionInternal initWithCoreGeolocationPosition:]):
(core):
(-[WebGeolocationPosition initWithTimestamp:latitude:longitude:accuracy:]):
* WebView/WebGeolocationPositionInternal.h: Added.
Add an Objective-C wrapper for GeolocationPosition.

* WebView/WebView.mm:
(-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]): Set the GeolocationControllerClient.
(-[WebView _setGeolocationProvider:]): Set the GeolocationProvider
(-[WebView _geolocationProvider]): Return the GeolocationProvider.
(-[WebView _geolocationDidChangePosition:]): Notify WebCore that the position changed.
(-[WebView _geolocationDidFailWithError:]): Notify WebCore that an error occured.
* WebView/WebViewData.h:
* WebView/WebViewPrivate.h:

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

11 years agoMove some code related to database closing from the destructor to
dumi@chromium.org [Sat, 19 Dec 2009 01:27:14 +0000 (01:27 +0000)]
Move some code related to database closing from the destructor to
the close() method. This would allow us to do things such as post
tasks to other threads when a database closes, which cannot be
done now, because we cannot increment the ref count to a database
object when we're in its destructor.

Reviewed by Dmitry Titov.

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

* storage/Database.cpp:
(WebCore::Database::~Database):
(WebCore::Database::close):

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

11 years ago2009-12-18 Peter Kasting <pkasting@google.com>
eric@webkit.org [Sat, 19 Dec 2009 00:47:20 +0000 (00:47 +0000)]
2009-12-18  Peter Kasting  <pkasting@google.com>

        Reviewed by Adam Barth.

        Chromium build fix
        https://bugs.webkit.org/show_bug.cgi?id=32756

        * public/WebAccessibilityRole.h:
        (WebKit::):
        * src/AssertMatchingEnums.cpp:

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

11 years ago2009-12-18 Eric Seidel <eric@webkit.org>
eric@webkit.org [Sat, 19 Dec 2009 00:33:34 +0000 (00:33 +0000)]
2009-12-18  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        REGRESSION(52325) Chromium build broken due to link failure
        https://bugs.webkit.org/show_bug.cgi?id=32753

        * WebCoreSupport/WebSystemInterface.m:
         - Chromium Mac builds use this file, but do not
           enable Pre-compiled Header (PCH) files so that
           Chromium build bots can take advantage of the faster
           distcc 3.  Eventually all mac builds will likely use
           distcc, but for now we'll add Platform.h here and document
           its usage so it's not removed by accident.

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

11 years ago2009-12-18 Laszlo Gombos <laszlo.1.gombos@nokia.com>
eric@webkit.org [Sat, 19 Dec 2009 00:29:53 +0000 (00:29 +0000)]
2009-12-18  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        Move some build decisions from Qt build system into source files
        https://bugs.webkit.org/show_bug.cgi?id=31956

        * JavaScriptCore.pri: Compile files unconditionally
        * jit/ExecutableAllocatorPosix.cpp: Guard with PLATFORM(UNIX) && !PLATFORM(SYMBIAN)
        * jit/ExecutableAllocatorWin.cpp: Guard with PLATFORM(WIN_OS)
        * runtime/MarkStackPosix.cpp: Guard with PLATFORM(UNIX) && !PLATFORM(SYMBIAN)
        * runtime/MarkStackSymbian.cpp: Guard with PLATFORM(SYMBIAN)
        * runtime/MarkStackWin.cpp: Guard with PLATFORM(WIN_OS)
        * wtf/Platform.h: Guard ENABLE_JSC_MULTIPLE_THREADS with ENABLE_SINGLE_THREADED for the Qt port
        * wtf/ThreadingNone.cpp: Guard with ENABLE(SINGLE_THREADED)
        * wtf/qt/ThreadingQt.cpp: Guard with !ENABLE(SINGLE_THREADED)

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

11 years ago2009-12-18 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Sat, 19 Dec 2009 00:22:34 +0000 (00:22 +0000)]
2009-12-18  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Darin Adler.

        Crash when accessing webkitTransition property after setting webkitTransitionProperty with invalid value.
        https://bugs.webkit.org/show_bug.cgi?id=31559

        Fix an array bounds error when accessing the CSS value for a shorthand property that takes
        a comma-separated list, after the list for one of the component properties has been set to a different length.

        Test: fast/css/shorthand-mismatched-list-crash.html

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

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

11 years agoREGRESSION(r52233): MSAA: Accessibility role of lists is wrong
jhoneycutt@apple.com [Sat, 19 Dec 2009 00:05:59 +0000 (00:05 +0000)]
REGRESSION(r52233): MSAA: Accessibility role of lists is wrong

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

Reviewed by Adam Roben.

WebCore:

Test: platform/win/accessibility/list-role.html

* accessibility/AccessibilityObject.h:
(WebCore::AccessibilityObject::roleValueForMSAA):
Return roleValue(), rather than m_role, as subclasses may override it.

* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::roleValueForMSAA):
Fallback to roleValue(), rather than m_role, as it may be overriden.

LayoutTests:

* platform/win/accessibility/list-role-expected.txt: Added.
* platform/win/accessibility/list-role.html: Added.
Verify that lists return the "list" role.

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

11 years agoMSAA: Accessibility role of list items is wrong
jhoneycutt@apple.com [Sat, 19 Dec 2009 00:05:38 +0000 (00:05 +0000)]
MSAA: Accessibility role of list items is wrong

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

Reviewed by Adam Roben.

WebCore:

Test: platform/win/accessibility/list-item-role.html

* accessibility/AccessibilityObject.h:
(WebCore::):
Add a ListItemRole to the enum.

* accessibility/AccessibilityRenderObject.cpp:
(WebCore::msaaRoleForRenderer):
Return the role for the RenderObject, or UnknownRole if unknown.
(WebCore::AccessibilityRenderObject::roleValueForMSAA):
Call msaaRoleForRenderer() to get the role. If it is UnknownRole, fall
back to m_role.

WebKit/win:

* AccessibleBase.cpp:
(MSAARole):
Make the WebCore list item role map to the MSAA list item role.

LayoutTests:

* platform/win/accessibility/list-item-role-expected.txt: Added.
* platform/win/accessibility/list-item-role.html: Added.
Verify that the list item role is "list item".

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

11 years agoMSAA: Accessibility role of list markers is wrong
jhoneycutt@apple.com [Sat, 19 Dec 2009 00:05:14 +0000 (00:05 +0000)]
MSAA: Accessibility role of list markers is wrong

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

Reviewed by Adam Roben.

WebKit/win:

* AccessibleBase.cpp:
(MSAARole):
Make the WebCore list marker role map to the MSAA static text role.

LayoutTests:

* platform/win/accessibility/list-marker-role-expected.txt: Added.
* platform/win/accessibility/list-marker-role.html: Added.
Verify that the list marker role is "text".

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

11 years ago2009-12-18 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Sat, 19 Dec 2009 00:00:43 +0000 (00:00 +0000)]
2009-12-18  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Mark Rowe.

        Remove WebCore.ClientBasedGeolocation.exp from Sources, and remove two IDL files from Resources.

        * WebCore.xcodeproj/project.pbxproj:

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

11 years agoBuild fix part II, this time it's personal.x
bweinstein@apple.com [Fri, 18 Dec 2009 23:57:54 +0000 (23:57 +0000)]
Build fix part II, this time it's personal.x

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

11 years agoFirst step at a Windows build fix, get it to link JavaScriptCore. Might fail later.
bweinstein@apple.com [Fri, 18 Dec 2009 23:46:15 +0000 (23:46 +0000)]
First step at a Windows build fix, get it to link JavaScriptCore. Might fail later.

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

11 years agoAdd createNonCopying method to UString to make replace constructor passed bool,
barraclough@apple.com [Fri, 18 Dec 2009 22:59:18 +0000 (22:59 +0000)]
Add createNonCopying method to UString to make replace constructor passed bool,
to make behaviour more explicit.  Add createFromUTF8 to UString (wrapping method
on UString::Rep), since other cases of transliteration (e.g.  from ascii) are
performed in UString constructors.  Add/use setHash & size() accessors on Rep,
rather than accessing _hash/len directly.

Reviewed by Sam Weinig.

* API/JSClassRef.cpp:
(OpaqueJSClass::OpaqueJSClass):
* API/OpaqueJSString.cpp:
(OpaqueJSString::ustring):
* JavaScriptCore.exp:
* runtime/ArrayPrototype.cpp:
(JSC::arrayProtoFuncToString):
* runtime/Identifier.cpp:
(JSC::Identifier::equal):
(JSC::CStringTranslator::translate):
(JSC::UCharBufferTranslator::translate):
(JSC::Identifier::addSlowCase):
* runtime/JSString.cpp:
(JSC::JSString::resolveRope):
* runtime/JSString.h:
(JSC::JSString::Rope::Fiber::refAndGetLength):
(JSC::JSString::Rope::append):
* runtime/StringBuilder.h:
(JSC::StringBuilder::release):
* runtime/StringConstructor.cpp:
(JSC::stringFromCharCodeSlowCase):
* runtime/StringPrototype.cpp:
(JSC::substituteBackreferencesSlow):
(JSC::stringProtoFuncToLowerCase):
(JSC::stringProtoFuncToUpperCase):
(JSC::stringProtoFuncFontsize):
(JSC::stringProtoFuncLink):
* runtime/UString.cpp:
(JSC::UString::UString):
(JSC::UString::createNonCopying):
(JSC::UString::createFromUTF8):
* runtime/UString.h:
(JSC::UString::Rep::setHash):
(JSC::UString::~UString):
(JSC::makeString):

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

11 years agoFix mac Geolocation build.
weinig@apple.com [Fri, 18 Dec 2009 22:51:42 +0000 (22:51 +0000)]
Fix mac Geolocation build.

* DerivedSources.make:
* WebCore.ClientBasedGeolocation.exp: Added.
* WebCore.xcodeproj/project.pbxproj:
* page/Geolocation.h:
* page/GeolocationError.h:
(WebCore::GeolocationError::GeolocationError):
* page/GeolocationPosition.h:

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

11 years agoFix preference key name.
weinig@apple.com [Fri, 18 Dec 2009 22:44:16 +0000 (22:44 +0000)]
Fix preference key name.

Reviewed by Anders Carlsson.

* WebView/WebPreferenceKeysPrivate.h:

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

11 years agoChanged Register constructors to assignment operators, to streamline
ggaren@apple.com [Fri, 18 Dec 2009 22:18:11 +0000 (22:18 +0000)]
Changed Register constructors to assignment operators, to streamline
moving values into registers. (In theory, there's no difference between
the two, since the constructor should just inline away, but there seems
to be a big difference in the addled mind of the GCC optimizer.)

Reviewed by Cameron Zwarich and Gavin Barraclough.

In the interpreter, this is a 3.5% SunSpider speedup and a 1K-2K
reduction in stack usage per privateExecute stack frame.

* interpreter/CallFrame.h:
(JSC::ExecState::setCalleeArguments):
(JSC::ExecState::setCallerFrame):
(JSC::ExecState::setScopeChain):
(JSC::ExecState::init):
(JSC::ExecState::setArgumentCount):
(JSC::ExecState::setCallee):
(JSC::ExecState::setCodeBlock): Added a little bit of casting so these
functions could use the new Register assignment operators.

* interpreter/Register.h:
(JSC::Register::withInt):
(JSC::Register::Register):
(JSC::Register::operator=): Swapped in assignment operators for constructors.

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

11 years agoPass preference to plug-in host.
andersca@apple.com [Fri, 18 Dec 2009 22:05:34 +0000 (22:05 +0000)]
Pass preference to plug-in host.

Reviewed by Sam Weinig.

* Plugins/Hosted/NetscapePluginHostManager.mm:
(WebKit::NetscapePluginHostManager::spawnPluginHost):

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

11 years agoFixes <http://webkit.org/b/32613>.
bweinstein@apple.com [Fri, 18 Dec 2009 21:57:19 +0000 (21:57 +0000)]
Fixes <http://webkit.org/b/32613>.
REGRESSION (r52008): Middle-clicking on a linked image starts a pan scroll,
but should follow the link instead.

Reviewed by Adam Roben.

WebCore:

The node itself isn't the only possible node that can be a link (that was the
original check), any of its ancestors could be links as well, we need to climb
up the tree to see. Created a new function (enclosingAnchorNode), that finds a
node's enclosing anchor element (if it exists), that we can share between RenderLayer
and Node, and also added tests that test pan scrolling behavior in image maps.

Tests: platform/win/fast/events/panScroll-image-no-scroll.html
       platform/win/fast/events/panScroll-imageMap-href-no-scroll.html
       platform/win/fast/events/panScroll-imageMap-noHref-scroll.html

* dom/Node.cpp:
(WebCore::Node::enclosingAnchorNode):
(WebCore::Node::defaultEventHandler):
* dom/Node.h:
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::hitTest):

LayoutTests:

Added tests that test pan scrolling behavior when you middle click on images with
links, and if you click on parts on image maps that are links, and that aren't.

* platform/win/fast/events/panScroll-image-no-scroll-expected.txt: Added.
* platform/win/fast/events/panScroll-image-no-scroll.html: Added.
* platform/win/fast/events/panScroll-imageMap-href-no-scroll-expected.txt: Added.
* platform/win/fast/events/panScroll-imageMap-href-no-scroll.html: Added.
* platform/win/fast/events/panScroll-imageMap-noHref-scroll-expected.txt: Added.
* platform/win/fast/events/panScroll-imageMap-noHref-scroll.html: Added.

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

11 years ago2009-12-18 Ariya Hidayat <ariya.hidayat@gmail.com>
ariya@webkit.org [Fri, 18 Dec 2009 21:55:40 +0000 (21:55 +0000)]
2009-12-18  Ariya Hidayat  <ariya.hidayat@gmail.com>

        Build fix, not reviewed.

        * QtLauncher/main.cpp:
        (MainWindow::setTouchMocking): Leave setTouchMocking as an empty
        function for Qt < 4.6 so that moc still creates a slot for that.
        Otherwise, it would have generated a linker error.

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

11 years ago2009-12-18 Eric Seidel <eric@webkit.org>
eric@webkit.org [Fri, 18 Dec 2009 21:45:53 +0000 (21:45 +0000)]
2009-12-18  Eric Seidel  <eric@webkit.org>

        Reviewed by David Levin.

        move bugzilla.py off of urllib2
        https://bugs.webkit.org/show_bug.cgi?id=32729

        * Scripts/modules/bugzilla.py: use mechanize for all url fetching.

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

11 years agoAdd WKPCRunSyncOpenPanel implementation.
andersca@apple.com [Fri, 18 Dec 2009 21:43:36 +0000 (21:43 +0000)]
Add WKPCRunSyncOpenPanel implementation.

Reviewed by Sam Weinig.

* Plugins/Hosted/NetscapePluginHostProxy.mm:
(WKPCRunSyncOpenPanel):
* Plugins/Hosted/WebKitPluginClient.defs:
* Plugins/Hosted/WebKitPluginHost.defs:

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

11 years ago2009-12-18 Yongjun Zhang <yongjun.zhang@nokia.com>
eric@webkit.org [Fri, 18 Dec 2009 21:18:13 +0000 (21:18 +0000)]
2009-12-18  Yongjun Zhang  <yongjun.zhang@nokia.com>

        Reviewed by Simon Hausmann.

        https://bugs.webkit.org/show_bug.cgi?id=32713
        [Qt] make wtf/Assertions.h compile in winscw compiler.

        Add string arg before ellipsis to help winscw compiler resolve variadic
        macro definitions in wtf/Assertions.h.

        * wtf/Assertions.h:

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

11 years agoAdd a useProxiedOpenPanel WebPreference and tunnel it through to the plug-in host.
andersca@apple.com [Fri, 18 Dec 2009 21:17:38 +0000 (21:17 +0000)]
Add a useProxiedOpenPanel WebPreference and tunnel it through to the plug-in host.

Reviewed by Sam Weinig.

* Plugins/Hosted/NetscapePluginHostManager.h:
* Plugins/Hosted/NetscapePluginHostManager.mm:
(WebKit::NetscapePluginHostManager::hostForPackage):
(WebKit::NetscapePluginHostManager::spawnPluginHost):
(WebKit::NetscapePluginHostManager::instantiatePlugin):
* WebView/WebPreferenceKeysPrivate.h:
* WebView/WebPreferences.mm:
(+[WebPreferences initialize]):
(-[WebPreferences usesProxiedOpenPanel]):
(-[WebPreferences setUsesProxiedOpenPanel:]):
* WebView/WebPreferencesPrivate.h:

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

11 years ago[GTK] RemoveDashboard support. It's useless.
otte@webkit.org [Fri, 18 Dec 2009 20:50:32 +0000 (20:50 +0000)]
[GTK] RemoveDashboard support. It's useless.

* configure.ac:

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

11 years agoFixed intermittent failure seen on Windows buildbot, and in other JSC
ggaren@apple.com [Fri, 18 Dec 2009 20:46:08 +0000 (20:46 +0000)]
Fixed intermittent failure seen on Windows buildbot, and in other JSC
API clients.

Reviewed by Adam Roben.

Added a WeakGCPtr class and changed OpaqueJSClass::cachedPrototype to
use it, to avoid vending a stale object as a prototype.

* API/JSClassRef.cpp:
(OpaqueJSClassContextData::OpaqueJSClassContextData):
(OpaqueJSClass::prototype):
* API/JSClassRef.h: Use WeakGCPtr.

* JavaScriptCore.xcodeproj/project.pbxproj:
* runtime/WeakGCPtr.h: Added.
(JSC::WeakGCPtr::WeakGCPtr):
(JSC::WeakGCPtr::get):
(JSC::WeakGCPtr::clear):
(JSC::WeakGCPtr::operator*):
(JSC::WeakGCPtr::operator->):
(JSC::WeakGCPtr::operator!):
(JSC::WeakGCPtr::operator bool):
(JSC::WeakGCPtr::operator UnspecifiedBoolType):
(JSC::WeakGCPtr::assign):
(JSC::::operator):
(JSC::operator==):
(JSC::operator!=):
(JSC::static_pointer_cast):
(JSC::const_pointer_cast):
(JSC::getPtr): Added WeakGCPtr to the project.

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

11 years agoAdd a needed export to fix the Windows build.
bweinstein@apple.com [Fri, 18 Dec 2009 20:45:54 +0000 (20:45 +0000)]
Add a needed export to fix the Windows build.

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

11 years ago2009-12-18 Christian Dywan <christian@twotoasts.de>
christian@webkit.org [Fri, 18 Dec 2009 20:42:42 +0000 (20:42 +0000)]
2009-12-18  Christian Dywan  <christian@twotoasts.de>

        Reviewed by Xan Lopez.

        [GTK] context menu overriding API is very limited
        https://bugs.webkit.org/show_bug.cgi?id=27546

        Omit SearchWeb from the context menu in the GTK+ port.

        * platform/ContextMenu.cpp:
        (WebCore::ContextMenu::populate):

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

11 years agoAdd export the new symbol in WebCoreSystemInterface.
weinig@apple.com [Fri, 18 Dec 2009 20:41:23 +0000 (20:41 +0000)]
Add export the new symbol in WebCoreSystemInterface.

Reviewed by Anders Carlsson.

* WebCore.base.exp:
* platform/mac/WebCoreSystemInterface.h:
* platform/mac/WebCoreSystemInterface.mm:

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

11 years agoForward declare NSMutableArray when not compiling for Objective-C.
weinig@apple.com [Fri, 18 Dec 2009 20:26:31 +0000 (20:26 +0000)]
Forward declare NSMutableArray when not compiling for Objective-C.

Reviewed by Anders Carlsson.

* platform/mac/WebCoreSystemInterface.h:

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

11 years agoJavaScriptCore: https://bugs.webkit.org/show_bug.cgi?id=32720
barraclough@apple.com [Fri, 18 Dec 2009 20:02:34 +0000 (20:02 +0000)]
JavaScriptCore: https://bugs.webkit.org/show_bug.cgi?id=32720

Reviewed by Sam Weinig.

* JavaScriptCore.exp:
    - Remove exports for UString::append
* JavaScriptCore.xcodeproj/project.pbxproj:
    - Make StringBuilder a private header (was project).

WebCore: https://bugs.webkit.org/show_bug.cgi?id=32720
Replace UString addition/append with use of JSC::StringBuilder.

Reviewed by Sam Weinig.

* ForwardingHeaders/runtime/StringBuilder.h: Added.
* bindings/js/ScriptString.h:
(WebCore::ScriptString::operator+=):
* bridge/jni/jni_runtime.cpp:
(appendClassName):
(JavaMethod::signature):
* inspector/InspectorController.cpp:
(WebCore::InspectorController::addProfileFinishedMessageToConsole):
(WebCore::InspectorController::addStartProfilingMessageToConsole):
(WebCore::InspectorController::getCurrentUserInitiatedProfileName):

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

11 years ago2009-12-18 Martin Robinson <martin.james.robinson@gmail.com>
eric@webkit.org [Fri, 18 Dec 2009 19:55:27 +0000 (19:55 +0000)]
2009-12-18  Martin Robinson  <martin.james.robinson@gmail.com>

        Reviewed by Gustavo Noronha Silva.

        [GTK] GRefPtr does not take a reference when assigned a raw pointer
        https://bugs.webkit.org/show_bug.cgi?id=32709

        Ensure that when assigning a raw pointer to a GRefPtr, the reference
        count is incremented. Also remove the GRefPtr conversion overload as
        GRefPtr types have necessarily incompatible reference counting.

        * wtf/gtk/GRefPtr.h:
        (WTF::GRefPtr::operator=):

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

11 years ago2009-12-18 Kenneth Russell <kbr@google.com>
eric@webkit.org [Fri, 18 Dec 2009 19:43:18 +0000 (19:43 +0000)]
2009-12-18  Kenneth Russell  <kbr@google.com>

        Reviewed by Darin Fisher.

        Index validation for drawElements examines too many indices
        https://bugs.webkit.org/show_bug.cgi?id=32692

        * fast/canvas/webgl/bug-32692-expected.txt: Added.
        * fast/canvas/webgl/bug-32692.html: Added.
2009-12-18  Kenneth Russell  <kbr@google.com>

        Reviewed by Darin Fisher.

        Index validation for drawElements examines too many indices
        https://bugs.webkit.org/show_bug.cgi?id=32692

        Test: fast/canvas/webgl/bug-32692.html

        * html/canvas/WebGLRenderingContext.cpp:
        (WebCore::WebGLRenderingContext::validateIndexArrayPrecise):

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

11 years ago2009-12-18 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
kov@webkit.org [Fri, 18 Dec 2009 19:36:06 +0000 (19:36 +0000)]
2009-12-18  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Rubber-stamped by Xan Lopez.

        Disable page cache for tests.

        * DumpRenderTree/gtk/DumpRenderTree.cpp:
        (resetDefaultsToConsistentValues):
        * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
        (copyWebSettingKey):
        (LayoutTestController::overridePreference):

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

11 years agoWebCore: Update WebKitSystemInterface for <rdar://problem/7237059>.
weinig@apple.com [Fri, 18 Dec 2009 19:22:44 +0000 (19:22 +0000)]
WebCore: Update WebKitSystemInterface for <rdar://problem/7237059>.

Reviewed by Anders Carlsson.

* platform/mac/WebCoreSystemInterface.h:
* platform/mac/WebCoreSystemInterface.mm:

WebKit/mac: Update WebKitSystemInterface for <rdar://problem/7237059>.

Reviewed by Anders Carlsson.

* WebCoreSupport/WebSystemInterface.m:
(InitWebCoreSystemInterface):

WebKitLibraries: Update WebKitSystemInterface for <rdar://problem/7237059>.

Reviewed by Anders Carlsson.

* WebKitSystemInterface.h:
* libWebKitSystemInterfaceLeopard.a:
* libWebKitSystemInterfaceSnowLeopard.a:
* libWebKitSystemInterfaceTiger.a:

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

11 years agoRubber-stamped by Adam Roben.
bweinstein@apple.com [Fri, 18 Dec 2009 19:16:19 +0000 (19:16 +0000)]
Rubber-stamped by Adam Roben.

Add expected failing results for fast/dom/Element/id-in-deleteutton.html.
The progress of fixing the failure is being tracked by:
<https://bugs.webkit.org/show_bug.cgi?id=32727>.

* platform/win/fast/dom/Element: Added.
* platform/win/fast/dom/Element/id-in-deletebutton-expected.txt: Added.

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

11 years ago2009-12-18 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Fri, 18 Dec 2009 18:48:35 +0000 (18:48 +0000)]
2009-12-18  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Gustavo Noronha.

        Fix gtk-doc of webkit_web_resource_new.

        * webkit/webkitwebresource.cpp:

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

11 years agoGTK build fix
aroben@apple.com [Fri, 18 Dec 2009 18:35:27 +0000 (18:35 +0000)]
GTK build fix

* plugins/gtk/PluginViewGtk.cpp: Added #include.

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

11 years agoBuild fixes
aroben@apple.com [Fri, 18 Dec 2009 18:00:52 +0000 (18:00 +0000)]
Build fixes

WebCore: Chromium build fix

* platform/chromium/PopupMenuChromium.cpp: Added #include.

WebKit/chromium: Chromium build fix

* src/ChromiumBridge.cpp:
* src/WebPluginContainerImpl.cpp:
* src/WebViewImpl.cpp:
Added #includes.

WebKit/qt: Qt build fix

* Api/qwebpage.cpp: Added #include.

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

11 years agoChromium build fix
aroben@apple.com [Fri, 18 Dec 2009 17:54:24 +0000 (17:54 +0000)]
Chromium build fix

* html/HTMLLinkElement.cpp: Added #include.

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

11 years agoQt build fix
aroben@apple.com [Fri, 18 Dec 2009 17:52:35 +0000 (17:52 +0000)]
Qt build fix

WebCore:

* platform/qt/RenderThemeQt.cpp:
* plugins/qt/PluginDataQt.cpp:
* plugins/qt/PluginViewQt.cpp:
Added #includes.

WebKit/qt:

* Api/qwebpage.cpp:
Added #includes.

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

11 years ago2009-12-18 Fumitoshi Ukai <ukai@chromium.org>
ukai@chromium.org [Fri, 18 Dec 2009 17:47:21 +0000 (17:47 +0000)]
2009-12-18  Fumitoshi Ukai  <ukai@chromium.org>

        Reviewed by David Levin.

        Check one space before end of line comments.
        https://bugs.webkit.org/show_bug.cgi?id=32597

        Fix to check one space before end of line comments in whitespace and build/header_guard.
        Also fix build/header_guard to use WebKit header guard defines.

        * Scripts/modules/cpp_style.py:
        * Scripts/modules/cpp_style_unittest.py:

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

11 years agoV8 build fix
aroben@apple.com [Fri, 18 Dec 2009 17:47:09 +0000 (17:47 +0000)]
V8 build fix

* bindings/v8/custom/V8DOMWindowCustom.cpp: Added #include.

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

11 years agoGTK build fix
aroben@apple.com [Fri, 18 Dec 2009 17:45:38 +0000 (17:45 +0000)]
GTK build fix

* webkit/webkitprivate.cpp: Added #include.

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

11 years agoGTK (and others?) build fix
aroben@apple.com [Fri, 18 Dec 2009 17:42:33 +0000 (17:42 +0000)]
GTK (and others?) build fix

* platform/text/StringImpl.h: Added #include.

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

11 years agoReduce #includes in a few high-use headers
aroben@apple.com [Fri, 18 Dec 2009 17:38:45 +0000 (17:38 +0000)]
Reduce #includes in a few high-use headers

Removed unnecessary #includes in these headers:
  - Frame.h
  - FrameWin.h
  - Node.h
  - Page.h
  - StringImpl.h

The rest of the patch is all adding #includes to source files that now
require them.

Fixes <http://webkit.org/b/32718>.

Rubber-stamped by Anders Carlsson.

WebCore:

* dom/Node.h:
* page/Frame.h:
* page/Page.h:
* page/win/FrameWin.h:
* platform/text/StringImpl.h:
Removed unnecessary #includes.

* accessibility/win/AXObjectCacheWin.cpp:
* bindings/js/JSDOMWindowBase.cpp:
* bindings/js/JSDOMWindowCustom.cpp:
* dom/Document.cpp:
* dom/InputElement.cpp:
* dom/Node.cpp:
* dom/SelectElement.cpp:
* editing/EditorCommand.cpp:
* html/HTMLFormControlElement.cpp:
* html/HTMLFormElement.cpp:
* html/HTMLMediaElement.cpp:
* html/HTMLParser.cpp:
* html/HTMLTextAreaElement.cpp:
* html/HTMLVideoElement.cpp:
* inspector/InspectorController.cpp:
* loader/FrameLoader.cpp:
* loader/HistoryController.cpp:
* loader/appcache/ApplicationCacheGroup.cpp:
* page/Console.cpp:
* page/EventHandler.cpp:
* page/Frame.cpp:
* page/FrameView.cpp:
* page/Navigator.cpp:
* page/PageGroup.cpp:
* page/Settings.cpp:
* page/mac/EventHandlerMac.mm:
* platform/KURL.h:
* platform/ScrollbarThemeComposite.cpp:
* platform/cf/BinaryPropertyList.cpp:
* platform/graphics/mac/GraphicsLayerCA.h:
* platform/graphics/win/WKCACFLayerRenderer.cpp:
* platform/mac/PopupMenuMac.mm:
* platform/mac/WidgetMac.mm:
* platform/network/cf/DNSCFNet.cpp:
* platform/text/StringImpl.cpp:
* platform/win/FileSystemWin.cpp:
* platform/win/PlatformScreenWin.cpp:
* platform/win/PopupMenuWin.cpp:
* platform/win/WidgetWin.cpp:
* plugins/PluginView.cpp:
* plugins/win/PluginViewWin.cpp:
* rendering/InlineTextBox.cpp:
* rendering/RenderBox.cpp:
* rendering/RenderFileUploadControl.cpp:
* rendering/RenderInline.cpp:
* rendering/RenderLayerCompositor.cpp:
* rendering/RenderObject.cpp:
* rendering/RootInlineBox.cpp:
* storage/DatabaseTracker.cpp:
* storage/DatabaseTracker.h:
* storage/SQLTransactionClient.cpp:
* svg/graphics/SVGImage.cpp:
Added now-needed #includes.

WebKit/mac:

Add #includes needed after WebCore clean-up

* WebView/WebFrame.mm:
* WebView/WebFrameView.mm:
* WebView/WebView.mm:

WebKit/win:

Add #includes needed after WebCore clean-up

* WebCoreSupport/WebContextMenuClient.cpp:
* WebDataSource.cpp:
* WebHTMLRepresentation.cpp:
* WebView.cpp:
* WebView.h:

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

11 years ago[Qt] Clean up the qmake build system to distinguish between trunk builds and package...
hausmann@webkit.org [Fri, 18 Dec 2009 17:06:24 +0000 (17:06 +0000)]
[Qt] Clean up the qmake build system to distinguish between trunk builds and package builds

Reviewed by Tor Arne Vestbø.

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

.:

* WebKit.pri: Use standalone_package instead of QTDIR_build

JavaScriptCore:

* pcre/pcre.pri: Use standalone_package instead of QTDIR_build

WebCore:

Introduce standalone_package as config that is set when QTDIR_build is set or when
the directory for the generated files is present.

Renamed uses of QTDIR_build that apply to generic package builds to use standalone_package.
Others remain as they are specific to building inside Qt.

* WebCore.pro:

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

11 years ago2009-12-18 Shu Chang <Chang.Shu@nokia.com>
eric@webkit.org [Fri, 18 Dec 2009 16:40:57 +0000 (16:40 +0000)]
2009-12-18  Shu Chang  <Chang.Shu@nokia.com>

        Reviewed by Darin Adler.

        New test cases for isId support.
        https://bugs.webkit.org/show_bug.cgi?id=5578

        * dom/xhtml/level3/core/attrisid04-expected.txt:
        * dom/xhtml/level3/core/attrisid04.js:
        (setUpPage):
        * dom/xhtml/level3/core/attrisid05-expected.txt:
        * dom/xhtml/level3/core/attrisid05.js:
        (setUpPage):
        * fast/dom/Element/attrisid-extra01-expected.txt: Added.
        * fast/dom/Element/attrisid-extra01.html: Added.
        * fast/dom/Element/id-in-applet-expected.txt: Added.
        * fast/dom/Element/id-in-applet.html: Added.
        * fast/dom/Element/id-in-deletebutton-expected.txt: Added.
        * fast/dom/Element/id-in-deletebutton.html: Added.
        * fast/dom/Element/id-in-formcollection-expected.txt: Added.
        * fast/dom/Element/id-in-formcollection.html: Added.
        * fast/dom/Element/id-in-frame-expected.txt: Added.
        * fast/dom/Element/id-in-frame.html: Added.
        * fast/dom/Element/id-in-frameset-expected.txt: Added.
        * fast/dom/Element/id-in-frameset.html: Added.
        * fast/dom/Element/id-in-getelement01-expected.txt: Added.
        * fast/dom/Element/id-in-getelement01.html: Added.
        * fast/dom/Element/id-in-insert-hr-expected.txt: Added.
        * fast/dom/Element/id-in-insert-hr.html: Added.
        * fast/dom/Element/id-in-map-expected.txt: Added.
        * fast/dom/Element/id-in-map.html: Added.
        * fast/dom/Element/id-in-param-expected.txt: Added.
        * fast/dom/Element/id-in-param.html: Added.
2009-12-18  Shu Chang  <Chang.Shu@nokia.com>

        Reviewed by Darin Adler.

        Implemented isId as specified by DOM Level 3. See detailed description below.
        https://bugs.webkit.org/show_bug.cgi?id=5578

        Added isId property and implementation:
        Tests: dom/xhtml/level3/core/attrisid01-07.xhtml
               fast/dom/Element/attrisid-extra01.html
        * dom/Attr.cpp:
        (WebCore::Attr::isId):
        * dom/Attr.h:
        * dom/Attr.idl:

        Replaced instances of HTMLNames::idAttr with Element::idAttributeName()
        for the reason that id attribute name could be customized to a different
        string other than "id". A test case is associated to each code change.
        * dom/Document.cpp:
        (WebCore::Document::getElementById): Test: fast/dom/Element/id-in-getelement01.html
        * dom/Element.cpp: Tests: dom/xhtml/level3/core/attrisid01-07.xhtml
        (WebCore::Element::setAttribute):
        (WebCore::Element::setAttributeMap):
        (WebCore::Element::insertedIntoDocument):
        (WebCore::Element::removedFromDocument):
        (WebCore::Element::formatForDebugger):
        (WebCore::Element::rareIDAttributeName):
        * dom/Element.h: Added function idAttributeName().
        (WebCore::Element::idAttributeName):
        * dom/ElementRareData.h: Added member variable to store customized id name in ElementRareData.
        (WebCore::ElementRareData::ElementRareData):
        * dom/NamedAttrMap.cpp: Tests: dom/xhtml/level3/core/attrisid01-07.xhtml
        (WebCore::NamedNodeMap::setNamedItem):
        (WebCore::NamedNodeMap::removeNamedItem):
        (WebCore::NamedNodeMap::setAttributes):
        * dom/Node.cpp: Removed ASSERT as it may not hold any more.
        (WebCore::Node::querySelector):
        * dom/SelectorNodeList.cpp: Removed ASSERT as it may not hold any more.
        (WebCore::createSelectorNodeList):
        * dom/StyledElement.cpp: Tests: dom/xhtml/level3/core/attrisid01-07.xhtml
        (WebCore::StyledElement::parseMappedAttribute):
        * editing/DeleteButtonController.cpp: Test: fast/dom/Element/id-in-deletebutton.html
        (WebCore::DeleteButtonController::createDeletionUI):
        * editing/EditorCommand.cpp: Test: fast/dom/Element/id-in-insert-hr.html
        (WebCore::executeInsertHorizontalRule):
        * html/HTMLAppletElement.cpp: Test: fast/dom/Element/id-in-applet.html
        (WebCore::HTMLAppletElement::parseMappedAttribute):
        (WebCore::HTMLAppletElement::createRenderer):
        * html/HTMLCollection.cpp:
        (WebCore::HTMLCollection::checkForNameMatch): Test: fast/forms/select-namedItem.html
        (WebCore::HTMLCollection::updateNameCache): Test: fast/dom/collection-namedItem-via-item.html
        * html/HTMLDataGridColElement.cpp:
        (WebCore::HTMLDataGridColElement::ensureColumn): Test: fast/dom/HTMLDataGridElement/DataGridColumns-dom.html
        (WebCore::HTMLDataGridColElement::parseMappedAttribute): Test: fast/dom/HTMLDataGridElement/DataGridColumns-dom-attributes.html
        * html/HTMLElement.cpp:
        (WebCore::HTMLElement::parseMappedAttribute):
        * html/HTMLFormCollection.cpp: Test: fast/dom/Element/id-in-formcollection.html
        (WebCore::HTMLFormCollection::getNamedFormItem):
        (WebCore::HTMLFormCollection::nextNamedItem):
        (WebCore::HTMLFormCollection::updateNameCache):
        * html/HTMLFrameElementBase.cpp: Test: fast/dom/Element/id-in-frame.html
        (WebCore::HTMLFrameElementBase::parseMappedAttribute):
        (WebCore::HTMLFrameElementBase::setNameAndOpenURL):
        * html/HTMLImageElement.cpp: Test: fast/dom/Element/id-in-deletebutton.html
        (WebCore::HTMLImageElement::parseMappedAttribute):
        * html/HTMLMapElement.cpp: Test: fast/dom/Element/id-in-map.html
        (WebCore::HTMLMapElement::parseMappedAttribute):
        * html/HTMLNameCollection.cpp: Test: fast/dom/Element/id-in-frameset.html
        (WebCore::HTMLNameCollection::itemAfter):
        * html/HTMLObjectElement.cpp: Test: fast/dom/HTMLDocument/object-by-name-or-id.html
        (WebCore::HTMLObjectElement::parseMappedAttribute):
        * html/HTMLParamElement.cpp: Test: fast/dom/Element/id-in-param.html
        (WebCore::HTMLParamElement::parseMappedAttribute):
        * loader/CachedFont.cpp: Test: svg/custom/acid3-test-77.html
        (WebCore::CachedFont::getSVGFontById):
        * rendering/RenderLayerBacking.cpp:
        (WebCore::RenderLayerBacking::createGraphicsLayer): Debug-only code
        * rendering/SVGRenderTreeAsText.cpp: Test: svg/text/text-gradient-positioning.svg
        (WebCore::writeRenderResources):
        * svg/SVGElement.cpp: Test: svg/custom/acid3-test-77.html
        (WebCore::SVGElement::insertedIntoDocument):
        * svg/SVGStyledElement.cpp: Test: svg/custom/js-update-image-and-display.svg
        (WebCore::SVGStyledElement::isKnownAttribute):
        * wml/WMLElement.cpp:
        (WebCore::WMLElement::parseMappedAttribute):

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

11 years ago2009-12-18 Joe Ligman <joseph.ligman@nokia.com>
eric@webkit.org [Fri, 18 Dec 2009 15:04:00 +0000 (15:04 +0000)]
2009-12-18  Joe Ligman  <joseph.ligman@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Add new API to QWebFrame to scrollRecursively starting with any css overflow
        then checking current frame and then ancestors
        https://bugs.webkit.org/show_bug.cgi?id=32668

        * Api/qwebframe.cpp:
        (QWebFramePrivate::scrollOverflow):
        (QWebFrame::scrollRecursively):
        * Api/qwebframe.h:
        * Api/qwebframe_p.h:
        * tests/qwebframe/qwebframe.qrc:
        * tests/qwebframe/testiframe.html: Added.
        * tests/qwebframe/testiframe2.html: Added.
        * tests/qwebframe/tst_qwebframe.cpp:

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

11 years ago[Qt] Fix the build on Symbian.
hausmann@webkit.org [Fri, 18 Dec 2009 14:03:51 +0000 (14:03 +0000)]
[Qt] Fix the build on Symbian.

Reviewed by Tor Arne Vestbø.

Use QFont::lastRestortFamily() instead of QFont::lastRestortFont(),
which is a missing symbol in Qt 4.6.0 on Symbian.

Functionally they should be equivalent, according to the source.

* platform/graphics/qt/FontCacheQt.cpp:
(WebCore::FontCache::getLastResortFallbackFont):

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

11 years ago2009-12-18 Philippe Normand <pnormand@igalia.com>
philn@webkit.org [Fri, 18 Dec 2009 14:01:19 +0000 (14:01 +0000)]
2009-12-18  Philippe Normand  <pnormand@igalia.com>

        Reviewed by Xan Lopez.

        [GTK] segfault during controls initialization if not GTK theme is present.
        https://bugs.webkit.org/show_bug.cgi?id=32705

        Create empty images for the controls if no GTK theme is set.

        * platform/graphics/gtk/ImageGtk.cpp:
        (WebCore::getThemeIconFileName):
        (WebCore::loadImageFromFile):

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

11 years agoRevert r52305, since it breaks many http tests. We will try a better
kov@webkit.org [Fri, 18 Dec 2009 13:38:22 +0000 (13:38 +0000)]
Revert r52305, since it breaks many http tests. We will try a better
solution for Soup.

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

11 years ago[Qt] Fix infinite recursion in touch mocking.
hausmann@webkit.org [Fri, 18 Dec 2009 13:32:53 +0000 (13:32 +0000)]
[Qt] Fix infinite recursion in touch mocking.

Reviewed by Tor Arne Vestbø.

Don't send the fake touch events to the view, as that'll trigger the
event filter again.

* QtLauncher/main.cpp:
(MainWindow::sendTouchEvent):

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

11 years ago2009-12-18 Kalle Vahlman <kalle.vahlman@movial.com> and Alejandro G. Castro <alex...
eric@webkit.org [Fri, 18 Dec 2009 12:00:29 +0000 (12:00 +0000)]
2009-12-18  Kalle Vahlman  <kalle.vahlman@movial.com> and Alejandro G. Castro  <alex@igalia.com>

        Reviewed by Gustavo Noronha Silva.

        [GTK] Add enable-page-cache property to WebSettings for disabling the Page Cache

        * webkit/webkitwebsettings.cpp:
        (_WebKitWebSettingsPrivate::):
        (_WebKitWebSettingsPrivate::webkit_web_settings_class_init):
        (_WebKitWebSettingsPrivate::webkit_web_settings_set_property):
        (_WebKitWebSettingsPrivate::webkit_web_settings_get_property):
        (_WebKitWebSettingsPrivate::webkit_web_settings_copy):
        * webkit/webkitwebview.cpp:

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

11 years agoRemove the fragment identifier from url before passing it to libsoup.
otte@webkit.org [Fri, 18 Dec 2009 10:51:35 +0000 (10:51 +0000)]
Remove the fragment identifier from url before passing it to libsoup.

In newer releases libsoup emits a warning when it gets handed a
fragment.

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

11 years ago2009-12-18 Martin Robinson <martin.james.robinson@gmail.com>
eric@webkit.org [Fri, 18 Dec 2009 10:37:51 +0000 (10:37 +0000)]
2009-12-18  Martin Robinson  <martin.james.robinson@gmail.com>

        Reviewed by Gustavo Noronha Silva.

        [GTK] Compile warning from line 29 of GRefPtr.cpp
        https://bugs.webkit.org/show_bug.cgi?id=32703

        Fix memory leak and compiler warning in GRefPtr GHashTable template
        specialization.

        * wtf/gtk/GRefPtr.cpp:
        (WTF::refGPtr):

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

11 years ago2009-12-18 Alejandro G. Castro <alex@igalia.com>
eric@webkit.org [Fri, 18 Dec 2009 09:50:26 +0000 (09:50 +0000)]
2009-12-18  Alejandro G. Castro  <alex@igalia.com>

        Reviewed by Darin Adler.

        REGRESSION (r38898): Using the up arrow in a textarea gets "stuck"
        at the beginning.
        https://bugs.webkit.org/show_bug.cgi?id=31920

        Added test showing the problem described in the bug.

        * editing/selection/wrapped-line-caret-3.html:
        * editing/selection/wrapped-line-caret-3-expected.txt:
2009-12-18  Alejandro G. Castro  <alex@igalia.com>

        Reviewed by Darin Adler.

        REGRESSION (r38898): Using the up arrow in a textarea gets "stuck"
        at the beginning.
        https://bugs.webkit.org/show_bug.cgi?id=31920

        Moving up from a position after the end of the previous lines
        should use UPSTREAM affinity to render the caret in the previous
        line.

        Test: editing/selection/wrapped-line-caret-3.html

        * rendering/RenderText.cpp:
        (WebCore::RenderText::positionForPoint):

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

11 years ago2009-12-17 Eric Seidel <eric@webkit.org>
eric@webkit.org [Fri, 18 Dec 2009 07:17:12 +0000 (07:17 +0000)]
2009-12-17  Eric Seidel  <eric@webkit.org>

        Reviewed by Darin Adler.

        HTMLInputElement::stepMismatch() uses ambiguous overload of pow()
        https://bugs.webkit.org/show_bug.cgi?id=32675

        Use the double constant 2.0 instead of static_cast<double>(2).

        * html/HTMLInputElement.cpp:
        (WebCore::HTMLInputElement::stepMismatch):

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

11 years ago2009-12-17 Dirk Pranke <dpranke@chromium.org>
eric@webkit.org [Fri, 18 Dec 2009 06:39:50 +0000 (06:39 +0000)]
2009-12-17  Dirk Pranke  <dpranke@chromium.org>

        Reviewed by Adam Barth.

        Upstreaming an XSS test from chromium.org.
        https://bugs.webkit.org/show_bug.cgi?id=32685

        * http/tests/security/xss-DENIED-assign-location-href-javascript-expected.txt: Added.
        * http/tests/security/xss-DENIED-assign-location-href-javascript.html: Added.

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

11 years ago2009-12-17 Justin Schuh <jschuh@chromium.org>
eric@webkit.org [Fri, 18 Dec 2009 06:12:35 +0000 (06:12 +0000)]
2009-12-17  Justin Schuh  <jschuh@chromium.org>

        Reviewed by Dan Bernstein.

        Bug 32357: SVG test case crashes WebKit (invalid font URL)
        https://bugs.webkit.org/show_bug.cgi?id=32357

        Added check for NULL return value from DocLoader::requestFont()

        * svg/text/text-font-uri-invalid-expected.txt: Added.
        * svg/text/text-font-uri-invalid.svg: Added.
2009-12-17  Justin Schuh  <jschuh@chromium.org>

        Reviewed by Dan Bernstein.

        Bug 32357: SVG test case crashes WebKit (invalid font URL)
        https://bugs.webkit.org/show_bug.cgi?id=32357

        Added check for NULL return value from DocLoader::requestFont()

        * svg/SVGFontFaceUriElement.cpp:
        (WebCore::SVGFontFaceUriElement::loadFont):

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

11 years ago2009-12-17 Shinichiro Hamaji <hamaji@chromium.org>
hamaji@chromium.org [Fri, 18 Dec 2009 05:42:26 +0000 (05:42 +0000)]
2009-12-17  Shinichiro Hamaji  <hamaji@chromium.org>

        Reviewed by Dan Bernstein.

        marquee with display:inline causes crash
        https://bugs.webkit.org/show_bug.cgi?id=32374

        * fast/inline/inline-marquee-crash-expected.txt: Added.
        * fast/inline/inline-marquee-crash.html: Added.
2009-12-17  Shinichiro Hamaji  <hamaji@chromium.org>

        Reviewed by Dan Bernstein.

        marquee with display:inline causes crash
        https://bugs.webkit.org/show_bug.cgi?id=32374

        Test: fast/inline/inline-marquee-crash.html

        * html/HTMLMarqueeElement.cpp:
        (WebCore::HTMLMarqueeElement::start):
        (WebCore::HTMLMarqueeElement::stop):
        (WebCore::HTMLMarqueeElement::suspend):
        (WebCore::HTMLMarqueeElement::resume):
        (WebCore::HTMLMarqueeElement::renderMarquee):
        * html/HTMLMarqueeElement.h:
        * rendering/RenderLayer.cpp:
        (WebCore::RenderLayer::styleChanged):

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

11 years agoJavaScriptCore: Add BUILDING_ON_SNOW_LEOPARD and TARGETING_SNOW_LEOPARD #defines.
weinig@apple.com [Fri, 18 Dec 2009 04:14:02 +0000 (04:14 +0000)]
JavaScriptCore: Add BUILDING_ON_SNOW_LEOPARD and TARGETING_SNOW_LEOPARD #defines.

Reviewed by Mark Rowe.

* wtf/Platform.h:

WebKitTools: Add BUILDING_ON_SNOW_LEOPARD #define.

Reviewed by Mark Rowe.

* DumpRenderTree/mac/DumpRenderTreeMac.h:

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

11 years agoUnreviewed. Unskip websocket tests
ukai@chromium.org [Fri, 18 Dec 2009 04:12:50 +0000 (04:12 +0000)]
Unreviewed. Unskip websocket tests

New pywebsocket (0.4.5) landed at WebKit r52296, so
sub-protocol-with-space.html should pass.

* platform/mac/Skipped: delete websocket/tests/sub-protocol-with-space.html
* platform/win/Skipped: delete websocket/tests/sub-protocol-with-space.html

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

11 years ago2009-12-17 Yuzo Fujishima <yuzo@google.com>
ukai@chromium.org [Fri, 18 Dec 2009 02:38:01 +0000 (02:38 +0000)]
2009-12-17  Yuzo Fujishima  <yuzo@google.com>

        Reviewed by Alexey Proskuryakov.

        Update pywebsocket to 0.4.5 and make handshake checking stricter
        https://bugs.webkit.org/show_bug.cgi?id=32249

        * Scripts/run-webkit-tests:
        * pywebsocket/mod_pywebsocket/handshake.py:
        * pywebsocket/mod_pywebsocket/memorizingfile.py: Added.
        * pywebsocket/mod_pywebsocket/standalone.py:
        * pywebsocket/setup.py:
        * pywebsocket/test/test_handshake.py:
        * pywebsocket/test/test_memorizingfile.py: Added.

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

11 years ago2009-12-17 Eric Seidel <eric@webkit.org>
eric@webkit.org [Fri, 18 Dec 2009 01:28:27 +0000 (01:28 +0000)]
2009-12-17  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Command.show_in_main_help should default to False
        https://bugs.webkit.org/show_bug.cgi?id=32686

        * Scripts/modules/commands/download.py:
        * Scripts/modules/commands/queries.py:
        * Scripts/modules/commands/queues.py:
        * Scripts/modules/commands/upload.py:
        * Scripts/modules/multicommandtool.py:

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

11 years ago2009-12-17 Zoltan Horvath <zoltan@webkit.org>
eric@webkit.org [Fri, 18 Dec 2009 00:51:13 +0000 (00:51 +0000)]
2009-12-17  Zoltan Horvath  <zoltan@webkit.org>

        Reviewed by Darin Adler.

        Allow custom memory allocation control for inspector's classes
        https://bugs.webkit.org/show_bug.cgi?id=32660

        Inherits the following classes from Noncopyable because these are
        instantiated by 'new' and no need to be copyable:

        class name                  - instantiated at:  WebCore/'location'

        class JavaScriptDebugServer - inspector/JavaScriptDebugServer.cpp:72
        class ConsoleMessage        - inspector/InspectorController.cpp:329
        class InspectorController   - page/Page.cpp:119

        * inspector/ConsoleMessage.h:
        * inspector/InspectorController.h:
        * inspector/JavaScriptDebugServer.h:

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

11 years ago2009-12-17 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 17 Dec 2009 23:22:35 +0000 (23:22 +0000)]
2009-12-17  Eric Seidel  <eric@webkit.org>

        No review, rolling out r52291.
        http://trac.webkit.org/changeset/52291
        https://bugs.webkit.org/show_bug.cgi?id=32618

        Darin Fisher points out that this will likely break
        the SSL security indicator in Chromium.  Rolling out for now.

        * src/WebViewImpl.cpp:
        (WebKit::WebViewImpl::WebViewImpl):

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

11 years ago2009-12-17 Steve Block <steveblock@google.com>
eric@webkit.org [Thu, 17 Dec 2009 22:37:17 +0000 (22:37 +0000)]
2009-12-17  Steve Block  <steveblock@google.com>

        Reviewed by Eric Seidel.

        Fixes HTMLInputElement::stepMismatch() to avoid ambiguous overload of pow().
        https://bugs.webkit.org/show_bug.cgi?id=32675

        Build fix only, no new tests.

        * html/HTMLInputElement.cpp: Modified.
        (WebCore::HTMLInputElement::stepMismatch): Cast first argument of pow to double to force 'double pow(double, int)'

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

11 years ago2009-12-17 Alexander Pavlov <apavlov@chromium.org>
eric@webkit.org [Thu, 17 Dec 2009 22:14:38 +0000 (22:14 +0000)]
2009-12-17  Alexander Pavlov  <apavlov@chromium.org>

        Reviewed by Eric Seidel.

        Disable memory cache client calls so that a new identifier isn't created
        for the same resource on reload.

        With the calls enabled, duplicate entries for cached resources are created
        in the Web Inspector. Safari for Windows disables the calls near the point of the
        Frame instance creation, and we just follow this for Chromium.
        https://bugs.webkit.org/show_bug.cgi?id=32618

        * src/WebViewImpl.cpp:
        (WebKit::WebViewImpl::WebViewImpl):

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

11 years agoVersioning.
mrowe@apple.com [Thu, 17 Dec 2009 22:10:30 +0000 (22:10 +0000)]
Versioning.

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

11 years ago2009-12-17 Marc-Antoine Ruel <maruel@chromium.org>
eric@webkit.org [Thu, 17 Dec 2009 21:52:14 +0000 (21:52 +0000)]
2009-12-17  Marc-Antoine Ruel  <maruel@chromium.org>

        Reviewed by Eric Seidel.

        Fix link failure on LTCG builds on Windows for chromium port.

        Reenable SVGAllInOne.cpp. This required some fixups.

        Namely, there was conflicts in constants between HTMLNames and
        SVGNames, and conflicts between static functions names.

        No new tests as functionality has not changed.

        * WebCore.gyp/WebCore.gyp:
        * svg/SVGAllInOne.cpp:
        * svg/SVGFontFaceElement.cpp:
        (WebCore::SVGFontFaceElement::rebuildFontFace):
        * svg/SVGGlyphElement.cpp:
        (WebCore::SVGGlyphElement::invalidateGlyphCache):
        (WebCore::SVGGlyphElement::buildGlyphIdentifier):
        * svg/SVGHKernElement.cpp:
        (WebCore::SVGHKernElement::insertedIntoDocument):
        (WebCore::SVGHKernElement::removedFromDocument):
        * svg/SVGStyleElement.cpp:
        (WebCore::SVGStyleElement::type):
        (WebCore::SVGStyleElement::setType):
        (WebCore::SVGStyleElement::media):
        (WebCore::SVGStyleElement::setMedia):
        (WebCore::SVGStyleElement::title):
        (WebCore::SVGStyleElement::setTitle):
        (WebCore::SVGStyleElement::parseMappedAttribute):
        * svg/SVGStyledElement.cpp:
        (WebCore::mapAttributeToCSSProperty):
        (WebCore::SVGStyledElement::cssPropertyIdForSVGAttributeName):
        * svg/SVGStyledElement.h:

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

11 years agoChromium build fix VI
aroben@apple.com [Thu, 17 Dec 2009 21:38:53 +0000 (21:38 +0000)]
Chromium build fix VI

* svg/animation/SMILTimeContainer.h: Added now-needed #include.

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

11 years agoChromium build fix V
aroben@apple.com [Thu, 17 Dec 2009 21:37:32 +0000 (21:37 +0000)]
Chromium build fix V

* platform/KURLGoogle.cpp: Added now-needed #include.

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

11 years agoChromium build fix IV
aroben@apple.com [Thu, 17 Dec 2009 21:29:36 +0000 (21:29 +0000)]
Chromium build fix IV

* loader/CrossOriginPreflightResultCache.h: Added now-needed

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

11 years ago2009-12-17 Alejandro G. Castro <alex@igalia.com>
eric@webkit.org [Thu, 17 Dec 2009 21:26:02 +0000 (21:26 +0000)]
2009-12-17  Alejandro G. Castro  <alex@igalia.com>

        Reviewed by Eric Seidel.

        Added the key WebKitEnableCaretBrowsing to the
        layoutTestController.overridePreference in order to activate caret
        browsing.
        https://bugs.webkit.org/show_bug.cgi?id=32612

        * DumpRenderTree/gtk/DumpRenderTree.cpp: Added the reset value of
        the setting.
        * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp: Inserted the new
        key in the keytable.

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

11 years agoChromium build fix III
aroben@apple.com [Thu, 17 Dec 2009 21:19:24 +0000 (21:19 +0000)]
Chromium build fix III

* platform/graphics/Font.h: Added now-needed #include.

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

11 years agoChromium build fix II
aroben@apple.com [Thu, 17 Dec 2009 21:10:20 +0000 (21:10 +0000)]
Chromium build fix II

* dom/EventTarget.h: Added now-needed #include.

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

11 years ago2009-12-17 Zoltan Horvath <zoltan@webkit.org>
eric@webkit.org [Thu, 17 Dec 2009 21:09:37 +0000 (21:09 +0000)]
2009-12-17  Zoltan Horvath  <zoltan@webkit.org>

        Reviewed by Eric Seidel.

        Allow custom memory allocation control for js bindings
        https://bugs.webkit.org/show_bug.cgi?id=32655

        Inherits the following classes from Noncopyable because these are instantiated
        by 'new' and no need to be copyable:

        class name                  - instantiated at:  WebCore/'location'

        class ScriptCachedFrameData - history/CachedFrame.cpp:117
        class WebCoreJSClientData   - bindings/js/JSDOMWindowBase.cpp:162
        class ScheduledAction       - bindings/js/ScheduledAction.cpp:58

        * bindings/js/JSDOMBinding.h:
        * bindings/js/ScheduledAction.h:
        * bindings/js/ScriptCachedFrameData.h:

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

11 years agoChromium build fix
aroben@apple.com [Thu, 17 Dec 2009 20:56:58 +0000 (20:56 +0000)]
Chromium build fix

* dom/QualifiedName.h: Added now-needed #include of HashTraits.h
(which itself #includes HashFunctions.h).

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

11 years ago2009-12-17 Pavel Feldman <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
eric@webkit.org [Thu, 17 Dec 2009 20:53:12 +0000 (20:53 +0000)]
2009-12-17  Pavel Feldman  <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>

        Reviewed by Timothy Hatcher.

        Web Inspector: Incorrect Doctype.

        REGRESSION(4.0.4-TOT):Web Inspector: Incorrect Doctype
        https://bugs.webkit.org/show_bug.cgi?id=32671

        * inspector/elements-panel-structure-expected.txt:
        * inspector/elements-panel-structure.html:
2009-12-17  Pavel Feldman  <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>

        Reviewed by Timothy Hatcher.

        Web Inspector: Incorrect Doctype.

        REGRESSION(4.0.4-TOT):Web Inspector: Incorrect Doctype
        https://bugs.webkit.org/show_bug.cgi?id=32671

        * inspector/InspectorDOMAgent.cpp:
        (WebCore::InspectorDOMAgent::buildObjectForNode):
        * inspector/front-end/DOMAgent.js:
        (WebInspector.DOMNode):

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

11 years agoDon't include all JSC headers everywhere
aroben@apple.com [Thu, 17 Dec 2009 20:38:57 +0000 (20:38 +0000)]
Don't include all JSC headers everywhere

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

Patch by Benjamin Otte <otte@gnome.org> on 2009-12-17
Reviewed by Adam Roben.

Remove HashMap HashSet and OwnPtr includes from PlatformString.h.
Reduces code size of Gtk build by another 5%.

* platform/text/PlatformString.h:

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

11 years agoMac build fix
aroben@apple.com [Thu, 17 Dec 2009 20:32:45 +0000 (20:32 +0000)]
Mac build fix

* WebView/WebVideoFullscreenController.mm: Added now-needed #import.

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

11 years agoMac/Qt build fixes
aroben@apple.com [Thu, 17 Dec 2009 20:22:52 +0000 (20:22 +0000)]
Mac/Qt build fixes

* platform/graphics/mac/Canvas3DLayer.mm:
* platform/graphics/mac/GraphicsContext3DMac.cpp:
* platform/qt/Localizations.cpp:
Added missing #includes.

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

11 years agoDon't include all JSC headers everywhere
aroben@apple.com [Thu, 17 Dec 2009 20:00:50 +0000 (20:00 +0000)]
Don't include all JSC headers everywhere

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

Patch by Benjamin Otte <otte@gnome.org> on 2009-12-17
Reviewed by Adam Roben.

WebCore:

PlatformString.h included almost all of JSC via runtime/Identifier.h.
This patch gets rid of this include by forward-declaring the required
classes instead.
This reduces the build size of the object files on a Gtk debug build
by 10%. The resulting libwebkit.so gets 5% smaller.

No new tests as it's just a build improvement.

* platform/gtk/LocalizedStringsGtk.cpp:
include math.h here (it used to be pulled by JSC)
* platform/text/PlatformString.h:
* platform/text/String.cpp:

WebKit/win:

* WebCoreLocalizedStrings.cpp: Added now-needed #include of
MathExtras.h.

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

11 years ago2009-12-17 Evan Martin <evan@chromium.org>
eric@webkit.org [Thu, 17 Dec 2009 19:59:43 +0000 (19:59 +0000)]
2009-12-17  Evan Martin  <evan@chromium.org>

        Reviewed by Xan Lopez.

        Always use all WebCore include paths in GtkWebKit.

        With this patch, I can disable all optional features and still build.

        * GNUmakefile.am:

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

11 years agoUnreviewed layout test fix.
cfleizach@apple.com [Thu, 17 Dec 2009 19:58:13 +0000 (19:58 +0000)]
Unreviewed layout test fix.

WAI-ARIA: implement treegrid
https://bugs.webkit.org/show_bug.cgi?id=31299

The test for this patch shouldn't be run on Tiger.

* platform/mac-tiger/Skipped:

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

11 years agoAX: DRT needs to support URL for accessibility
cfleizach@apple.com [Thu, 17 Dec 2009 19:48:00 +0000 (19:48 +0000)]
AX: DRT needs to support URL for accessibility
https://bugs.webkit.org/show_bug.cgi?id=32666

Reviewed by David Kilzer.

* DumpRenderTree/AccessibilityUIElement.cpp:
(getURLCallback):
(AccessibilityUIElement::getJSClass):
* DumpRenderTree/AccessibilityUIElement.h:
* DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp:
(AccessibilityUIElement::url):
* DumpRenderTree/mac/AccessibilityUIElementMac.mm:
(AccessibilityUIElement::url):
* DumpRenderTree/win/AccessibilityUIElementWin.cpp:
(AccessibilityUIElement::url):

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

11 years ago Unreviewed; added myself to committers
philn@webkit.org [Thu, 17 Dec 2009 19:36:07 +0000 (19:36 +0000)]
    Unreviewed; added myself to committers

        * Scripts/modules/committers.py:

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

11 years ago2009-12-17 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
kov@webkit.org [Thu, 17 Dec 2009 19:23:19 +0000 (19:23 +0000)]
2009-12-17  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Reviewed by Xan Lopez.

        More make distcheck fixes. Use a more robust solution to making
        sure we are in the correct directory for running these tests.

        * tests/testmimehandling.c:
        (main):
        * tests/testwebview.c:
        (main):

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

11 years agoUnreviewed; added myself to committers
otte@webkit.org [Thu, 17 Dec 2009 19:21:18 +0000 (19:21 +0000)]
Unreviewed; added myself to committers

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

11 years ago2009-12-17 Yaar Schnitman <yaar@chromium.org>
yaar@google.com [Thu, 17 Dec 2009 19:18:40 +0000 (19:18 +0000)]
2009-12-17  Yaar Schnitman  <yaar@chromium.org>

        Reviewed by Darin Fisher.

        Added WebPageSerializer to WebKit API and enriched the WebNode hierarchy to support
        downstream unit-testing of serialization.

        WebPageSerializer was adapted from Chromium's dom_serializer, originally authored by Johnny Ding.

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

        * WebKit.gyp:
        * public/WebDocument.h: Added.
        (WebKit::WebDocument::WebDocument):
        (WebKit::WebDocument::operator=):
        (WebKit::WebDocument::assign):
        * public/WebElement.h:
        * public/WebFormElement.h:
        (WebKit::WebFormElement::operator=):
        * public/WebFrame.h:
        * public/WebNode.h:
        (WebKit::WebNode::):
        (WebKit::WebNode::toConstElement):
        * public/WebNodeCollection.h: Added.
        (WebKit::WebNodeCollection::~WebNodeCollection):
        (WebKit::WebNodeCollection::WebNodeCollection):
        (WebKit::WebNodeCollection::operator=):
        * public/WebNodeList.h: Added.
        (WebKit::WebNodeList::~WebNodeList):
        (WebKit::WebNodeList::WebNodeList):
        (WebKit::WebNodeList::operator=):
        * public/WebPageSerializer.h: Added.
        * public/WebPageSerializerClient.h: Added.
        (WebKit::WebPageSerializerClient::):
        (WebKit::WebPageSerializerClient::WebPageSerializerClient):
        (WebKit::WebPageSerializerClient::~WebPageSerializerClient):
        * public/WebString.h:
        * public/WebView.h:
        * src/AssertMatchingEnums.cpp:
        * src/DOMUtilitiesPrivate.cpp:
        (WebKit::elementHasLegalLinkAttribute):
        * src/DOMUtilitiesPrivate.h:
        * src/WebDocument.cpp: Added.
        (WebKit::WebDocument::WebDocument):
        (WebKit::WebDocument::operator=):
        (WebKit::WebDocument::operator WTF::PassRefPtr<Document>):
        (WebKit::WebDocument::frame):
        (WebKit::WebDocument::isHTMLDocument):
        (WebKit::WebDocument::baseURL):
        (WebKit::WebDocument::body):
        (WebKit::WebDocument::head):
        (WebKit::WebDocument::all):
        (WebKit::WebDocument::completeURL):
        * src/WebElement.cpp:
        (WebKit::WebElement::hasTagName):
        (WebKit::WebElement::hasAttribute):
        (WebKit::WebElement::getAttribute):
        * src/WebEntities.cpp: Added.
        (WebKit::populateMap):
        (WebKit::):
        (WebKit::WebEntities::WebEntities):
        (WebKit::WebEntities::entityNameByCode):
        (WebKit::WebEntities::convertEntitiesInString):
        * src/WebEntities.h: Added.
        * src/WebFrameImpl.cpp:
        (WebKit::WebFrame::fromFrameOwnerElement):
        (WebKit::WebFrameImpl::encoding):
        (WebKit::WebFrameImpl::document):
        (WebKit::WebFrameImpl::fromFrameOwnerElement):
        * src/WebFrameImpl.h:
        * src/WebNode.cpp:
        (WebKit::WebNode::nodeType):
        (WebKit::WebNode::nodeValue):
        (WebKit::WebNode::document):
        (WebKit::WebNode::firstChild):
        (WebKit::WebNode::lastChild):
        (WebKit::WebNode::previousSibling):
        (WebKit::WebNode::nextSibling):
        (WebKit::WebNode::hasChildNodes):
        (WebKit::WebNode::childNodes):
        (WebKit::WebNode::createMarkup):
        (WebKit::WebNode::isTextNode):
        (WebKit::WebNode::isElementNode):
        * src/WebNodeCollection.cpp: Added.
        (WebKit::WebNodeCollection::reset):
        (WebKit::WebNodeCollection::assign):
        (WebKit::WebNodeCollection::WebNodeCollection):
        (WebKit::WebNodeCollection::length):
        (WebKit::WebNodeCollection::nextItem):
        (WebKit::WebNodeCollection::firstItem):
        * src/WebNodeList.cpp: Added.
        (WebKit::WebNodeList::reset):
        (WebKit::WebNodeList::assign):
        (WebKit::WebNodeList::WebNodeList):
        (WebKit::WebNodeList::length):
        (WebKit::WebNodeList::item):
        * src/WebPageSerializer.cpp: Added.
        (WebKit::WebPageSerializer::serialize):
        (WebKit::WebPageSerializer::generateMetaCharsetDeclaration):
        (WebKit::WebPageSerializer::generateMarkOfTheWebDeclaration):
        (WebKit::WebPageSerializer::generateBaseTagDeclaration):
        * src/WebPageSerializerImpl.cpp: Added.
        (WebKit::WebPageSerializerImpl::SerializeDomParam::SerializeDomParam):
        (WebKit::WebPageSerializerImpl::preActionBeforeSerializeOpenTag):
        (WebKit::WebPageSerializerImpl::postActionAfterSerializeOpenTag):
        (WebKit::WebPageSerializerImpl::preActionBeforeSerializeEndTag):
        (WebKit::WebPageSerializerImpl::postActionAfterSerializeEndTag):
        (WebKit::WebPageSerializerImpl::saveHTMLContentToBuffer):
        (WebKit::WebPageSerializerImpl::openTagToString):
        (WebKit::WebPageSerializerImpl::endTagToString):
        (WebKit::WebPageSerializerImpl::buildContentForNode):
        (WebKit::WebPageSerializerImpl::WebPageSerializerImpl):
        (WebKit::WebPageSerializerImpl::collectTargetFrames):
        (WebKit::WebPageSerializerImpl::serialize):
        * src/WebPageSerializerImpl.h: Added.
        * src/WebString.cpp:
        (WebKit::WebString::WebString):
        (WebKit::WebString::operator=):
        * src/WebViewImpl.cpp:

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

11 years ago2009-12-17 Christian Dywan <christian@twotoasts.de>
christian@webkit.org [Thu, 17 Dec 2009 19:14:33 +0000 (19:14 +0000)]
2009-12-17  Christian Dywan  <christian@twotoasts.de>

        Reviewed by Gustavo Noronha Silva.

        [GTK] Don't assume downloads are always synchronous
        http://bugs.webkit.org/show_bug.cgi?id=32359

        * tests/testdownload.c:
        (download_requested_cb):
        (set_filename):
        (test_webkit_download_perform):
        (test_webkit_download_synch):
        (test_webkit_download_asynch):
        (main): Test downloads synchronously and asynchronously.
        * webkit/webkitwebview.cpp:
        (webkit_web_view_class_init):
        (webkit_web_view_request_download): Only try to start a requested
        download if the destination URI is set and clarify the documentation.

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

11 years agoMerge branch 'bug/26304' into staging
philn@webkit.org [Thu, 17 Dec 2009 19:13:42 +0000 (19:13 +0000)]
Merge branch 'bug/26304' into staging

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

11 years agoSync JavaScriptCore.vcproj with JavaScriptCore.xcodeproj and the source tree
aroben@apple.com [Thu, 17 Dec 2009 19:12:38 +0000 (19:12 +0000)]
Sync JavaScriptCore.vcproj with JavaScriptCore.xcodeproj and the source tree

Fixes <http://webkit.org/b/32665>.

Reviewed by Ada Chan.

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: Moved
around files and filters so that the structure matches
JavaScriptCore.xcodeproj and the source tree. A few headers that were
previously omitted have been added, as well as JSZombie.{cpp,h}.

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

11 years agoRemove HeavyProfile and TreeProfile completely
aroben@apple.com [Thu, 17 Dec 2009 19:12:26 +0000 (19:12 +0000)]
Remove HeavyProfile and TreeProfile completely

These were mostly removed in r42808, but the empty files were left in
place.

Fixes <http://webkit.org/b/32664>.

Reviewed by John Sullivan.

* Android.mk:
* GNUmakefile.am:
* JavaScriptCore.gypi:
* JavaScriptCore.pri:
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
* JavaScriptCoreSources.bkl:
Removed HeavyProfile/TreeProfile source files.

* profiler/HeavyProfile.cpp: Removed.
* profiler/HeavyProfile.h: Removed.
* profiler/TreeProfile.cpp: Removed.
* profiler/TreeProfile.h: Removed.

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

11 years agoRemove WebKit.sln's Debug_All and Debug_Internal configurations
aroben@apple.com [Thu, 17 Dec 2009 19:12:03 +0000 (19:12 +0000)]
Remove WebKit.sln's Debug_All and Debug_Internal configurations

These configurations aren't buildable by people outside of Apple, and
Apple doesn't use this solution file.

Fixes <http://webkit.org/b/31000> Windows WebKit Build Configuration
should default to Debug instead of Debug_all.

Rubber-stamped by Dan Bernstein.

* WebKit.vcproj/WebKit.sln:

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

11 years ago2009-12-17 Christian Dywan <christian@twotoasts.de>
christian@webkit.org [Thu, 17 Dec 2009 19:09:33 +0000 (19:09 +0000)]
2009-12-17  Christian Dywan  <christian@twotoasts.de>

        Reviewed by Xan Lopez.

        Deprecate the title-changed signal of WebKitWebFrame.

        * webkit/webkitwebframe.cpp:
        (webkit_web_frame_class_init):

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

11 years ago2009-12-17 Yael Aharon <yael.aharon@nokia.com>
eric@webkit.org [Thu, 17 Dec 2009 18:39:42 +0000 (18:39 +0000)]
2009-12-17  Yael Aharon  <yael.aharon@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] support navigator.onLine and ononline/onoffline events.
        https://bugs.webkit.org/show_bug.cgi?id=32555

        Hooked up Bearer Management to NetworkStateNotifier. This solution is available
        only if QtMobility's Bearer Management is installed.

        * WebCore.pro:
        * platform/network/NetworkStateNotifier.h:
        * platform/network/qt/NetworkStateNotifierPrivate.h: Added.
        * platform/network/qt/NetworkStateNotifierQt.cpp: Added.
        (WebCore::NetworkStateNotifierPrivate::NetworkStateNotifierPrivate):
        (WebCore::NetworkStateNotifierPrivate::onlineStateChanged):
        (WebCore::NetworkStateNotifierPrivate::~NetworkStateNotifierPrivate):
        (WebCore::NetworkStateNotifier::updateState):
        (WebCore::NetworkStateNotifier::NetworkStateNotifier):

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

11 years ago2009-12-17 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Thu, 17 Dec 2009 18:25:38 +0000 (18:25 +0000)]
2009-12-17  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: Switch to 11px as default for source-code in WebKit.

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

        * inspector/front-end/inspector.css:

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