WebKit-https.git
10 years ago2009-11-15 Dimitri Glazkov <dglazkov@chromium.org>
dglazkov@chromium.org [Mon, 16 Nov 2009 03:48:22 +0000 (03:48 +0000)]
2009-11-15  Dimitri Glazkov  <dglazkov@chromium.org>

        Unreviewed, build fix.

        Bring WebAccessibilityRole up to sync after
        http://trac.webkit.org/changeset/51007.

        * public/WebAccessibilityRole.h: Added WebAccessibilityRoleDirectory.
        * src/AssertMatchingEnums.cpp: Added a match between DirectoryRole and
          WebAccessibilityRoleDirectory.

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

10 years agoNeed to implement ARIA role="directory"
cfleizach@apple.com [Mon, 16 Nov 2009 02:05:24 +0000 (02:05 +0000)]
Need to implement ARIA role="directory"
https://bugs.webkit.org/show_bug.cgi?id=31516

Reviewed by Darin Adler.

WebCore:

Test: platform/mac/accessibility/aria-directory.html

* accessibility/AXObjectCache.cpp:
(WebCore::AXObjectCache::getOrCreate):
* accessibility/AccessibilityList.cpp:
(WebCore::AccessibilityList::isOrderedList):
* accessibility/AccessibilityRenderObject.cpp:
(WebCore::createARIARoleMap):

WebKit/mac:

Fix a spelling error in the comment of a localized (accessibility) string.

* WebCoreSupport/WebViewFactory.mm:
(-[WebViewFactory AXARIAContentGroupText:]):

LayoutTests:

* platform/mac/accessibility/aria-directory-expected.txt: Added.
* platform/mac/accessibility/aria-directory.html: Added.

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

10 years ago2009-11-15 Dave Tapuska <dtapuska@rim.com>
abarth@webkit.org [Sun, 15 Nov 2009 23:34:04 +0000 (23:34 +0000)]
2009-11-15  Dave Tapuska  <dtapuska@rim.com>

        Reviewed by George Staikos.

        Compare UChars single unit at a time as opposed to the uint32_t
        approach as casting to unaligned addresses may cause a bus failure
        on ARMv5 and below. This change replicates the same defines that
        exists in AtomicString.cpp

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

        * platform/text/StringHash.h:
        (WebCore::StringHash::equal):

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

10 years ago2009-11-15 Shinichiro Hamaji <hamaji@chromium.org>
abarth@webkit.org [Sun, 15 Nov 2009 23:32:34 +0000 (23:32 +0000)]
2009-11-15  Shinichiro Hamaji  <hamaji@chromium.org>

        Reviewed by Eric Seidel.

        bugzilla-tool should post git binary diff
        https://bugs.webkit.org/show_bug.cgi?id=31458

        Add --binary option to Git.create_patch.

        * Scripts/modules/scm.py:
        * Scripts/modules/scm_unittest.py:

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

10 years ago2009-11-15 Evan Martin <evan@chromium.org>
abarth@webkit.org [Sun, 15 Nov 2009 23:29:31 +0000 (23:29 +0000)]
2009-11-15  Evan Martin  <evan@chromium.org>

        Reviewed by Adam Barth.

        Wrap some SVG code in V8DOMWrapper with an ENABLE(SVG) test.

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

        * bindings/v8/V8DOMWrapper.cpp:

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

10 years ago2009-11-15 Maxime Simon <simon.maxime@gmail.com>
abarth@webkit.org [Sun, 15 Nov 2009 23:28:02 +0000 (23:28 +0000)]
2009-11-15  Maxime Simon  <simon.maxime@gmail.com>

        Reviewed by Adam Barth.

        [Haiku] Build fix. The FileChooser constructor doesn't need to be redefined.

        * platform/haiku/FileChooserHaiku.cpp:

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

10 years ago2009-11-15 Maxime Simon <simon.maxime@gmail.com>
abarth@webkit.org [Sun, 15 Nov 2009 23:26:36 +0000 (23:26 +0000)]
2009-11-15  Maxime Simon  <simon.maxime@gmail.com>

        Reviewed by Adam Barth.

        [Haiku] Build fix. ColorSpace name had a wrong CamelCase.

        * platform/graphics/haiku/GraphicsContextHaiku.cpp:
        (WebCore::GraphicsContext::setPlatformStrokeColor):

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

10 years ago2009-11-15 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Sun, 15 Nov 2009 23:24:34 +0000 (23:24 +0000)]
2009-11-15  Adam Barth  <abarth@webkit.org>

        Reviewed by Darin Adler.

        Add bugzilla-tool check-style
        https://bugs.webkit.org/show_bug.cgi?id=31515

        * Scripts/bugzilla-tool:
        * Scripts/modules/bugzilla.py:

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

10 years ago2009-11-15 Daniel Bates <dbates@webkit.org>
dbates@webkit.org [Sun, 15 Nov 2009 23:15:07 +0000 (23:15 +0000)]
2009-11-15  Daniel Bates  <dbates@webkit.org>

        No review, rolling out r50999.
        http://trac.webkit.org/changeset/50999

        Need to fix some issues in the Windows build. Missed some places where
        RenderTextControl::isEdited is called.

        * bindings/objc/DOMHTML.mm:
        (-[DOMHTMLInputElement _isEdited]):
        (-[DOMHTMLTextAreaElement _isEdited]):
        * dom/Document.cpp:
        (WebCore::Document::setFocusedNode):
        * html/HTMLInputElement.cpp:
        (WebCore::HTMLInputElement::defaultEventHandler):
        * rendering/RenderTextControl.cpp:
        (WebCore::RenderTextControl::RenderTextControl):
        (WebCore::RenderTextControl::setInnerTextValue):
        (WebCore::RenderTextControl::setUserEdited):
        (WebCore::RenderTextControl::subtreeHasChanged):
        * rendering/RenderTextControl.h:
        (WebCore::RenderTextControl::isEdited):
        (WebCore::RenderTextControl::setEdited):
        (WebCore::RenderTextControl::isUserEdited):
        * rendering/RenderTextControlSingleLine.cpp:
        (WebCore::RenderTextControlSingleLine::subtreeHasChanged):
        * wml/WMLInputElement.cpp:
        (WebCore::WMLInputElement::defaultEventHandler):

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

10 years ago2009-11-15 Daniel Bates <dbates@webkit.org>
dbates@webkit.org [Sun, 15 Nov 2009 22:55:41 +0000 (22:55 +0000)]
2009-11-15  Daniel Bates  <dbates@webkit.org>

        Reviewed by Darin Adler.

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

        Renames RenderTextControl::m_edited and RenderTextControl::m_userEdited to
        m_wasChangedSinceLastChangeEvent and m_lastChangeWasUserEdit, respectively.
        These are more descriptive names so as to clear an ambiguity surrounding
        their usage. Also, renames associated setters and getters so that they
        coincide with the renamed fields.

        No functionality was changed. So, no tests were included.

        * bindings/objc/DOMHTML.mm:
        (-[DOMHTMLInputElement _isEdited]):
        (-[DOMHTMLTextAreaElement _isEdited]):
        * dom/Document.cpp:
        (WebCore::Document::setFocusedNode):
        * html/HTMLInputElement.cpp:
        (WebCore::HTMLInputElement::defaultEventHandler):
        * rendering/RenderTextControl.cpp:
        (WebCore::RenderTextControl::RenderTextControl):
        (WebCore::RenderTextControl::setInnerTextValue):
        (WebCore::RenderTextControl::setLastChangeWasUserEdit): Formerly named setUserEdited.
        (WebCore::RenderTextControl::subtreeHasChanged):
        * rendering/RenderTextControl.h:
        (WebCore::RenderTextControl::wasChangedSinceLastChangeEvent): Formerly named isEdited.
        (WebCore::RenderTextControl::setChangedSinceLastChangeEvent): Formerly named setEdited.
        (WebCore::RenderTextControl::lastChangeWasUserEdit): Formerly named setUserEdited.
        * rendering/RenderTextControlSingleLine.cpp:
        (WebCore::RenderTextControlSingleLine::subtreeHasChanged):
        * wml/WMLInputElement.cpp:
        (WebCore::WMLInputElement::defaultEventHandler):

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

10 years agoWebCore: Fix for <rdar://problem/6946165> Would like to be able to specify the number...
adele@apple.com [Sat, 14 Nov 2009 20:55:09 +0000 (20:55 +0000)]
WebCore: Fix for <rdar://problem/6946165> Would like to be able to specify the number of visible lines when using -webkit-line-clamp

Reviewed by Dan Bernstein.

Test: fast/overflow/line-clamp.html

* css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Updated to handle different types of values.
* css/CSSParser.cpp: (WebCore::CSSParser::parseValue): ditto.
* css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::applyProperty): ditto.

* rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::layoutVerticalBox):
Use the line count value if available.  Otherwise, convert the percentage to the line count, as we did before.  Also,
if there is anchor as the last child box, still allow adding the ellipsis.

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::scrollByRecursively): Call isNone on the LineClampValue to see if the line-clamp property has been set.
(WebCore::RenderLayer::scrollRectToVisible): ditto.

* WebCore.xcodeproj/project.pbxproj: Added LineClampValue.h
* rendering/style/LineClampValue.h: Added.
(WebCore::LineClampValue::LineClampValue):
(WebCore::LineClampValue::value):
(WebCore::LineClampValue::isPercentage):
(WebCore::LineClampValue::isNone):
(WebCore::LineClampValue::operator==):
(WebCore::LineClampValue::operator!=):
* rendering/style/RenderStyleConstants.h: (WebCore::): Define ELineClampType enum for percentage or line count.

* rendering/style/RenderStyle.h: Use LineClampValue.
(WebCore::InheritedFlags::lineClamp):
(WebCore::InheritedFlags::setLineClamp):
(WebCore::InheritedFlags::initialLineClamp):
* rendering/style/StyleRareNonInheritedData.h:

LayoutTests: Test for <rdar://problem/6946165> Would like to be able to specify the number of visible lines when using -webkit-line-clamp

Reviewed by Dan Bernstein.

* fast/overflow/line-clamp.html: Added.
* platform/mac/fast/overflow/line-clamp-expected.checksum: Added.
* platform/mac/fast/overflow/line-clamp-expected.png: Added.
* platform/mac/fast/overflow/line-clamp-expected.txt: Added.

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

10 years ago2009-11-14 Eric Carlson <eric.carlson@apple.com>
eric.carlson@apple.com [Sat, 14 Nov 2009 17:53:34 +0000 (17:53 +0000)]
2009-11-14  Eric Carlson  <eric.carlson@apple.com>

        Reviewed by Oliver Hunt.

        <rdar://problem/7287487>
        Do not use QuickTime version to detect media controller theme

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

        * rendering/RenderThemeMac.mm:
        (WebCore::mediaControllerTheme): Use wkMediaControllerThemeAvailable instead of the
        QuickTime version to see if it is possible to use MediaControllerThemeQuickTime.

2009-11-14  Eric Carlson  <eric.carlson@apple.com>

        Reviewed by Oliver Hunt.

        <rdar://problem/7287487>
        Do not use QuickTime version to detect media controller theme

        * WebCoreSupport/WebSystemInterface.m:
        (InitWebCoreSystemInterface): Initialize wkMediaControllerThemeAvailable.

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

10 years ago2009-11-14 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Sat, 14 Nov 2009 15:21:46 +0000 (15:21 +0000)]
2009-11-14  Kent Tamura  <tkent@chromium.org>

        Reviewed by Darin Adler.

        Add tests for reading/writing .type property of HTMLInputElement.
        https://bugs.webkit.org/show_bug.cgi?id=29004

        * fast/forms/input-type-change3-expected.txt: Added.
        * fast/forms/input-type-change3.html: Added.
        * fast/forms/script-tests/input-type-change3.js: Added.

2009-11-14  Kent Tamura  <tkent@chromium.org>

        Reviewed by Darin Adler.

        - Recognizes date/datetime/datetime-local/month/time/week types of INPUT element.
          They have no dedicated UI and no type validation for now.
        - Clean up setInputType() and formControlType() of HTMLInputElement.
        https://bugs.webkit.org/show_bug.cgi?id=29004

        Test: fast/forms/input-type-change3.html

        * html/HTMLInputElement.cpp:
        (WebCore::HTMLInputElement::valueMissing):
        (WebCore::HTMLInputElement::patternMismatch):
        (WebCore::HTMLInputElement::tooLong):
        (WebCore::createTypeMap): Initializer for a static local variable.
        (WebCore::HTMLInputElement::setInputType):
        (WebCore::createFormControlTypes): Initializer for a static local variable.
        (WebCore::HTMLInputElement::formControlType):
        (WebCore::HTMLInputElement::saveFormControlState):
        (WebCore::HTMLInputElement::restoreFormControlState):
        (WebCore::HTMLInputElement::accessKeyAction):
        (WebCore::HTMLInputElement::rendererIsNeeded):
        (WebCore::HTMLInputElement::createRenderer):
        (WebCore::HTMLInputElement::appendFormData):
        (WebCore::HTMLInputElement::isTextField):
        (WebCore::HTMLInputElement::valueWithDefault):
        (WebCore::HTMLInputElement::storesValueSeparateFromAttribute):
        (WebCore::HTMLInputElement::defaultEventHandler):
        (WebCore::HTMLInputElement::isRequiredFormControl):
        (WebCore::HTMLInputElement::dataList):
        * html/HTMLInputElement.h: Add new values to InputType enum, and define numberOfTypes.

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

10 years agoSkip new test that needs new DRT infrastructure, with bug filled.
kov@webkit.org [Sat, 14 Nov 2009 14:08:35 +0000 (14:08 +0000)]
Skip new test that needs new DRT infrastructure, with bug filled.

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

10 years agoWAI-ARIA: checkbox does not determine its label from text content
cfleizach@apple.com [Sat, 14 Nov 2009 06:24:43 +0000 (06:24 +0000)]
WAI-ARIA: checkbox does not determine its label from text content
https://bugs.webkit.org/show_bug.cgi?id=31456

Reviewed by Darin Adler.

WebCore:

Test: accessibility/aria-checkbox-text.html

* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::title):

LayoutTests:

* accessibility/aria-checkbox-text.html: Added.
* platform/gtk/Skipped:
* platform/mac/accessibility/aria-checkbox-text-expected.txt: Added.
* platform/win/Skipped:

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

10 years agoWebCore:
dglazkov@chromium.org [Sat, 14 Nov 2009 04:54:15 +0000 (04:54 +0000)]
WebCore:

2009-11-13  Dimitri Glazkov  <dglazkov@chromium.org>

        Unreviewed, build fix.

        [Chromium] Fix build to catch up with http://trac.webkit.org/changeset/50973.
        This is just enough changes to unbreak the port.

        * bindings/v8/ScriptController.cpp:
        (WebCore::mainThreadNormalWorld):
        * bindings/v8/V8Proxy.cpp:
        (WebCore::V8Proxy::initContextIfNeeded):
        * loader/FrameLoaderClient.h:

WebKit/chromium:

2009-11-13  Dimitri Glazkov  <dglazkov@chromium.org>

        Unreviewed, build fix.

        [Chromium] Rename windowObjectCleared to dispatchDidClearWindowObjectInWorld
        to catch up http://trac.webkit.org/changeset/50973.

        * src/FrameLoaderClientImpl.cpp:
        (WebKit::FrameLoaderClientImpl::dispatchDidClearWindowObjectInWorld):
        * src/FrameLoaderClientImpl.h:

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

10 years ago2009-11-13 Aaron Boodman <aa@chromium.org>
aa@chromium.org [Sat, 14 Nov 2009 03:34:08 +0000 (03:34 +0000)]
2009-11-13  Aaron Boodman  <aa@chromium.org>

        Unreviewed fix for Chromium build.

        * loader/FrameLoaderClient.h:
        (WebCore::FrameLoaderClient::dispatchDidClearWindowObjectInWorld):
        Provide an empty implementation of this method because I don't know
        what it is supposed to do on Chromium.

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

10 years ago2009-11-13 Aaron Boodman <aa@chromium.org>
aa@chromium.org [Sat, 14 Nov 2009 03:11:06 +0000 (03:11 +0000)]
2009-11-13  Aaron Boodman  <aa@chromium.org>

        Unreviewed fix for Chromium build.

        * loader/FrameLoader.h: Make dispatchDidClearWindowObjectsInAllWorlds()
        public, as Chromium's V8Proxy calls it.

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

10 years ago2009-11-13 Aaron Boodman <aa@chromium.org>
aa@chromium.org [Sat, 14 Nov 2009 02:58:50 +0000 (02:58 +0000)]
2009-11-13  Aaron Boodman  <aa@chromium.org>

        Unreviewed fix to Chromium build.

        * bindings/v8/ScriptController.cpp:
        (WebCore::ScriptController::getAllWorlds):

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

10 years ago2009-11-13 Aaron Boodman <aa@chromium.org>
aa@chromium.org [Sat, 14 Nov 2009 02:45:28 +0000 (02:45 +0000)]
2009-11-13  Aaron Boodman  <aa@chromium.org>

        Unreviewed fix for Chromium build.

        * platform/text/TextBoundaries.cpp: Use longer path to refer to Unicode.h.

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

10 years ago2009-11-13 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Sat, 14 Nov 2009 02:29:50 +0000 (02:29 +0000)]
2009-11-13  Adam Barth  <abarth@webkit.org>

        Unreviewed partial build fix for Chromium.  Should fix failure #4.

        * bindings/v8/ScriptController.cpp:
        (WebCore::ScriptController::getAllWorlds):
        * bindings/v8/ScriptController.h:
        * bindings/v8/V8Proxy.cpp:
        (WebCore::V8Proxy::initContextIfNeeded):

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

10 years ago2009-11-13 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Sat, 14 Nov 2009 02:18:30 +0000 (02:18 +0000)]
2009-11-13  Adam Barth  <abarth@webkit.org>

        Unreviewed partial build fix for Chromium.

        * bindings/v8/ScriptController.h:
        (WebCore::ScriptController::getAllWorlds):

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

10 years ago Disable websocket tests on Tiger, as they time out.
ap@apple.com [Sat, 14 Nov 2009 01:47:33 +0000 (01:47 +0000)]
    Disable websocket tests on Tiger, as they time out.

        Filed <https://bugs.webkit.org/show_bug.cgi?id=31501> to investigate this issue.

        * platform/mac-tiger/Skipped:

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

10 years ago2009-11-13 Yaar Schnitman <yaar@chromium.org>
eric@webkit.org [Sat, 14 Nov 2009 01:40:45 +0000 (01:40 +0000)]
2009-11-13  Yaar Schnitman  <yaar@chromium.org>

        Reviewed by Dimitri Glazkov.

        Chromium WebKit Port to compile as dynamic lib

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

        * WebKit.gyp:

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

10 years agowx build fix after r50923 change to externalRepresentation.
kevino@webkit.org [Sat, 14 Nov 2009 01:33:49 +0000 (01:33 +0000)]
wx build fix after r50923 change to externalRepresentation.

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

10 years agowoo
aa@chromium.org [Sat, 14 Nov 2009 01:22:56 +0000 (01:22 +0000)]
woo

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

10 years agohttps://bugs.webkit.org/show_bug.cgi?id=31050
zoltan@webkit.org [Sat, 14 Nov 2009 01:07:01 +0000 (01:07 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=31050

Patch by Zoltan Herczeg <zherczeg@inf.u-szeged.hu> on 2009-11-13
Reviewed by Gavin Barraclough.

Adding optimization support for mode JSVALUE32_64
on ARM systems.

* jit/JIT.h:
* jit/JITCall.cpp:
(JSC::JIT::compileOpCall):
* jit/JITPropertyAccess.cpp:
(JSC::JIT::emit_op_method_check):
(JSC::JIT::compileGetByIdHotPath):
(JSC::JIT::compileGetByIdSlowCase):
(JSC::JIT::emit_op_put_by_id):

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

10 years agohttps://bugs.webkit.org/show_bug.cgi?id=31050
zoltan@webkit.org [Sat, 14 Nov 2009 00:44:42 +0000 (00:44 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=31050

Patch by Zoltan Herczeg <zherczeg@inf.u-szeged.hu> on 2009-11-14
Reviewed by Gavin Barraclough.

Adding JSVALUE32_64 support for ARM (but not turning it
on by default). All optimizations must be disabled, since
this patch is only the first of a series of patches.

During the work, a lot of x86 specific code revealed and
made platform independent.
See revisions: 50531 50541 50593 50594 50595

* assembler/ARMAssembler.h:
(JSC::ARMAssembler::):
(JSC::ARMAssembler::fdivd_r):
* assembler/MacroAssemblerARM.h:
(JSC::MacroAssemblerARM::lshift32):
(JSC::MacroAssemblerARM::neg32):
(JSC::MacroAssemblerARM::rshift32):
(JSC::MacroAssemblerARM::branchOr32):
(JSC::MacroAssemblerARM::set8):
(JSC::MacroAssemblerARM::setTest8):
(JSC::MacroAssemblerARM::loadDouble):
(JSC::MacroAssemblerARM::divDouble):
(JSC::MacroAssemblerARM::convertInt32ToDouble):
(JSC::MacroAssemblerARM::zeroDouble):
* jit/JIT.cpp:
* jit/JIT.h:
* jit/JITOpcodes.cpp:
(JSC::JIT::privateCompileCTIMachineTrampolines):
* jit/JITStubs.cpp:
* wtf/StdLibExtras.h:

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

10 years ago2009-11-13 Eric Seidel <eric@webkit.org>
eric@webkit.org [Sat, 14 Nov 2009 00:39:40 +0000 (00:39 +0000)]
2009-11-13  Eric Seidel  <eric@webkit.org>

        No review, build fix only.

        Fix Windows and Chromium builds after http://trac.webkit.org/changeset/50977.

        Unify TextBoundaries implementations by only relying on WTF Unicode abstractions
        https://bugs.webkit.org/show_bug.cgi?id=31468

        * WebCore.gypi: Rename TextBoundariesICU -> TextBoundaries
        * WebCore.vcproj/WebCore.vcproj: Rename TextBoundariesICU -> TextBoundaries

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

10 years ago2009-11-12 Jeremy Orlow <jorlow@chromium.org>
jorlow@chromium.org [Sat, 14 Nov 2009 00:27:25 +0000 (00:27 +0000)]
2009-11-12  Jeremy Orlow  <jorlow@chromium.org>

        Reviewed by Dmitry Titov.

        LocalStorage quota should include key sizes in its count
        https://bugs.webkit.org/show_bug.cgi?id=31451

        * storage/StorageMap.cpp:
        (WebCore::StorageMap::setItem):
            Count keys in the quota when adding a new item.
        (WebCore::StorageMap::removeItem):
            Remove the key's length from the quota if we're removing the item.
        (WebCore::StorageMap::importItem):
            Assume that we're adding things for the first time.
            Count keys in the quota.
2009-11-12  Jeremy Orlow  <jorlow@chromium.org>

        Reviewed by Dmitry Titov.

        Now that we're tracking key size in the quota, we can't fit as much in.
        https://bugs.webkit.org/show_bug.cgi?id=31451

        * storage/domstorage/quota-expected.txt:
        * storage/domstorage/script-tests/quota.js:
        (testQuota):

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

10 years ago2009-11-13 Chris Jerdonek <chris.jerdonek@gmail.com>
eric@webkit.org [Sat, 14 Nov 2009 00:25:35 +0000 (00:25 +0000)]
2009-11-13  Chris Jerdonek  <chris.jerdonek@gmail.com>

        Reviewed by Darin Adler.

        Added to the WebKit Coding Style Guidelines not to use
        "using namespace" statements in header files.

        * coding/coding-style.html:

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

10 years ago2009-11-13 Dominik Röttsches <dominik.roettsches@access-company.com>
eric@webkit.org [Sat, 14 Nov 2009 00:09:41 +0000 (00:09 +0000)]
2009-11-13  Dominik Röttsches  <dominik.roettsches@access-company.com>

        Reviewed by Eric Seidel.

        Unify TextBoundaries implementations by only relying on WTF Unicode abstractions
        https://bugs.webkit.org/show_bug.cgi?id=31468

        Adding isAlphanumeric abstraction, required
        by TextBoundaries.cpp.

        * wtf/unicode/glib/UnicodeGLib.h:
        (WTF::Unicode::isAlphanumeric):
        * wtf/unicode/icu/UnicodeIcu.h:
        (WTF::Unicode::isAlphanumeric):
2009-11-13  Dominik Röttsches  <dominik.roettsches@access-company.com>

        Reviewed by Eric Seidel.

        Unify TextBoundaries implementations by only relying on WTF Unicode abstractions
        https://bugs.webkit.org/show_bug.cgi?id=31468

        Moving TextBoundariesICU.cpp to TextBoundaries.cpp
        by removing the direct ICU dependency and replacing it
        with WTF functions and WebCore's own TextBreakIterator
        abstractions.

        * GNUmakefile.am:
        * platform/graphics/gtk/SimpleFontDataGtk.cpp:
        * platform/text/TextBoundaries.cpp: Added.
        (WebCore::findNextWordFromIndex):
        (WebCore::findWordBoundary):
        * platform/text/TextBoundariesICU.cpp: Removed.
        * platform/text/TextBreakIterator.h:
        * platform/text/TextBreakIteratorICU.cpp:
        (WebCore::textBreakLast):
        (WebCore::textBreakPrevious):

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

10 years ago2009-11-13 Shinichiro Hamaji <hamaji@chromium.org>
hamaji@chromium.org [Sat, 14 Nov 2009 00:07:03 +0000 (00:07 +0000)]
2009-11-13  Shinichiro Hamaji  <hamaji@chromium.org>

        Reviewed by Darin Adler.

        WebCore::externalRepresentation should update layout before getting render object
        https://bugs.webkit.org/show_bug.cgi?id=31459

        Before this change, the render tree output for this test was wrong.
        Note that #FF0000 (red) becomes #008000 (green) now.

        * platform/mac/svg/custom/gradient-stop-style-change-expected.txt:
2009-11-13  Shinichiro Hamaji  <hamaji@chromium.org>

        Reviewed by Darin Adler.

        WebCore::externalRepresentation should update layout before getting render object
        https://bugs.webkit.org/show_bug.cgi?id=31459

        * rendering/RenderTreeAsText.cpp:
        (WebCore::externalRepresentation):

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

10 years agoUpdate WebKitSystemInterface.
andersca@apple.com [Sat, 14 Nov 2009 00:06:25 +0000 (00:06 +0000)]
Update WebKitSystemInterface.

Reviewed by Dan Bernstein.

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

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

10 years agoBuild fix
aroben@apple.com [Fri, 13 Nov 2009 23:56:13 +0000 (23:56 +0000)]
Build fix

* Interfaces/WebKit.idl: Touch this to force interfaces to rebuild.

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

10 years agoTell the WebFrameLoadDelegate when window objects in isolated worlds are cleared
aroben@apple.com [Fri, 13 Nov 2009 23:49:05 +0000 (23:49 +0000)]
Tell the WebFrameLoadDelegate when window objects in isolated worlds are cleared

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

Reviewed by Dave Hyatt.

WebCore:

Tell FrameLoaderClient when window objects in isolated worlds are
cleared

Test: http/tests/security/isolatedWorld/didClearWindowObject.html

* bindings/js/JSDOMBinding.h:
(WebCore::WebCoreJSClientData::getAllWorlds): Added. Copies all the
worlds in m_worldSet to the passed-in Vector.

* bindings/js/ScriptController.cpp:
(WebCore::ScriptController::getAllWorlds): Added. Calls through to
WebCoreJSClientData.
(WebCore::ScriptController::initScript): Changed to call
FrameLoader::dispatchDidClearWindowObjectInWorld.

* bindings/js/ScriptController.h: Added getAllWorlds.

* loader/EmptyClients.h:
(WebCore::EmptyFrameLoaderClient::dispatchDidClearWindowObjectInWorld):
Updated for FrameLoaderClient change.

* loader/FrameLoader.cpp:
(WebCore::FrameLoader::receivedFirstData):
(WebCore::FrameLoader::begin):
Changed to call dispatchDidClearWindowObjectsInAllWorlds.

(WebCore::FrameLoader::dispatchDidClearWindowObjectsInAllWorlds):
Added. Retrieves all the worlds, then calls through to
dispatchDidClearWindowObjectInWorld for each one.
(WebCore::FrameLoader::dispatchDidClearWindowObjectInWorld): Replaces
dispatchWindowObjectAvailable. Calls up to the client, then, if the
world is the mainThreadNormalWorld(), tells the Inspector about it,
too.

* loader/FrameLoader.h: Replaced dispatchWindowObjectAvailable with
dispatchDidClearWindowObjectInWorld. Added
dispatchDidClearWindowObjectsInAllWorlds.

* loader/FrameLoaderClient.h: Replaced windowObjectCleared with
dispatchDidClearWindowObjectForWorld.

WebKit:

Add WebFrameLoadDelegatePrivat.h to WebKit.xcodeproj

* WebKit.xcodeproj/project.pbxproj: Added
WebFrameLoadDelegatePrivate.h, which already existed.

WebKit/gtk:

Update for changes to FrameLoaderClient

* WebCoreSupport/FrameLoaderClientGtk.cpp:
(WebKit::FrameLoaderClient::dispatchDidClearWindowObjectInWorld):
* WebCoreSupport/FrameLoaderClientGtk.h:
Replaced windowObjectCleared with this function. Does nothing if the
passed-in world is not the mainThreadNormalWorld().

WebKit/haiku:

Update for changes to FrameLoaderClient

* WebCoreSupport/FrameLoaderClientHaiku.cpp:
(WebCore::FrameLoaderClientHaiku::dispatchDidClearWindowObjectInWorld):
* WebCoreSupport/FrameLoaderClientHaiku.h:
Replaced windowObjectCleared with this function. Does nothing if the
passed-in world is not the mainThreadNormalWorld().

WebKit/mac:

* WebCoreSupport/WebFrameLoaderClient.h:
* WebCoreSupport/WebFrameLoaderClient.mm:
(WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld):
Replaced windowObjectCleared with this function. If the delegate
implements it, call
-webView:didClearWindowObjectForFrame:inScriptWorld:. Otherwise, if
the passed-in world is the mainThreadNormalWorld(), call
-webView:didClearWindowObject:forFrame:.

* WebView/WebDelegateImplementationCaching.h: Added a new entry in the
frame load delegate implementation cache for the new delegate method.

* WebView/WebFrameLoadDelegatePrivate.h:
* WebView/WebScriptWorld.mm:
(allWorlds): Added. Returns a HashMap of all the WebScriptWorlds in
existence.
(-[WebScriptWorld initWithWorld:]): Add ourselves to allWorlds().
(-[WebScriptWorld dealloc]): Remove ourselves from allWorlds().
(+[WebScriptWorld findOrCreateWorld:]): Returns the existing
WebScriptWorld for this DOMWrapperWorld, or a new one if one doesn't
already exist.

* WebView/WebScriptWorldInternal.h: Declared +findOrCreateWorld:.

* WebView/WebView.mm:
(-[WebView _cacheFrameLoadDelegateImplementations]): Cache the
implementation of the new frame load delegate method.

WebKit/qt:

Update for changes to FrameLoaderClient

* WebCoreSupport/FrameLoaderClientQt.cpp:
(WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
* WebCoreSupport/FrameLoaderClientQt.h:
Replaced windowObjectCleared with this function. Does nothing if the
passed-in world is not the mainThreadNormalWorld().

WebKit/win:

* Interfaces/IWebFrameLoadDelegatePrivate2.idl: Added
didClearWindowObjectForFrameInScriptWorld.

* WebFrame.cpp:
(WebFrame::dispatchDidClearWindowObjectInWorld):
* WebFrame.h:
Replaced windowObjectCleared with this function. If the delegate
implements IWebFrameLoadDelegatePrivate2, call
didClearWindowObjectForFrameInScriptWorld. Otherwise, if the passed-in
world is the mainThreadNormalWorld(), call
didClearWindowObjectForFrame.

* WebScriptWorld.cpp:
(allWorlds): Added. Returns a HashMap of all the WebScriptWorlds in
existence.
(WebScriptWorld::WebScriptWorld): Add ourselves to allWorlds().
(WebScriptWorld::~WebScriptWorld): Remove ourselves from allWorlds().
(WebScriptWorld::standardWorld): Added this non-COM getter for the
standard world, which the COM getter now calls through to.
(WebScriptWorld::findOrCreateWorld): Added. Returns the existing
WebScriptWorld for this DOMWrapperWorld, or a new one if one doesn't
already exist.

* WebScriptWorld.h: Added new standardWorld overload, made one
overload of createInstance private, and added findOrCreateWorld.

WebKit/wx:

Update for changes to FrameLoaderClient

* WebKitSupport/FrameLoaderClientWx.cpp:
(WebCore::FrameLoaderClientWx::dispatchDidClearWindowObjectInWorld):
* WebKitSupport/FrameLoaderClientWx.h:
Replaced windowObjectCleared with this function. Does nothing if the
passed-in world is not the mainThreadNormalWorld().

WebKitTools:

Add support for
http/tests/security/isolatedWorld/didClearWindowObject.html

* DumpRenderTree/mac/DumpRenderTreeMac.h: Declared worldIDForWorld.

* DumpRenderTree/mac/FrameLoadDelegate.mm:
(-[FrameLoadDelegate didClearWindowObjectInStandardWorldForFrame:]):
Added. Moved code here from -webView:didClearWindowObject:forFrame:.
(-[FrameLoadDelegate didClearWindowObjectForFrame:inIsolatedWorld:]):
Added. Sets a __worldID property on the global object whose value is
the ID of this world.
(-[FrameLoadDelegate webView:didClearWindowObjectForFrame:inScriptWorld:]):
Respond to this new delegate callback by calling through to one of the
above new methods.
* DumpRenderTree/mac/LayoutTestControllerMac.mm:
(worldMap): Added. Returns a HashMap containing all the worlds we've
created.
(worldIDForWorld): Added. Returns the ID for this world, or 0 if we
haven't kept track of this world.
(LayoutTestController::evaluateScriptInIsolatedWorld): Use worldMap()
instead of declaring our own.

* DumpRenderTree/win/DumpRenderTreeWin.h: Declared worldIDForWorld.

* DumpRenderTree/win/FrameLoadDelegate.cpp:
(FrameLoadDelegate::didClearWindowObject): Moved code from hear to
didClearWindowObjectForFrameInStandardWorld.
(FrameLoadDelegate::didClearWindowObjectForFrameInScriptWorld):
Respond to this new delegate callback by calling through to one of the
below new methods.
(FrameLoadDelegate::didClearWindowObjectForFrameInIsolatedWorld):
Added. Sets a __worldID property on the gobal object whose value is
the ID of this world.
(FrameLoadDelegate::didClearWindowObjectForFrameInStandardWorld):
Added. Moved code here from didClearWindowObject.

* DumpRenderTree/win/FrameLoadDelegate.h: Added the
didClearWindowObjectForFrame* functions.

* DumpRenderTree/win/LayoutTestControllerWin.cpp:
(worldMap): Added. Returns a HashMap containing all the worlds we've
created.
(worldIDForWorld): Added. Returns the ID of this world, or 0 if we
haven't kept track of this world.
(LayoutTestController::evaluateScriptInIsolatedWorld): Use worldMap()
instead of declaring our own.

LayoutTests:

Test that delegates can modify global objects in isolated worlds

* http/tests/security/isolatedWorld/didClearWindowObject-expected.txt: Added.
* http/tests/security/isolatedWorld/didClearWindowObject.html: Added.
Tests that the global object in the normal world does not have a
__worldID property, and that the global object in isolated worlds has
a __worldID property whose value is equal to the world's ID.

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

10 years ago2009-11-13 Vitaly Repeshko <vitalyr@chromium.org>
dglazkov@chromium.org [Fri, 13 Nov 2009 23:46:30 +0000 (23:46 +0000)]
2009-11-13  Vitaly Repeshko  <vitalyr@chromium.org>

        Reviewed by Dimitri Glazkov.

        [V8] Fix SVG context assignment for pod types.
        https://bugs.webkit.org/show_bug.cgi?id=31497

        I broke this in r50958.

        Tested by svg/custom/viewport-update2.svg.

        * bindings/scripts/CodeGeneratorV8.pm:

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

10 years agoBring the platform/android files inline with Android 2.0
dimich@chromium.org [Fri, 13 Nov 2009 23:38:23 +0000 (23:38 +0000)]
Bring the platform/android files inline with Android 2.0
https://bugs.webkit.org/show_bug.cgi?id=31423

Patch by Andrei Popescu <andreip@google.com> on 2009-11-13
Reviewed by Dmitry Titov.

No new tests required: these are all Android-specific files.

* platform/android/ClipboardAndroid.cpp:
(WebCore::ClipboardAndroid::files):
* platform/android/ClipboardAndroid.h:
* platform/android/FileChooserAndroid.cpp:
(WebCore::FileChooser::basenameForWidth):
(WebCore::fileButtonChooseFileLabel):
* platform/android/KeyEventAndroid.cpp:
(WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
* platform/android/LocalizedStringsAndroid.cpp:
(WebCore::contextMenuItemTagOpenLinkInNewWindow):
(WebCore::contextMenuItemTagDownloadLinkToDisk):
(WebCore::contextMenuItemTagCopyLinkToClipboard):
(WebCore::contextMenuItemTagOpenImageInNewWindow):
(WebCore::contextMenuItemTagDownloadImageToDisk):
(WebCore::contextMenuItemTagCopyImageToClipboard):
(WebCore::contextMenuItemTagOpenFrameInNewWindow):
(WebCore::contextMenuItemTagCopy):
(WebCore::contextMenuItemTagGoBack):
(WebCore::contextMenuItemTagGoForward):
(WebCore::contextMenuItemTagStop):
(WebCore::contextMenuItemTagReload):
(WebCore::contextMenuItemTagCut):
(WebCore::contextMenuItemTagPaste):
(WebCore::contextMenuItemTagNoGuessesFound):
(WebCore::contextMenuItemTagIgnoreSpelling):
(WebCore::contextMenuItemTagLearnSpelling):
(WebCore::contextMenuItemTagSearchWeb):
(WebCore::contextMenuItemTagLookUpInDictionary):
(WebCore::contextMenuItemTagOpenLink):
(WebCore::contextMenuItemTagIgnoreGrammar):
(WebCore::contextMenuItemTagSpellingMenu):
(WebCore::contextMenuItemTagShowSpellingPanel):
(WebCore::contextMenuItemTagCheckSpelling):
(WebCore::contextMenuItemTagCheckSpellingWhileTyping):
(WebCore::contextMenuItemTagCheckGrammarWithSpelling):
(WebCore::contextMenuItemTagFontMenu):
(WebCore::contextMenuItemTagBold):
(WebCore::contextMenuItemTagItalic):
(WebCore::contextMenuItemTagUnderline):
(WebCore::contextMenuItemTagOutline):
(WebCore::contextMenuItemTagWritingDirectionMenu):
(WebCore::contextMenuItemTagTextDirectionMenu):
(WebCore::contextMenuItemTagDefaultDirection):
(WebCore::contextMenuItemTagLeftToRight):
(WebCore::contextMenuItemTagRightToLeft):
(WebCore::mediaElementLoadingStateText):
(WebCore::mediaElementLiveBroadcastStateText):
(WebCore::searchableIndexIntroduction):
(WebCore::resetButtonDefaultLabel):
(WebCore::submitButtonDefaultLabel):
(WebCore::inputElementAltText):
* platform/android/RenderThemeAndroid.cpp:
(WebCore::RenderTheme::themeForPage):
(WebCore::RenderThemeAndroid::baselinePosition):
(WebCore::RenderThemeAndroid::paintButton):
(WebCore::adjustMenuListStyleCommon):
(WebCore::RenderThemeAndroid::paintCombo):
* platform/android/ScreenAndroid.cpp:
* platform/android/ScrollViewAndroid.cpp:
(WebCore::ScrollView::platformOffscreenContentRectangle):
* platform/android/TemporaryLinkStubs.cpp:
(JSC::Bindings::dispatchJNICall):
* platform/android/WidgetAndroid.cpp:
(WebCore::Widget::setFrameRect):

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

10 years ago2009-11-13 Norbert Leser <norbert.leser&nokia.com>
eric@webkit.org [Fri, 13 Nov 2009 23:21:33 +0000 (23:21 +0000)]
2009-11-13  Norbert Leser  <norbert.leser&nokia.com>

        Reviewed by Eric Seidel.

        Added macros for USERINCLUDE paths within symbian blocks
        to guarantee inclusion of respective header files from local path
        first (to avoid clashes with same names of header files in system include path).

        * JavaScriptCore.pri:
2009-11-13  Norbert Leser  <norbert.leser&nokia.com>

        Reviewed by Eric Seidel.

        Added macros for USERINCLUDE paths within symbian blocks
        to guarantee inclusion of respective header files from local path
        first (to avoid clashes with same names of header files in system include path).

        * WebCore.pro:

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

10 years agoRemove the unnecessary call to dumpDatabaseCallbacks().
dumi@chromium.org [Fri, 13 Nov 2009 23:20:38 +0000 (23:20 +0000)]
Remove the unnecessary call to dumpDatabaseCallbacks().

Reviewed by Eric Seidel.

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

* storage/hash-change-with-xhr.html:

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

10 years agoImplement composition events introduced in DOM Level 3.
dimich@chromium.org [Fri, 13 Nov 2009 21:51:22 +0000 (21:51 +0000)]
Implement composition events introduced in DOM Level 3.
This change adds a new IDL which defines the composition events, adds a class which
implements the composition events, and sends the composition events according to
the specification.
https://bugs.webkit.org/show_bug.cgi?id=26310

Patch by Hironori Bono <hbono@chromium.org> on 2009-11-13
Reviewed by Oliver Hunt.

WebCore:

Test: fast/events/ime-composition-events-001.html

* DerivedSources.make: Added CompositionEvent so we can compile "CompositionEvent.idl".
* GNUmakefile.am: Added "CompositionEvent.{cpp,h,idl}".
* WebCore.gypi: ditto.
* WebCore.pro: ditto
* WebCore.vcproj/WebCore.vcproj: ditto.
* WebCore.xcodeproj/project.pbxproj: Added "CompositionEvent.{cpp,h,idl}" and "JSCompositionEvent.{cpp,h}".
* WebCoreSources.bkl: Added "JSCompositionEvent.{cpp,h}".
* bindings/js/JSEventCustom.cpp:
(WebCore::toJS): Call isCompositionEvent() to create the CompositionEvent wrapper.
* bindings/v8/DOMObjectsInclude.h: Added "JSCompositionEvent.h".
* bindings/v8/DerivedSourcesAllInOne.cpp: Added "JSCompositionEvent.cpp".
* bindings/v8/V8DOMWrapper.cpp: Call isCompositionEvent() to identify an event as a CompositionEvent.
(WebCore::V8DOMWrapper::convertEventToV8Object):
* bindings/v8/V8Index.cpp: Added "V8CompositionEvent.h".
* bindings/v8/V8Index.h: Added V8Index::COMPOSITIONEVENT.
* dom/CompositionEvent.cpp: Implements the CompositionEvent class.
(WebCore::CompositionEvent::CompositionEvent):
(WebCore::CompositionEvent::~CompositionEvent):
(WebCore::CompositionEvent::initCompositionEvent):
(WebCore::CompositionEvent::isCompositionEvent):
* dom/CompositionEvent.h: Declares the CompositionEvent class.
(WebCore::CompositionEvent::create):
(WebCore::CompositionEvent::data):
* dom/CompositionEvent.idl: Added the IDL of DOM CompositionEvent.
* dom/Event.cpp:
(WebCore::Event::isCompositionEvent): Added a method to identify an event is a CompositionEvent.
* dom/Event.h:
* dom/EventNames.h: Added composition{start,update,end} to eventNames.
* editing/Editor.cpp:
(WebCore::Editor::confirmComposition): Sent a CompositionEnd event.
(WebCore::Editor::setComposition): Sent a Composition{Start,Update,End} event.

LayoutTests:

* fast/events/ime-composition-events-001-expected.txt: Added.
* fast/events/ime-composition-events-001.html: Added.
* platform/gtk/Skipped: Skip this test because TextInputController is not implemented.
* platform/qt/Skipped: ditto.
* platform/win/Skipped: ditto.

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

10 years agoFix a link error in unofficial GCC 4.4 builds on Linux.
snej@chromium.org [Fri, 13 Nov 2009 21:26:38 +0000 (21:26 +0000)]
Fix a link error in unofficial GCC 4.4 builds on Linux.
https://bugs.webkit.org/show_bug.cgi?id=31477

Reviewed by Dimitri Glazkov.

* bindings/v8/V8Binding.cpp:  Add explicit instantiations of v8StringToWebCoreString template.

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

10 years ago2009-11-13 Eric Seidel <eric@webkit.org>
eric@webkit.org [Fri, 13 Nov 2009 20:55:51 +0000 (20:55 +0000)]
2009-11-13  Eric Seidel  <eric@webkit.org>

        No review, build fix only.

        Fix Debug build after http://trac.webkit.org/changeset/50960.

        The CounterNode class does not support all methods necessary to efficiently update the counter tree as needed per CSS2.1
        https://bugs.webkit.org/show_bug.cgi?id=31213

        * rendering/CounterNode.cpp:
        (WebCore::showTreeAndMark):
        * rendering/RenderCounter.cpp:
        (WebCore::destroyCounterNodeChildren):

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

10 years agoWebKitTools: Make the Qt Linux only --valgrind feature, suppress errors
kenneth@webkit.org [Fri, 13 Nov 2009 20:50:33 +0000 (20:50 +0000)]
WebKitTools: Make the Qt Linux only --valgrind feature, suppress errors
defined in the SuppressedValgrindErrors file.

Reviewed by Simon Hausmann.

* Scripts/run-webkit-tests:

LayoutTests: Add a file for suppressing invalid valgrind errors (Qt / Linux only)

Reviewed by Simon Hausmann.

* platform/qt/SuppressedValgrindErrors: Added.

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

10 years agoJSValueProtect and JSValueUnprotect don't protect API wrapper values
oliver@apple.com [Fri, 13 Nov 2009 20:42:16 +0000 (20:42 +0000)]
JSValueProtect and JSValueUnprotect don't protect API wrapper values
https://bugs.webkit.org/show_bug.cgi?id=31485

Reviewed by Geoff Garen.

Make JSValueProtect/Unprotect use a new 'toJS' function, 'toJSForGC' that
does not attempt to to strip out API wrapper objects.

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

10 years ago2009-11-13 Dirk Schulze <krit@webkit.org>
krit@webkit.org [Fri, 13 Nov 2009 20:35:46 +0000 (20:35 +0000)]
2009-11-13  Dirk Schulze  <krit@webkit.org>

        Reviewed by Gustavo Noronha.

        [CAIRO] shadow support for Canvas and SVG
        [https://bugs.webkit.org/show_bug.cgi?id=30960]

        We currently fill a path with solid color instead of filling
        a clipping path. This causes problems on some composite operators,
        since Cairo modifies the area outside the path.
        This fixes the behavior of WebKitGtk on fast/canvas/canvas-composite-alpha.html

        Thanks to Benjamin Otte for tracking the bug down.

        * platform/graphics/cairo/GraphicsContextCairo.cpp:
        (WebCore::setPlatformFill):

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

10 years ago2009-11-13 İsmail Dönmez <ismail@namtrac.org>
eric@webkit.org [Fri, 13 Nov 2009 20:29:54 +0000 (20:29 +0000)]
2009-11-13  İsmail Dönmez  <ismail@namtrac.org>

        Reviewed by Antti Koivisto.

        Fix typo, ce_time.cpp should be ce_time.c

        * JavaScriptCore.pri:

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

10 years agoAdding Chromium's DatabaseTracker implementation.
dumi@chromium.org [Fri, 13 Nov 2009 20:25:06 +0000 (20:25 +0000)]
Adding Chromium's DatabaseTracker implementation.

Reviewed by Dimitri Glazkov.

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

WebCore:

* WebCore.gyp/WebCore.gyp:
* WebCore.gypi:
* storage/DatabaseTracker.h:
* storage/chromium/DatabaseTrackerChromium.cpp:
(WebCore::DatabaseTracker::fullPathForDatabase):
(WebCore::DatabaseTracker::getMaxSizeForDatabase):
* storage/chromium/QuotaTracker.cpp:
(WebCore::QuotaTracker::updateDatabaseSize):
* storage/chromium/QuotaTracker.h:

WebKit/chromium:

* WebKit.gyp:
* src/ChromeClientImpl.cpp:
(WebKit::ChromeClientImpl::exceededDatabaseQuota):
* src/DatabaseObserver.cpp: Added.
(WebCore::DatabaseObserver::databaseOpened):
(WebCore::DatabaseObserver::databaseModified):
(WebCore::DatabaseObserver::databaseClosed):
* src/WebDatabase.cpp:
(WebKit::WebDatabase::name):
(WebKit::WebDatabase::displayName):
(WebKit::WebDatabase::estimatedSize):
(WebKit::WebDatabase::securityOrigin):
(WebKit::WebDatabase::updateDatabaseSize):
* src/WebSecurityOrigin.cpp:
(WebKit::WebSecurityOrigin::toString):
(WebKit::WebSecurityOrigin::databaseIdentifier):

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

10 years ago2009-11-13 Carol Szabo <carol.szabo@nokia.com>
eric@webkit.org [Fri, 13 Nov 2009 20:21:44 +0000 (20:21 +0000)]
2009-11-13  Carol Szabo  <carol.szabo@nokia.com>

        Reviewed by Darin Adler.

        The CounterNode class is missing some basic tree navigation methods common in other WebKit trees such as the rendering tree
        https://bugs.webkit.org/show_bug.cgi?id=31213
        Added tree navigation methods that permit full implementation of CSS2.1
        counter feature without using recursion proportional to the counter
        tree depth.
        No new tests because I did not find any bug that is fixed by this
        commit yet, this just reduces the size of the patch for 11031 and
        helps respond to some concerns regarding that patch.

        * rendering/CounterNode.cpp:
        (WebCore::CounterNode::CounterNode):

        (WebCore::CounterNode::nextInPreOrderAfterChildren):
        (WebCore::CounterNode::nextInPreOrder):
        Added to support non-recursive tree traversal necessary for
        efficient full implementation of CSS2.1 counters.

        (WebCore::CounterNode::lastDescendant):
        (WebCore::CounterNode::previousInPreOrder):
        Moved this methods such that they occupy a place similar to that of
        identically named methods on the render tree. This allows for their
        broader use needed in full implementation of CSS2.1 counters.

        (WebCore::CounterNode::resetRenderer):
        (WebCore::CounterNode::resetRenderers):
        (WebCore::CounterNode::recount):
        (WebCore::CounterNode::insertAfter):
        (WebCore::CounterNode::removeChild):
        Changed such that insertion/removal of a counter, triggers not only
        recalculation of PrefixWidths, but also reassesment of values in
        counter nodes. This is the basis full implementation of CSS2.1
        counters. It does not change current behavior by much because of
        changes needed to the recalculation algorithm, but those are comming
        in the patch for 11031.
        (WebCore::showTreeAndMark):
        * rendering/CounterNode.h:
        * rendering/RenderCounter.cpp:
        (WebCore::counter):
        Only changed argument type to prepare for implementation of Darin
        Adler's recommendation for the patch to 11031.

        (WebCore::RenderCounter::invalidate):
        (WebCore::destroyCounterNodeChildren):
        (WebCore::RenderCounter::destroyCounterNodes):
        * rendering/RenderCounter.h:
        * rendering/RenderObjectChildList.cpp:
        (WebCore::invalidateCountersInContainer):
        (WebCore::RenderObjectChildList::invalidateCounters):
        * rendering/RenderObjectChildList.h:
        Added the ability to restrict invalidation to counters with a given
        identifier.
        Also invalidated counters that are on the child container itself
        which were missed by the previous algorithm, but were a valid case.

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

10 years agoSet the locale to C and not to the current one in use on the system.
kenneth@webkit.org [Fri, 13 Nov 2009 20:04:24 +0000 (20:04 +0000)]
Set the locale to C and not to the current one in use on the system.

Reviewed by Simon Hausmann.

* DumpRenderTree/qt/DumpRenderTree.cpp:
(WebCore::DumpRenderTree::resetToConsistentStateBeforeTesting):

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

10 years ago2009-11-13 Vitaly Repeshko <vitalyr@chromium.org>
eric@webkit.org [Fri, 13 Nov 2009 19:56:43 +0000 (19:56 +0000)]
2009-11-13  Vitaly Repeshko  <vitalyr@chromium.org>

        Reviewed by Dimitri Glazkov.

        [V8] Protect SVG animated properties from destruction in bindings.
        https://bugs.webkit.org/show_bug.cgi?id=31474

        See http://crbug.com/26719.

        Tested by LayoutTests/svg/custom/js-update-transform-addition.svg
        under Valgrind.

        Made sure we keep a reference to SVG properties while setting a
        context:
        * bindings/scripts/CodeGeneratorV8.pm:
        * bindings/v8/V8Proxy.h:
        (WebCore::V8Proxy::withSVGContext):

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

10 years ago Disable websocket tests on Windows, as the server cannot start on buildbot.
ap@apple.com [Fri, 13 Nov 2009 19:30:29 +0000 (19:30 +0000)]
    Disable websocket tests on Windows, as the server cannot start on buildbot.

        Filed <https://bugs.webkit.org/show_bug.cgi?id=31479> to investigate this issue.

        * platform/win/Skipped:

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

10 years ago[CAIRO] shadow support for Canvas and SVG.
bfulgham@webkit.org [Fri, 13 Nov 2009 19:21:24 +0000 (19:21 +0000)]
[CAIRO] shadow support for Canvas and SVG.
[https://bugs.webkit.org/show_bug.cgi?id=30960]

Reviewed by Alexey Proskuryakov.

Incorporate Benjamin Otte's recommendations to avoid
a buffer overrun, and small performance improvement.

* platform/graphics/cairo/GraphicsContextCairo.cpp:
(WebCore::copyContextProperties): Correctly size output
 storage for cairo_get_dash to avoid buffer overrun.
(WebCore::drawPathShadow): Prefer cairo_fill_extents
 to slower cairo_stroke_extents when not drawing shadows.

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

10 years agoRestoring parst of ChangeLog that were somehow deleted with my latest commit.
ap@apple.com [Fri, 13 Nov 2009 19:19:39 +0000 (19:19 +0000)]
Restoring parst of ChangeLog that were somehow deleted with my latest commit.

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

10 years agoDo not register Chromium's HTML5 DB VFS as the default
dumi@chromium.org [Fri, 13 Nov 2009 19:14:56 +0000 (19:14 +0000)]
Do not register Chromium's HTML5 DB VFS as the default
VFS. Otherwise, other sqlite DB users in the same process will
stop working.

Reviewed by Dimitri Glazkov.

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

* platform/sql/chromium/SQLiteFileSystemChromium.cpp:
(WebCore::SQLiteFileSystem::openDatabase):
* platform/sql/chromium/SQLiteFileSystemChromiumPosix.cpp:
(WebCore::SQLiteFileSystem::registerSQLiteVFS):
* platform/sql/chromium/SQLiteFileSystemChromiumWin.cpp:
(WebCore::SQLiteFileSystem::registerSQLiteVFS):

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

10 years ago Windows build fix
ap@apple.com [Fri, 13 Nov 2009 18:51:48 +0000 (18:51 +0000)]
    Windows build fix

        * platform/network/cf/SocketStreamHandleCFNet.cpp:
        (WebCore::SocketStreamHandle::SocketStreamHandle): Explicitly cast "-1" to CFOptionFlags,
        avoiding a sign mismatch warning.

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

10 years ago Release build fix.
ap@apple.com [Fri, 13 Nov 2009 18:47:40 +0000 (18:47 +0000)]
    Release build fix.

        * platform/network/cf/SocketStreamHandleCFNet.cpp:
        (WebCore::SocketStreamHandle::readStreamCallback):
        (WebCore::SocketStreamHandle::writeStreamCallback):
        Use ASSERT_UNUSED for unused stream parameter.

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

10 years ago Reviewed by Darin Adler.
ap@apple.com [Fri, 13 Nov 2009 18:14:59 +0000 (18:14 +0000)]
    Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=31441
        Implement SocketStreamHandleCFNet

        Existing WebSocket tests now pass on Mac. No proxy support yet.

        * platform/network/SocketStreamHandleClient.h:
        * platform/network/cf/SocketStreamHandle.h:
        (WebCore::SocketStreamHandle::shouldUseSSL):
        (WebCore::SocketStreamHandle::refAuthenticationClient):
        (WebCore::SocketStreamHandle::derefAuthenticationClient):
        (WebCore::SocketStreamHandle::):
        * platform/network/cf/SocketStreamHandleCFNet.cpp:
        (WebCore::SocketStreamHandle::SocketStreamHandle):
        (WebCore::SocketStreamHandle::chooseProxy):
        (WebCore::SocketStreamHandle::createStreams):
        (WebCore::SocketStreamHandle::copyCFStreamDescription):
        (WebCore::SocketStreamHandle::readStreamCallback):
        (WebCore::SocketStreamHandle::writeStreamCallback):
        (WebCore::SocketStreamHandle::~SocketStreamHandle):
        (WebCore::SocketStreamHandle::platformSend):
        (WebCore::SocketStreamHandle::platformClose):
        (WebCore::SocketStreamHandle::receivedCredential):
        (WebCore::SocketStreamHandle::receivedRequestToContinueWithoutCredential):
        (WebCore::SocketStreamHandle::receivedCancellation):

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

10 years agoFix worker-timeout.html layout test that fails in Chromium harness.
dimich@chromium.org [Fri, 13 Nov 2009 18:07:03 +0000 (18:07 +0000)]
Fix worker-timeout.html layout test that fails in Chromium harness.
https://bugs.webkit.org/show_bug.cgi?id=31452

Reviewed by Darin Adler.

* fast/workers/worker-timeout.html:
Stop logging timer messages at the same time as calling NotifyDone() because
in test harness Chromium uses for workers it does not capture the output immediately.

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

10 years agoBuild correction. No review.
bfulgham@webkit.org [Fri, 13 Nov 2009 17:51:15 +0000 (17:51 +0000)]
Build correction.  No review.

The WinCairo build requires ENABLE_FILTERS to work properly.

* win/tools/vsprops/WinCairo.vsprops:

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

10 years ago2009-11-13 Yaar Schnitman <yaar@chromium.org>
eric@webkit.org [Fri, 13 Nov 2009 17:50:11 +0000 (17:50 +0000)]
2009-11-13  Yaar Schnitman  <yaar@chromium.org>

        Reviewed by Dimitri Glazkov.

        Rolling Chromium dependencies to match Chromium revision 31834.

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

        * DEPS:

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

10 years ago2009-11-12 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Fri, 13 Nov 2009 17:26:27 +0000 (17:26 +0000)]
2009-11-12  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: preload status bar button glyphs
        in order to prevent them from flickering (take 2).

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

        * inspector/front-end/inspector.js:
        (preloadImages):

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

10 years ago2009-11-13 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Fri, 13 Nov 2009 17:10:48 +0000 (17:10 +0000)]
2009-11-13  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Adam Barth.

        Chromium: [REGRESSION] Crash while stopping on a breakpoint.
        Rolling back r50890.

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

        * bindings/v8/V8Proxy.cpp:
        (WebCore::V8Proxy::canAccessPrivate):

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

10 years agoBuild fix
aroben@apple.com [Fri, 13 Nov 2009 17:10:45 +0000 (17:10 +0000)]
Build fix

* Interfaces/WebKit.idl: Un-sort the #includes again. Apparently they
are order-dependent!

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

10 years agoTouch WebKit.idl to fix the Windows build
aroben@apple.com [Fri, 13 Nov 2009 17:05:38 +0000 (17:05 +0000)]
Touch WebKit.idl to fix the Windows build

* Interfaces/WebKit.idl: Sorted #includes.

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

10 years agoFinish replacing worldIDs with world objects
aroben@apple.com [Fri, 13 Nov 2009 16:58:58 +0000 (16:58 +0000)]
Finish replacing worldIDs with world objects

The only remaining use of worldIDs was in a method only used by DRT
for the isolated worlds tests.

Fixes <http://webkit.org/b/31414> Replace worldIDs with world objects

Reviewed by Mark Rowe.

WebKit/mac:

* WebView/WebFrame.mm:
(-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
* WebView/WebFramePrivate.h:
Renamed from
_stringByEvaluatingJavaScriptInIsolatedWorld:WithGobalObject:FromString:.
Now takes a WebScriptWorld instead of a worldID, so we don't need to
maintain a map of worldID -> world anymore.

WebKit/win:

* Interfaces/IWebFramePrivate.idl:
* WebFrame.cpp:
(WebFrame::stringByEvaluatingJavaScriptInScriptWorld):
* WebFrame.h:
Renamed from stringByEvaluatingJavaScriptInIsolatedWorld. Now takes an
IWebScriptWorld instead of a worldID, so we don't need to maintain a
map of worldID -> world anymore.

WebKitTools:

* DumpRenderTree/mac/LayoutTestControllerMac.mm:
(LayoutTestController::evaluateScriptInIsolatedWorld):
* DumpRenderTree/win/LayoutTestControllerWin.cpp:
(LayoutTestController::evaluateScriptInIsolatedWorld):
Updated for changes to WebFrame. Now holds the map of worldID -> world
at this level instead of making WebKit do it.

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

10 years ago[Qt] Ensure the DRT does not output anything until first test is run
vestbo@webkit.org [Fri, 13 Nov 2009 16:43:10 +0000 (16:43 +0000)]
[Qt] Ensure the DRT does not output anything until first test is run

Reviewed by Simon Hausmann.

* DumpRenderTree/qt/DumpRenderTree.cpp:
* DumpRenderTree/qt/DumpRenderTree.h:

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

10 years agoClear the undo stack in before each new test run.
kenneth@webkit.org [Fri, 13 Nov 2009 16:11:47 +0000 (16:11 +0000)]
Clear the undo stack in before each new test run.

Reviewed by Tor Arne Vestbø.

Locally fixes 3 incorrect layouts, 9 timeouts and 7 crashes.

* DumpRenderTree/qt/DumpRenderTree.cpp:
(WebCore::DumpRenderTree::resetToConsistentStateBeforeTesting):

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

10 years agoUpdate documentation for the Qt API
vestbo@webkit.org [Fri, 13 Nov 2009 15:06:34 +0000 (15:06 +0000)]
Update documentation for the Qt API

Reviewed by Simon Hausmann.

* Api/qgraphicswebview.cpp:
* Api/qwebelement.cpp:
* Api/qwebframe.cpp:
* Api/qwebsettings.cpp:
* Api/qwebview.cpp:

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

10 years ago2009-11-13 Dirk Schulze <krit@webkit.org>
krit@webkit.org [Fri, 13 Nov 2009 14:57:13 +0000 (14:57 +0000)]
2009-11-13  Dirk Schulze  <krit@webkit.org>

        Reviewed by Gustavo Noronha.

        [CAIRO] shadow support for Canvas and SVG
        [https://bugs.webkit.org/show_bug.cgi?id=30960]

        This is the fix of a regression, caused by the shadow patch
        from the bug above. Reinserted the save and restore calls
        that were accidently removed by the previous patch.

        * platform/graphics/cairo/GraphicsContextCairo.cpp:
        (WebCore::setPlatformFill):
        (WebCore::setPlatformStroke):

        Skip fast/canvas/canvas-shadow.html we need to enable filters
        on cairo to pass this test.

        * platform/gtk/Skipped:

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

10 years ago2009-11-13 Andras Becsi <becsi.andras@stud.u-szeged.hu>
eric@webkit.org [Fri, 13 Nov 2009 13:49:29 +0000 (13:49 +0000)]
2009-11-13  Andras Becsi  <becsi.andras@stud.u-szeged.hu>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Enable Page Cache if setMaximumPagesInCache needs it.
        This fixes https://bugs.webkit.org/show_bug.cgi?id=31266.

        * Api/qwebsettings.cpp:
        (QWebSettingsPrivate::apply):
        (QWebSettings::setMaximumPagesInCache):
2009-11-13  Andras Becsi  <becsi.andras@stud.u-szeged.hu>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Add WebKitUsesPageCachePreferenceKey overriding support to DRT's LayoutTestController.

        * DumpRenderTree/qt/DumpRenderTree.cpp:
        (WebCore::WebPage::resetSettings):
        * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
        (LayoutTestController::overridePreference):

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

10 years ago2009-11-13 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
eric@webkit.org [Fri, 13 Nov 2009 13:21:34 +0000 (13:21 +0000)]
2009-11-13  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Fix initial QWebView focus behavior.

        focusController->setFocused(true) was not always called.
        https://bugs.webkit.org/show_bug.cgi?id=31466

        * Api/qwebpage.cpp:
        (QWebPagePrivate::focusInEvent):

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

10 years agoUse correct install-path when running qdoc3
vestbo@webkit.org [Fri, 13 Nov 2009 13:12:35 +0000 (13:12 +0000)]
Use correct install-path when running qdoc3

Reviewed by Simon Hausmann.

* docs/docs.pri:

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

10 years ago2009-11-13 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Fri, 13 Nov 2009 10:45:16 +0000 (10:45 +0000)]
2009-11-13  Pavel Feldman  <pfeldman@chromium.org>

        Not reviewed. Reverting r50908 since it makes inspector tests
        time out.

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

        * inspector/front-end/inspector.js:

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

10 years agoSkip one new test.
kov@webkit.org [Fri, 13 Nov 2009 10:21:30 +0000 (10:21 +0000)]
Skip one new test.

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

10 years ago2009-11-13 Mikhail Naganov <mnaganov@chromium.org>
pfeldman@chromium.org [Fri, 13 Nov 2009 09:51:49 +0000 (09:51 +0000)]
2009-11-13  Mikhail Naganov  <mnaganov@chromium.org>

        Reviewed by Timothy Hatcher.

        Enable 'console.profile()' and 'console.profileEnd()'
        regardless of JAVASCRIPT_DEBUGGER.

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

        * WebCore.gypi:
        * bindings/js/JSConsoleCustom.cpp:
        (WebCore::JSConsole::profile):
        (WebCore::JSConsole::profileEnd):
        * bindings/v8/custom/V8ConsoleCustom.cpp: Added.
        (WebCore::CALLBACK_FUNC_DECL):
        * bindings/v8/custom/V8CustomBinding.h:
        * page/Console.idl:

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

10 years agoChromium build fix.
levin@chromium.org [Fri, 13 Nov 2009 09:34:01 +0000 (09:34 +0000)]
Chromium build fix.

Reviewed by NOBODY.

* bindings/v8/ScriptController.h:
(WebCore::ScriptController::evaluateInWorld): Add a dummy
 method which isn't called in chromium to make things compile.

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

10 years ago2009-11-13 Eric Seidel <eric@webkit.org>
eric@webkit.org [Fri, 13 Nov 2009 08:11:44 +0000 (08:11 +0000)]
2009-11-13  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Update committers.py based on svn records
        https://bugs.webkit.org/show_bug.cgi?id=31366

        This list was generated using validate-committer-lists from
        https://bugs.webkit.org/show_bug.cgi?id=30970
        and makes committers.py current for committers who have
        committed in the last 3 years.

        * Scripts/modules/committers.py:

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

10 years agoWhen exiting full-screen video, rather than resetting the system UI
mitz@apple.com [Fri, 13 Nov 2009 07:52:22 +0000 (07:52 +0000)]
When exiting full-screen video, rather than resetting the system UI
mode, restore it to what it was when full-screen mode was entered.

Reviewed by Adele Peterson.

* WebView/WebVideoFullscreenController.h: Cleaned up style, removed
unnecessary imports, and added _savedUIMode and _savedUIOptions ivars.
* WebView/WebVideoFullscreenController.mm:
(-[WebVideoFullscreenController delegate]): Cleaned up style.
(-[WebVideoFullscreenController setDelegate:]): Ditto.
(-[WebVideoFullscreenController windowDidExitFullscreen]): Restore the
system UI mode.
(-[WebVideoFullscreenController windowDidEnterFullscreen]): Save the
system UI mode.
* WebView/WebView.mm: Added now-necessary import.

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

10 years ago2009-11-12 Anantanarayanan G Iyengar <ananta@chromium.org>
eric@webkit.org [Fri, 13 Nov 2009 06:42:43 +0000 (06:42 +0000)]
2009-11-12  Anantanarayanan G Iyengar  <ananta@chromium.org>

        Reviewed by Adam Barth.

        The document-html and window-html tests don't use a setTimeout to notify that the
        test is completed. The layout test plugin now issues the notifyDone call via
        javascript.

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

        * plugins/document-open.html:
        * plugins/window-open.html:
2009-11-12  Anantanarayanan G Iyengar  <ananta@chromium.org>

        Reviewed by Adam Barth.

        The document-open.html test was flaky at times. The test invokes the layout test plugin
        which in its destroy stream handler opens a new document. This basically tears down the
        stream and the associated plugin instance, which causes a crash when the plugin stream
        dereferences an invalid m_client pointer which points to the PluginView instance which
        is invalid at this time. Fix is to set the m_client pointer to NULL in the stop function
        and check for the same.

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

        * plugins/PluginStream.cpp:
        (WebCore::PluginStream::stop):
        (WebCore::PluginStream::destroyStream):
2009-11-12  Anantanarayanan G Iyengar  <ananta@chromium.org>

        Reviewed by Adam Barth.

        The document-open.html test was flaky at times. The test invokes the layout test plugin
        which in its destroy stream handler opens a new document. This basically tears down the
        stream and the associated plugin instance. The pluginLog function in the layout test
        plugin attempts to retrieve the window script object on a torn down plugin instance
        which crashed consistently on windows in the debugger. The functions which issue
        these logs already have a valid window script object. We now have variants of the pluginLog
        function which take in a window script object with and without variable arguments.

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

        * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp:
        (pluginLogWithWindowObject):
        (pluginLogWithWindowObjectVariableArgs):
        (pluginLog):
        (notifyTestCompletion):
        (testDocumentOpen):
        (testWindowOpen):

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

10 years agoRenaming some parameters passed to DB-related methods to better
dumi@chromium.org [Fri, 13 Nov 2009 05:17:55 +0000 (05:17 +0000)]
Renaming some parameters passed to DB-related methods to better
indicate their purpose.

Reviewed by Dimitri Glazkov.

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

WebCore:

* platform/chromium/ChromiumBridge.h:

WebKit/chromium:

* public/WebKitClient.h:
* src/ChromiumBridge.cpp:
(WebCore::ChromiumBridge::databaseOpenFile):
(WebCore::ChromiumBridge::databaseDeleteFile):
(WebCore::ChromiumBridge::databaseGetFileAttributes):
(WebCore::ChromiumBridge::databaseGetFileSize):

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

10 years ago2009-11-12 Steve VanDeBogart <vandebo@chromium.org>
eric@webkit.org [Fri, 13 Nov 2009 05:08:00 +0000 (05:08 +0000)]
2009-11-12  Steve VanDeBogart  <vandebo@chromium.org>

        Reviewed by Adam Barth.

        Calculate the time offset only if we were able to parse
        the date string. This saves an IPC in Chromium for
        invalid date strings.
        https://bugs.webkit.org/show_bug.cgi?id=31416

        * wtf/DateMath.cpp:
        (WTF::parseDateFromNullTerminatedCharacters):
        (JSC::parseDateFromNullTerminatedCharacters):

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

10 years ago2009-11-12 Kinuko Yasuda <kinuko@google.com>
eric@webkit.org [Fri, 13 Nov 2009 04:59:25 +0000 (04:59 +0000)]
2009-11-12  Kinuko Yasuda  <kinuko@google.com>

        Reviewed by Adam Barth.

        Makes the output of fast/events/mouse-click-events.html independent
        of the window size.
        https://bugs.webkit.org/show_bug.cgi?id=31405

        * fast/events/mouse-click-events-expected.txt:
        * fast/events/script-tests/mouse-click-events.js:

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

10 years ago2009-11-12 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Fri, 13 Nov 2009 04:36:56 +0000 (04:36 +0000)]
2009-11-12  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Dan Bernstein.

        Transformed reflected elements are clipped inside element with opacity
        https://bugs.webkit.org/show_bug.cgi?id=30957

        transparencyClipBox() attemped to minimize the size of the transparency layer by mapping
        each clip rect into painting space before taking the unions. This, however, did not work
        correctly with combinations of reflections and transforms. Fixed by unioning the
        clipRect and mapping through transforms along the way.

        Also leave some #ifdeffed code in beginTransparencyLayers() that makes it easy to see
        where the transparency layers are.

        Test: fast/reflections/opacity-reflection-transform.html

        * rendering/RenderLayer.cpp:
        (WebCore::expandClipRectForDescendantsAndReflection):
        (WebCore::transparencyClipBox):
        (WebCore::RenderLayer::beginTransparencyLayers):

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

10 years ago2009-11-12 Adam Barth <abarth@webkit.org>
eric@webkit.org [Fri, 13 Nov 2009 03:05:42 +0000 (03:05 +0000)]
2009-11-12  Adam Barth  <abarth@webkit.org>

        Reviewed by Darin Fisher.

        Improve SecurityOrigin::toString comment
        https://bugs.webkit.org/show_bug.cgi?id=31041

        * page/SecurityOrigin.h:

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

10 years ago2009-11-12 Shinichiro Hamaji <hamaji@chromium.org>
hamaji@chromium.org [Fri, 13 Nov 2009 02:37:09 +0000 (02:37 +0000)]
2009-11-12  Shinichiro Hamaji  <hamaji@chromium.org>

        Reviewed by Darin Adler.

        externalRepresentation should take Frame as the argument
        https://bugs.webkit.org/show_bug.cgi?id=31393

        No new tests as this is just a refactoring.

        * WebCore.base.exp:
        * rendering/RenderTreeAsText.cpp:
        (WebCore::externalRepresentation):
        * rendering/RenderTreeAsText.h:
2009-11-12  Shinichiro Hamaji  <hamaji@chromium.org>

        Reviewed by Darin Adler.

        externalRepresentation should take Frame as the argument
        https://bugs.webkit.org/show_bug.cgi?id=31393

        No new tests as this is just a refactoring.

        * webkit/webkitwebframe.cpp:
        (webkit_web_frame_dump_render_tree):
2009-11-12  Shinichiro Hamaji  <hamaji@chromium.org>

        Reviewed by Darin Adler.

        externalRepresentation should take Frame as the argument
        https://bugs.webkit.org/show_bug.cgi?id=31393

        No new tests as this is just a refactoring.

        * Misc/WebCoreStatistics.mm:
        (-[WebFrame renderTreeAsExternalRepresentation]):
2009-11-12  Shinichiro Hamaji  <hamaji@chromium.org>

        Reviewed by Darin Adler.

        externalRepresentation should take Frame as the argument
        https://bugs.webkit.org/show_bug.cgi?id=31393

        No new tests as this is just a refactoring.

        * Api/qwebframe.cpp:
        (QWebFrame::renderTreeDump):
2009-11-12  Shinichiro Hamaji  <hamaji@chromium.org>

        Reviewed by Darin Adler.

        externalRepresentation should take Frame as the argument
        https://bugs.webkit.org/show_bug.cgi?id=31393

        No new tests as this is just a refactoring.

        * WebFrame.cpp:
        (WebFrame::renderTreeAsExternalRepresentation):

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

10 years ago[Android] The Android specific files in page/Android are out of date.
benm@google.com [Fri, 13 Nov 2009 02:22:41 +0000 (02:22 +0000)]
[Android] The Android specific files in page/Android are out of date.
https://bugs.webkit.org/show_bug.cgi?id=31437

Reviewed by Dimitri Glazkov.

No tests required.

* page/android/DragControllerAndroid.cpp:
(WebCore::DragController::dragOperation): Added.
(WebCore::DragController::cleanupAfterSystemDrag):
* page/android/EventHandlerAndroid.cpp:
(WebCore::EventHandler::accessKeyModifiers): Added.
* page/android/InspectorControllerAndroid.cpp: Removed.

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

10 years ago2009-11-12 Joanmarie Diggs <joanmarie.diggs@gmail.com>
eric@webkit.org [Fri, 13 Nov 2009 01:59:51 +0000 (01:59 +0000)]
2009-11-12  Joanmarie Diggs  <joanmarie.diggs@gmail.com>

        Reviewed by Gustavo Noronha Silva.

        https://bugs.webkit.org/show_bug.cgi?id=30997
        [Gtk] Implemment AtkDocument

        Added testing support for AtkDocument implementation.

        * accessibility/document-attributes.html: Added.
        * accessibility/document-attributes-expected.txt: Added.
        * platform/mac/Skipped:
        * platform/win/Skipped:
2009-11-12  Joanmarie Diggs  <joanmarie.diggs@gmail.com>

        Reviewed by Gustavo Noronha Silva.

        https://bugs.webkit.org/show_bug.cgi?id=30997
        [Gtk] Implemment AtkDocument

        Added testing support.

        * DumpRenderTree/AccessibilityUIElement.cpp:
        * DumpRenderTree/AccessibilityUIElement.h:
        (getDocumentEncodingCallback):
        (getDocumentURICallback):
        (AccessibilityUIElement::getJSClass):
        * DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp:
        * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
        * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
        (AccessibilityUIElement::documentEncoding):
        (AccessibilityUIElement::documentURI):

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

10 years agoWebCore: [CAIRO] shadow support for Canvas and SVG.
bfulgham@webkit.org [Fri, 13 Nov 2009 01:47:45 +0000 (01:47 +0000)]
WebCore: [CAIRO] shadow support for Canvas and SVG.
[https://bugs.webkit.org/show_bug.cgi?id=30960]

Reviewed by Simon Fraser.

Implement Canvas/SVG shadow support for Cairo.  This patch
uses the filter code from SVG Filters.  That means that it is
necessary to activate filters to see the shadows.

Test: fast/canvas/canvas-shadow.html

* GNUmakefile.am:
* WebCore.vcproj/WebCore.vcproj: Add new ImageBufferFilter files.
* platform/graphics/GraphicsContext.h:
* platform/graphics/cairo/GraphicsContextCairo.cpp:
(GraphicsContext::calculateShadowBufferDimensions): New helper routine.
(WebCore::setPlatformFill):
(WebCore::setPlatformStroke):
(WebCore::copyContextProperties):
(WebCore::drawPathShadow):
(WebCore::GraphicsContext::fillPath):
(WebCore::GraphicsContext::strokePath):
(WebCore::GraphicsContext::drawPath):
(WebCore::GraphicsContext::setPlatformShadow):
(WebCore::GraphicsContext::createPlatformShadow):
* platform/graphics/cairo/ImageCairo.cpp:
(WebCore::BitmapImage::draw): Add filter effect.
* platform/graphics/filters/Filter.h: Correct 'const' signatures.
* platform/graphics/filters/ImageBufferFilter.cpp: Added.
* platform/graphics/filters/ImageBufferFilter.h: Added.
* svg/graphics/filters/SVGFilter.cpp: Correct 'const' signatures.
* svg/graphics/filters/SVGFilter.h: Correct 'const' signatures.

LayoutTests: Some tests for canvas shadow.

Patch by Dirk Schulze <krit@webkit.org> on 2009-11-11
Reviewed by Simon Fraser.

* fast/canvas/canvas-shadow-expected.txt: Added.
* fast/canvas/canvas-shadow.html: Added.
* fast/canvas/script-tests/canvas-shadow.js: Added.

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

10 years agoAdd postTaskToMainThread to ScriptExecutionContext.
dimich@chromium.org [Fri, 13 Nov 2009 01:12:20 +0000 (01:12 +0000)]
Add postTaskToMainThread to ScriptExecutionContext.
Move the code to post task to the main thread into a new method on ScriptExecutionContext,
to use as a helper implementation of the virtual ScriptExecutionContext::postTask(Task) in
contexts that live on the main thread.
https://bugs.webkit.org/show_bug.cgi?id=31427

Reviewed by Alexey Proskuryakov.

No new tests - simply moving the code.

* dom/Document.cpp:
(WebCore::Document::postTask):
* dom/ScriptExecutionContext.cpp:
(WebCore::ScriptExecutionContextTaskTimer::ScriptExecutionContextTaskTimer):
(WebCore::ScriptExecutionContextTaskTimer::fired):
(WebCore::PerformTaskData::PerformTaskData):
(WebCore::PerformTaskData::performTask):
(WebCore::ScriptExecutionContext::postTaskToMainThread):
* dom/ScriptExecutionContext.h:

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

10 years ago2009-11-12 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Fri, 13 Nov 2009 00:44:23 +0000 (00:44 +0000)]
2009-11-12  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Darin Adler.

        Fix crash when removing compositing layers when GC is enabled
        https://bugs.webkit.org/show_bug.cgi?id=31429

        Workaround <rdar://problem/7390716> by special-casing the removal
        of all sublayers when GC is enabled.

        * platform/graphics/mac/GraphicsLayerCA.mm:
        (WebCore::safeSetSublayers):
        (WebCore::GraphicsLayerCA::updateSublayerList):
        (WebCore::GraphicsLayerCA::swapFromOrToTiledLayer):

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

10 years agoRubber-stamped by Steve Falkenburg.
bweinstein@apple.com [Fri, 13 Nov 2009 00:38:37 +0000 (00:38 +0000)]
Rubber-stamped by Steve Falkenburg.

Add failing tests to Skipped list.

* platform/win/Skipped:

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

10 years agoRollout r50896 until i can work out why it causes failures.
oliver@apple.com [Fri, 13 Nov 2009 00:28:29 +0000 (00:28 +0000)]
Rollout r50896 until i can work out why it causes failures.

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

10 years agoRemove LIBRARY directive from def file to fix Debug_All target.
sfalken@apple.com [Fri, 13 Nov 2009 00:23:47 +0000 (00:23 +0000)]
Remove LIBRARY directive from def file to fix Debug_All target.

Reviewed by Stephanie Lewis.

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:

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

10 years agoThe last of the V8 binding optimizations.
snej@chromium.org [Fri, 13 Nov 2009 00:17:26 +0000 (00:17 +0000)]
The last of the V8 binding optimizations.
- Replace string-valued element accessors with a shared getter/setter function.
- Change error handling flow of control to avoid extra branches and function calls.
https://bugs.webkit.org/show_bug.cgi?id=31443

Reviewed by Dimitri Glazkov.

* bindings/scripts/CodeGeneratorV8.pm:
* bindings/v8/V8Binding.cpp:
(WebCore::getElementStringAttr):  Body of string-valued Element getter function.
(WebCore::setElementStringAttr):  Body of string-valued Element setter function.
* bindings/v8/V8Binding.h:

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

10 years agoSkipping tests that fail intermitently.
kov@webkit.org [Thu, 12 Nov 2009 23:48:18 +0000 (23:48 +0000)]
Skipping tests that fail intermitently.

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

10 years agoAdd ChangeLog entry to the last commit
kov@webkit.org [Thu, 12 Nov 2009 23:46:05 +0000 (23:46 +0000)]
Add ChangeLog entry to the last commit

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

10 years agoRevert "Export fastMalloc, fastCalloc, fastRealloc and fastFree on GCC/Unix"
kov@webkit.org [Thu, 12 Nov 2009 23:39:23 +0000 (23:39 +0000)]
Revert "Export fastMalloc, fastCalloc, fastRealloc and fastFree on GCC/Unix"

This reverts commit d3f6ad156fc2ba883fdff85e7121bee9537cd021.

Conflicts:

JavaScriptCore/ChangeLog

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

10 years agoWebCore: Fix for <rdar://problem/7267951>
weinig@apple.com [Thu, 12 Nov 2009 23:21:04 +0000 (23:21 +0000)]
WebCore: Fix for <rdar://problem/7267951>
Canvas methods should reject uses of NaN and Infinity.

Reviewed by Oliver Hunt.

Test: fast/canvas/canvas-with-illegal-args.html

* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::scale):
(WebCore::CanvasRenderingContext2D::rotate):
(WebCore::CanvasRenderingContext2D::translate):
(WebCore::CanvasRenderingContext2D::transform):
(WebCore::CanvasRenderingContext2D::setTransform):

LayoutTests: Test for <rdar://problem/7267951>
Canvas methods should reject uses of NaN and Infinity.

Reviewed by Oliver Hunt.

* fast/canvas/canvas-with-illegal-args-expected.txt: Added.
* fast/canvas/canvas-with-illegal-args.html: Added.
* fast/canvas/script-tests/canvas-with-illegal-args.js: Added.

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

10 years ago2009-11-12 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Thu, 12 Nov 2009 23:07:25 +0000 (23:07 +0000)]
2009-11-12  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: profile timeline panel, fix obvious problems.

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

        * inspector/front-end/AbstractTimelinePanel.js:
        (WebInspector.AbstractTimelinePanel.prototype.updateGraphDividersIfNeeded):
        * inspector/front-end/TimelinePanel.js:
        (WebInspector.TimelinePanel.prototype._setWindowPosition):
        (WebInspector.TimelineCalculator):
        (WebInspector.TimelineCalculator.prototype.get minimumBoundary):
        (WebInspector.TimelineCalculator.prototype.get maximumBoundary):
        (WebInspector.TimelineCalculator.prototype.reset):
        (WebInspector.TimelineCalculator.prototype.updateBoundaries):
        (WebInspector.TimelineCalculator.prototype.formatValue):
        (WebInspector.TimelineGraph):
        (WebInspector.TimelineGraph.prototype.refresh):
        * inspector/front-end/utilities.js:
        (Element.prototype.hasStyleClass):

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