1. 30 Nov, 2011 30 commits
    • fpizlo@apple.com's avatar
      Resetting a put_by_id inline cache should preserve the "isDirect" bit · d13cf48b
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=73375
      
      Reviewed by Gavin Barraclough.
              
      For the replace case, we can find out if it was direct by looking at the
      slow call. For the transition case, we explicitly remember if it was
      direct.
      
      * bytecode/CodeBlock.cpp:
      (JSC::printStructureStubInfo):
      * bytecode/StructureStubInfo.cpp:
      (JSC::StructureStubInfo::deref):
      (JSC::StructureStubInfo::visitWeakReferences):
      * bytecode/StructureStubInfo.h:
      (JSC::isPutByIdAccess):
      (JSC::StructureStubInfo::initPutByIdTransition):
      * dfg/DFGByteCodeParser.cpp:
      (JSC::DFG::ByteCodeParser::parseBlock):
      * dfg/DFGRepatch.cpp:
      (JSC::DFG::tryCachePutByID):
      * jit/JIT.h:
      * jit/JITPropertyAccess.cpp:
      (JSC::JIT::resetPatchPutById):
      (JSC::JIT::isDirectPutById):
      * jit/JITPropertyAccess32_64.cpp:
      (JSC::JIT::resetPatchPutById):
      * jit/JITStubs.cpp:
      (JSC::JITThunks::tryCachePutByID):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101457 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d13cf48b
    • commit-queue@webkit.org's avatar
      [Qt][WK2] Implement permission API for Qt port · 0fe79525
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=59200
      
      Permission API hookup for Geolocation, it allows to receive in WebView
      a signal when a permission request is done (e.g. to grant permission
      for accessing geolocation information) and set it accordingly.
      
      Patch by Adenilson Cavalcanti <adenilson.silva@openbossa.org> on 2011-11-30
      Reviewed by Simon Hausmann.
      
      .:
      
      * Source/qtwebkit-export.map:
      
      Source/WebKit/qt:
      
      * declarative/plugin.cpp:
      (WebKitQmlPlugin::registerTypes):
      
      Source/WebKit2:
      
      * Target.pri:
      * UIProcess/API/qt/qquickwebview_p.h:
      * UIProcess/API/qt/qwebpermissionrequest.cpp: Added.
      (QWebPermissionRequestPrivate::QWebPermissionRequestPrivate):
      (QWebPermissionRequestPrivate::~QWebPermissionRequestPrivate):
      (QWebPermissionRequest::create):
      (QWebPermissionRequest::QWebPermissionRequest):
      (QWebPermissionRequest::~QWebPermissionRequest):
      (QWebPermissionRequest::type):
      (QWebPermissionRequest::setAllow):
      (QWebPermissionRequest::allow):
      (QWebPermissionRequest::scheme):
      (QWebPermissionRequest::host):
      (QWebPermissionRequest::port):
      * UIProcess/API/qt/qwebpermissionrequest_p.h: Added.
      * UIProcess/API/qt/tests/qmltests/WebView/tst_geopermission.qml: Added.
      * UIProcess/API/qt/tests/qmltests/common/geolocation.html: Added.
      * UIProcess/API/qt/tests/qmltests/qmltests.pro:
      * UIProcess/qt/QtWebPageUIClient.cpp:
      (QtWebPageUIClient::QtWebPageUIClient):
      (QtWebPageUIClient::permissionRequest):
      (QtWebPageUIClient::policyForGeolocationPermissionRequest):
      * UIProcess/qt/QtWebPageUIClient.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101456 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0fe79525
    • hayato@chromium.org's avatar
      Skip writing the result of diff_image since non-chromium ports don't implement diff_image. · b3ef89ee
      hayato@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=73381
      
      Reviewed by Ryosuke Niwa.
      
      This is a quick fix for the breakage of tests on non-chromium port.
      We should implement diff_image later on non-chromium ports.
      
      * Scripts/webkitpy/layout_tests/controllers/test_result_writer.py:
      (write_test_result):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101455 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b3ef89ee
    • ap@apple.com's avatar
      -[WKView attributedSubstringForProposedRange:actualRange:] doesn't update... · ff87b5e5
      ap@apple.com authored
      -[WKView attributedSubstringForProposedRange:actualRange:] doesn't update actualRange when it's out of bounds
      https://bugs.webkit.org/show_bug.cgi?id=67813
      
      Reviewed by Simon Fraser.
      
      * UIProcess/API/mac/WKView.mm:
      (-[WKView attributedSubstringForProposedRange:actualRange:]): Update actualRange to match
      result length.
      (-[WKView firstRectForCharacterRange:actualRange:]): Added a FIXME. This is harder to
      implement, and it's unclear if clients care at this time.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101454 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ff87b5e5
    • haraken@chromium.org's avatar
      StorageEvent.key should not be nullable · 845d442f
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=73125
      
      Reviewed by Adam Barth.
      
      Currently, document.createEvent('StorageEvent').key is evaluated as null.
      However, the spec (http://www.whatwg.org/specs/web-apps/current-work/#storageevent)
      says that StorageEvent.key is not a nullable type, and thus
      document.createEvent('StorageEvent').key should be '' (an empty string).
      
      Source/WebCore:
      
      * storage/StorageEvent.idl: Removed a [ConvertNullStringTo=Null] IDL from StorageEvent.key.
      
      LayoutTests:
      
      * storage/domstorage/events/basic-body-attribute-expected.txt: Updated the test result as described above.
      * storage/domstorage/events/basic-expected.txt: Ditto.
      * storage/domstorage/events/basic-setattribute-expected.txt: Ditto.
      * storage/domstorage/events/script-tests/basic-body-attribute.js: Ditto.
      (step6):
      * storage/domstorage/events/script-tests/basic-setattribute.js: Ditto.
      (step6):
      * storage/domstorage/events/script-tests/basic.js: Ditto.
      (step6):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101453 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      845d442f
    • commit-queue@webkit.org's avatar
      Fix for fill color not being applied inside visited links · dc569922
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=70434
      
      Patch by Philip Rogers <pdr@google.com> on 2011-11-29
      Reviewed by Antti Koivisto.
      
      Source/WebCore:
      
      Test: svg/custom/visited-link-color.svg
      
      * rendering/style/SVGRenderStyle.h:
      (WebCore::SVGRenderStyle::setFillPaint):
      (WebCore::SVGRenderStyle::setStrokePaint):
      
      LayoutTests:
      
      * svg/custom/visited-link-color-expected.png: Added.
      * svg/custom/visited-link-color-expected.txt: Added.
      * svg/custom/visited-link-color.svg: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101452 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc569922
    • ossy@webkit.org's avatar
      [NRWT] Fix --platform=qt-5.0 --new-baseline combo · 7fcb0d2c
      ossy@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=72489
      
      Patch by Balazs Ankes <Ankes.Balazs@stud.u-szeged.hu> on 2011-11-29
      Reviewed by Eric Seidel.
      
      Before the this fix always added "qt" option for the option list
      * Scripts/run-webkit-tests:
      * Scripts/webkitpy/layout_tests/port/qt.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101451 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7fcb0d2c
    • weinig@apple.com's avatar
      Remove RetainPtr::releaseRef · 7c3fed16
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=73396
      
      Reviewed by Dan Bernstein.
      
      ../JavaScriptCore: 
      
      * wtf/RetainPtr.h:
      Be gone releaseRef! Long live leakRef!
      
      ../WebKit2: 
      
      * Platform/mac/ModuleMac.mm:
      (WebKit::Module::unload):
      Replace the final use of RetainPtr::releaseRef() with RetainPtr::leakRef(),
      its sexy replacement.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101450 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7c3fed16
    • hayato@chromium.org's avatar
      Webkit gardening: chromium rebaseline for svg tests. · baf70a2b
      hayato@chromium.org authored
      Unreviewed.
      
      * platform/chromium-cg-mac-leopard/fast/backgrounds/size/contain-and-cover-expected.png:
      * platform/chromium-cg-mac-leopard/fast/backgrounds/size/contain-and-cover-zoomed-expected.png:
      * platform/chromium-cg-mac-leopard/svg/W3C-SVG-1.1-SE/text-intro-02-b-expected.png:
      * platform/chromium-cg-mac-leopard/svg/W3C-SVG-1.1/animate-elem-80-t-expected.txt: Added.
      * platform/chromium-cg-mac-leopard/svg/W3C-SVG-1.1/filters-comptran-01-b-expected.png:
      * platform/chromium-cg-mac-leopard/svg/custom/absolute-sized-content-with-resources-expected.png:
      * platform/chromium-cg-mac-leopard/svg/custom/animate-path-discrete-expected.png:
      * platform/chromium-cg-mac-leopard/svg/foreignObject/text-tref-02-b-expected.txt: Removed.
      * platform/chromium-cg-mac-leopard/svg/text/bidi-text-anchor-direction-expected.png:
      * platform/chromium-cg-mac-leopard/svg/zoom/page/zoom-mask-with-percentages-expected.png:
      * platform/chromium-cg-mac-snowleopard/fast/backgrounds/size/contain-and-cover-expected.png:
      * platform/chromium-cg-mac-snowleopard/fast/backgrounds/size/contain-and-cover-zoomed-expected.png:
      * platform/chromium-cg-mac-snowleopard/svg/W3C-SVG-1.1-SE/text-intro-09-b-expected.png:
      * platform/chromium-cg-mac-snowleopard/svg/W3C-SVG-1.1/animate-elem-80-t-expected.txt: Added.
      * platform/chromium-cg-mac-snowleopard/svg/W3C-SVG-1.1/coords-viewattr-01-b-expected.png:
      * platform/chromium-cg-mac-snowleopard/svg/W3C-SVG-1.1/filters-comptran-01-b-expected.png:
      * platform/chromium-cg-mac-snowleopard/svg/css/composite-shadow-example-expected.txt: Removed.
      * platform/chromium-cg-mac-snowleopard/svg/css/composite-shadow-with-opacity-expected.txt: Removed.
      * platform/chromium-cg-mac-snowleopard/svg/custom/absolute-sized-content-with-resources-expected.png: Added.
      * platform/chromium-cg-mac-snowleopard/svg/custom/linking-uri-01-b-expected.png:
      * platform/chromium-cg-mac-snowleopard/svg/custom/use-detach-expected.png:
      * platform/chromium-cg-mac-snowleopard/svg/foreignObject/text-tref-02-b-expected.png: Renamed from LayoutTests/platform/chromium-cg-mac/svg/foreignObject/text-tref-02-b-expected.png.
      * platform/chromium-cg-mac-snowleopard/svg/zoom/page/zoom-mask-with-percentages-expected.png:
      * platform/chromium-linux-x86/svg/W3C-SVG-1.1-SE/text-intro-02-b-expected.txt: Added.
      * platform/chromium-linux-x86/svg/text/bidi-text-anchor-direction-expected.txt: Added.
      * platform/chromium-linux/svg/W3C-SVG-1.1-SE/text-intro-02-b-expected.txt: Added.
      * platform/chromium-linux/svg/W3C-SVG-1.1/fonts-elem-04-b-expected.png:
      * platform/chromium-linux/svg/W3C-SVG-1.1/fonts-elem-04-b-expected.txt: Copied from LayoutTests/platform/chromium-win/svg/W3C-SVG-1.1/fonts-elem-04-b-expected.txt.
      * platform/chromium-linux/svg/css/composite-shadow-example-expected.txt: Removed.
      * platform/chromium-linux/svg/css/composite-shadow-with-opacity-expected.txt: Removed.
      * platform/chromium-linux/svg/custom/js-late-gradient-creation-expected.png:
      * platform/chromium-linux/svg/hixie/perf/007-expected.png:
      * platform/chromium-linux/svg/text/bidi-text-anchor-direction-expected.txt: Added.
      * platform/chromium-linux/svg/transforms/text-with-pattern-with-svg-transform-expected.png:
      * platform/chromium-mac-leopard/svg/W3C-SVG-1.1-SE/text-intro-02-b-expected.png:
      * platform/chromium-mac-leopard/svg/W3C-SVG-1.1-SE/text-intro-09-b-expected.png: Added.
      * platform/chromium-mac-leopard/svg/W3C-SVG-1.1/fonts-elem-04-b-expected.png: Added.
      * platform/chromium-mac-leopard/svg/W3C-SVG-1.1/fonts-elem-04-b-expected.txt: Copied from LayoutTests/platform/chromium-win/svg/W3C-SVG-1.1/fonts-elem-04-b-expected.txt.
      * platform/chromium-mac-leopard/svg/css/composite-shadow-example-expected.txt: Removed.
      * platform/chromium-mac-leopard/svg/css/composite-shadow-with-opacity-expected.txt: Removed.
      * platform/chromium-mac-leopard/svg/custom/js-late-gradient-creation-expected.png: Added.
      * platform/chromium-mac-leopard/svg/text/bidi-text-anchor-direction-expected.png:
      * platform/chromium-mac-snowleopard/svg/W3C-SVG-1.1-SE/text-intro-09-b-expected.png:
      * platform/chromium-mac-snowleopard/svg/custom/js-late-gradient-creation-expected.png:
      * platform/chromium-mac-snowleopard/svg/foreignObject/text-tref-02-b-expected.png: Renamed from LayoutTests/platform/chromium-mac/svg/foreignObject/text-tref-02-b-expected.png.
      * platform/chromium-mac/svg/css/composite-shadow-example-expected.txt: Removed.
      * platform/chromium-mac/svg/css/composite-shadow-with-opacity-expected.txt: Removed.
      * platform/chromium-win-vista/svg/W3C-SVG-1.1-SE/text-intro-02-b-expected.txt: Added.
      * platform/chromium-win-vista/svg/css/composite-shadow-example-expected.txt: Removed.
      * platform/chromium-win-vista/svg/css/composite-shadow-with-opacity-expected.txt: Removed.
      * platform/chromium-win-vista/svg/text/bidi-text-anchor-direction-expected.txt: Added.
      * platform/chromium-win-xp/svg/W3C-SVG-1.1-SE/text-intro-02-b-expected.txt: Added.
      * platform/chromium-win-xp/svg/css/composite-shadow-example-expected.txt: Removed.
      * platform/chromium-win-xp/svg/css/composite-shadow-with-opacity-expected.txt: Removed.
      * platform/chromium-win-xp/svg/text/bidi-text-anchor-direction-expected.txt: Added.
      * platform/chromium-win/svg/W3C-SVG-1.1/fonts-elem-04-b-expected.png:
      * platform/chromium-win/svg/W3C-SVG-1.1/fonts-elem-04-b-expected.txt:
      * platform/chromium-win/svg/css/composite-shadow-example-expected.txt: Removed.
      * platform/chromium-win/svg/css/composite-shadow-with-opacity-expected.txt: Removed.
      * platform/chromium-win/svg/hixie/perf/007-expected.png:
      * platform/chromium/svg/css/composite-shadow-example-expected.txt: Renamed from LayoutTests/platform/chromium-cg-mac/svg/css/composite-shadow-example-expected.txt.
      * platform/chromium/svg/css/composite-shadow-with-opacity-expected.txt: Renamed from LayoutTests/platform/chromium-cg-mac/svg/css/composite-shadow-with-opacity-expected.txt.
      * platform/mac/svg/foreignObject/text-tref-02-b-expected.txt: Removed.
      * platform/win/svg/css/composite-shadow-example-expected.txt: Removed.
      * platform/win/svg/css/composite-shadow-with-opacity-expected.txt: Removed.
      * svg/foreignObject/text-tref-02-b-expected.txt: Renamed from LayoutTests/platform/gtk/svg/foreignObject/text-tref-02-b-expected.txt.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101449 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      baf70a2b
    • weinig@apple.com's avatar
      Add move semantics to RetainPtr · 788a4046
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=73393
      
      Reviewed by Anders Carlsson.
      
      * wtf/RetainPtr.h:
      (WTF::RetainPtr::RetainPtr):
      Add a move constructor and move enabled assignment operators
      to RetainPtr if the compiler being used supports rvalue
      references. If the compiler does not support it, we fallback
      to the copy semantics we have always had.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101448 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      788a4046
    • yuqiang.xian@intel.com's avatar
      DFG local CSE may cause incorrect reference counting for a node · bc940efc
      yuqiang.xian@intel.com authored
      https://bugs.webkit.org/show_bug.cgi?id=73390
      
      Reviewed by Filip Pizlo.
      
      When performing a node substitution, the ref count of the replaced
      child will be increased, no matter whether the user node is skipped in
      code generation or not. This will cause the reference count of the
      replaced child never get the chance to become zero and so the
      registers occupied by it cannot be reused simply without spilling, if
      it's used by a "skipped" node.
      This is a 1% gain on V8 benchmark, tested on IA32 Linux.
      
      * dfg/DFGPropagator.cpp:
      (JSC::DFG::Propagator::performSubstitution):
      (JSC::DFG::Propagator::performNodeCSE):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101447 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bc940efc
    • levin@chromium.org's avatar
      Add a way to revert a variable to its previous value after leaving a scope. · 7cfddbd1
      levin@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=73371
      
      Reviewed by Adam Barth.
      
      Source/JavaScriptCore:
      
      In case anyone from Chromium sees this, it is nearly identical to AutoReset
      but if the same name were used, it causes unnecessary ambiguity.
      
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * wtf/TemporarilyChange.h: Added.
      (WTF::TemporarilyChange::TemporarilyChange):
      (WTF::TemporarilyChange::~TemporarilyChange):
      
      Source/JavaScriptGlue:
      
      * ForwardingHeaders/wtf/TemporarilyChange.h: Added.
      
      Source/WebCore:
      
      * ForwardingHeaders/wtf/TemporarilyChange.h: Added.
      
      Source/WebKit/mac:
      
      * ForwardingHeaders/wtf/TemporarilyChange.h: Added.
      
      Tools:
      
      * DumpRenderTree/ForwardingHeaders/wtf/TemporarilyChange.h: Added.
      * TestWebKitAPI/TestWebKitAPI.gypi: Added test file to the build.
      * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Ditto.
      * TestWebKitAPI/win/TestWebKitAPI.vcproj: Ditto.
      * TestWebKitAPI/Tests/WTF/TemporarilyChange.cpp: Added.
      (TestWebKitAPI::TEST): Added a test for TemporarilyChange.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101446 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7cfddbd1
    • haraken@chromium.org's avatar
      Implement [Supplemental] IDL and support it in run-bindings-tests · 8d895aea
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=73162
      
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      - Overview:
          - Implement the [Supplemental] IDL in resolve-supplemental.pl and generate-bindings.pl.
          - Support the [Supplemental] IDL in run-bindings-tests.
          - Add TestSupplemental.idl as a binding test and confirm that it works.
      
      - The spec for the [Supplemental] IDL: http://dev.w3.org/2006/webapi/WebIDL/#dfn-supplemental-interface
      
      - This patch affects run-bindings-tests results only and does not affect any real builds
      since no [Supplemental] IDL has been written in real WebCore IDL files for now.
      
      - This patch makes a change on CodeGenerator*.pm to support the [Supplemental] IDL
      for (custom) getters and setters.
      
      - Added perl scripts implement the [Supplemental] IDL as follows:
      
          Previous build flow:
              foreach $idl (all IDL files) {
                  generate-bindings.pl depends on $idl;
                  generate-bindings.pl reads $idl;
                  generate-bindings.pl generates .h and .cpp files for $idl;
              }
      
          New build flow (See the discussions in bug 72138 for more details):
              resolve-supplemental.pl depends on all IDL files;
              resolve-supplemental.pl reads all IDL files;
              resolve-supplemental.pl resolves the dependency of [Supplemental=XXXX];
              resolve-supplemental.pl outputs supplemental_dependency.tmp;
              foreach $idl (all IDL files) {
                  generate-bindings.pl depends on $idl and supplemental_dependency.tmp;
                  generate-bindings.pl reads $idl;
                  generate-bindings.pl reads supplemental_dependency.tmp;
                  generate-bindings.pl generates .h and .cpp files for $idl, including all attributes in IDL files which are implementing $idl;
              }
      
      Tests: bindings/scripts/test/TestSupplemental.idl
      
      * bindings/scripts/generate-bindings.pl: The input is an IDL file |x| and the dependency file. generate-bindings.pl generates .h and .cpp files for the IDL file |x|, including all the attributes in the IDL files which are implementing the IDL file |x|. generate-bindings.pl addes the [ImplementedBy] IDL to the attributes with the [Supplemental] IDL in order to indicate what IDL is implementing the attributes.
      * bindings/scripts/resolve-supplemental.pl: Added. resolve-supplemental.pl reads all IDL files, resolves [Supplemental=XXX] dependencies, and then outputs the dependency file. See the comment in resolve-supplemental.pl for the format of the dependency file.
      
      * bindings/scripts/CodeGenerator.pm:
      (GenerateConditionalStringFromAttributeValue): Avoids duplicated conditions.
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateHeader): If an attribute is [ImplementedBy] another IDL, then we omit the declaration of the custom getter and setter.
      (GenerateImplementation): If an attribute is [ImplementedBy] another IDL, then we call back the (custom) getter and setter of the IDL.
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateHeader): If an attribute is [ImplementedBy] another IDL, then we omit the declaration of the custom getter and setter.
      (GenerateNormalAttrGetter): If an attribute is [ImplementedBy] another IDL, then we call back the getter of the IDL.
      (GenerateNormalAttrSetter): If an attribute is [ImplementedBy] another IDL, then we call back the setter of the IDL.
      (GenerateSingleBatchedAttribute): If an attribute is [ImplementedBy] another IDL, then we call back the custom getter or setter of the IDL.
      * bindings/scripts/CodeGeneratorCPP.pm:
      (GenerateImplementation): If an attribute is [ImplementedBy] another IDL, then we call back the getter and setter of the IDL. CodeGeneratorCPP.pm does not support a custom getter and setter.
      * bindings/scripts/CodeGeneratorGObject.pm:
      (GenerateProperty): Ditto.
      * bindings/scripts/CodeGeneratorObjC.pm:
      (GenerateImplementation): Ditto.
      
      * bindings/scripts/test/TestSupplemental.idl: Added. A test case for the [Supplemental] IDL.
      * bindings/scripts/test/CPP/WebDOMTestInterface.cpp: Updated a run-bindings-tests result.
      (WebDOMTestInterface::str1):
      (WebDOMTestInterface::str2):
      (WebDOMTestInterface::setStr2):
      * bindings/scripts/test/CPP/WebDOMTestInterface.h: Ditto.
      * bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp: Ditto.
      (webkit_dom_test_interface_get_str1):
      (webkit_dom_test_interface_get_str2):
      (webkit_dom_test_interface_set_str2):
      (webkit_dom_test_interface_set_property):
      (webkit_dom_test_interface_get_property):
      (webkit_dom_test_interface_class_init):
      * bindings/scripts/test/GObject/WebKitDOMTestInterface.h: Ditto.
      * bindings/scripts/test/JS/JSTestInterface.cpp: Ditto.
      (WebCore::jsTestInterfaceStr1):
      (WebCore::jsTestInterfaceStr2):
      (WebCore::jsTestInterfaceStr3):
      (WebCore::JSTestInterface::put):
      (WebCore::setJSTestInterfaceStr2):
      (WebCore::setJSTestInterfaceStr3):
      * bindings/scripts/test/JS/JSTestInterface.h: Ditto.
      * bindings/scripts/test/ObjC/DOMTestInterface.h: Ditto.
      * bindings/scripts/test/ObjC/DOMTestInterface.mm: Ditto.
      (-[DOMTestInterface str1]):
      (-[DOMTestInterface str2]):
      (-[DOMTestInterface setStr2:]):
      (-[DOMTestInterface str3]):
      (-[DOMTestInterface setStr3:]):
      * bindings/scripts/test/V8/V8TestInterface.cpp: Ditto.
      (WebCore::TestInterfaceInternal::str1AttrGetter):
      (WebCore::TestInterfaceInternal::str2AttrGetter):
      (WebCore::TestInterfaceInternal::str2AttrSetter):
      (WebCore::ConfigureV8TestInterfaceTemplate):
      
      Tools:
      
      run-bindings-tests supports the [Supplemental] IDL in the following way.
          (1) It creates a file |x| listing all IDL files.
          (2) It generates a supplemental dependency file |y| using resolve-supplemental.pl and |x|.
          (3) For each IDL file |z|, it runs generate-bindings.pl with |y|.
              Then, generate-bindings.pl generates .h and .cpp files for the IDL file |z|,
              including all attributes in IDL files that are supplementing the IDL file |z|.
      
      * Scripts/run-bindings-tests:
      (generate_from_idl):
      (generate_supplemental_dependency):
      (detect_changes):
      (run_tests):
      (main):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101445 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8d895aea
    • leo.yang@torchmobile.com.cn's avatar
      Upstream platform/network/blackberry/ProxyServerBlackBerry.cpp · a0d34181
      leo.yang@torchmobile.com.cn authored
      https://bugs.webkit.org/show_bug.cgi?id=73288
      
      Reviewed by Antonio Gomes.
      
      Initial upstream, can't be built yet, no new tests.
      
      * platform/network/blackberry/ProxyServerBlackBerry.cpp: Added.
      (WebCore::proxyServersForURL):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101444 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a0d34181
    • weinig@apple.com's avatar
      Add COMPILER_SUPPORTS macro to allow for compiler feature testing · 46c15759
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=73386
      
      Reviewed by Anders Carlsson.
      
      * wtf/Compiler.h:
      Add COMPILER_SUPPORTS and #defines for C++11 variadic templates and
      rvalue references for Clang.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      46c15759
    • nduca@chromium.org's avatar
      Unreviewed. Fix clang build by using raw pointers instead of static OwnPtrs · c0a1a32e
      nduca@chromium.org authored
      for WebCompositor managment.
      
      * src/WebCompositorImpl.cpp:
      (WebKit::WebCompositorImpl::initialize):
      (WebKit::WebCompositorImpl::shutdown):
      * src/WebCompositorImpl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101442 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c0a1a32e
    • jberlin@webkit.org's avatar
      WKKeyValueStorageManagerGetKeyValueStorageOrigins may not report the correct list of origins · e36514e0
      jberlin@webkit.org authored
      the first time it is called.
      https://bugs.webkit.org/show_bug.cgi?id=73374 (<rdar://problem/10196057>)
      
      Reviewed by Brady Eidson.
      
      Source/WebCore:
      
      Add a callback for when the Storage Tracker is done loading the list of origins with Local
      Storage.
      
      * storage/StorageTracker.cpp:
      (WebCore::StorageTracker::StorageTracker):
      Keep track of whether the import from disk has been completed.
      (WebCore::StorageTracker::notifyFinishedImportingOriginIdentifiersOnMainThread):
      (WebCore::StorageTracker::finishedImportingOriginIdentifiers):
      Set m_finishedImportingOriginIdentifiers to true and tell the client.
      (WebCore::StorageTracker::syncImportOriginIdentifiers):
      When finished, notify the shared StorageTracker on the main thread.
      * storage/StorageTracker.h:
      (WebCore::StorageTracker::originsLoaded):
      
      * storage/StorageTrackerClient.h:
      Add didFinishLoadingOrigins.
      
      Source/WebKit/mac:
      
      * Storage/WebStorageTrackerClient.h:
      * Storage/WebStorageTrackerClient.mm:
      (WebStorageTrackerClient::didFinishLoadingOrigins):
      
      Source/WebKit2:
      
      Queue any requests for the origins that have Local Storage until the StorageTracker is done
      loading the list of those origins from disk.
      
      * WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp:
      (WebKit::keyValueStorageOriginIdentifiers):
      Refactored here from getKeyValueStorageOrigins so it can be used by didFinishLoadingOrigins.
      (WebKit::dispatchDidGetKeyValueStorageOrigins):
      Ditto.
      (WebKit::WebKeyValueStorageManager::getKeyValueStorageOrigins):
      If the StorageTracker is not done loading the list of origins from disk, queue up the
      request to be handled later.
      (WebKit::WebKeyValueStorageManager::didFinishLoadingOrigins):
      Dispatch the results for any requests that were make before the StorageTracker was done
      loading the list of origins from disk.
      (WebKit::WebKeyValueStorageManager::dispatchDidModifyOrigin):
      * WebProcess/KeyValueStorage/WebKeyValueStorageManager.h:
      
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::initializeWebProcess):
      Set the WebKeyValueStorageManager as the StorageTrackerClient.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101441 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e36514e0
    • nduca@chromium.org's avatar
      [chromium] Enable threaded compositing via CCThreadProxy::hasThread only · 2b92e1fd
      nduca@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=70838
      
      Reviewed by James Robinson.
      
      Source/WebCore:
      
      * platform/graphics/chromium/LayerRendererChromium.cpp:
      (WebCore::LayerRendererChromium::initialize):
      * platform/graphics/chromium/WebGLLayerChromium.cpp:
      (WebCore::WebGLLayerChromium::layerRendererContext):
      * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
      (WebCore::CCHeadsUpDisplay::enabled):
      * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
      (WebCore::CCLayerTreeHost::initialize):
      (WebCore::CCLayerTreeHost::context):
      (WebCore::CCLayerTreeHost::setNeedsAnimate):
      (WebCore::CCLayerTreeHost::setNeedsCommit):
      (WebCore::CCLayerTreeHost::setNeedsRedraw):
      (WebCore::CCLayerTreeHost::composite):
      * platform/graphics/chromium/cc/CCLayerTreeHost.h:
      (WebCore::CCSettings::CCSettings):
      * platform/graphics/chromium/cc/CCProxy.cpp:
      (WebCore::CCProxy::isMainThread):
      (WebCore::CCProxy::isImplThread):
      (WebCore::CCProxy::setMainThreadIsImplThread):
      * platform/graphics/chromium/cc/CCProxy.h:
      * platform/graphics/chromium/cc/CCSingleThreadProxy.h:
      (WebCore::DebugScopedSetImplThread::DebugScopedSetImplThread):
      (WebCore::DebugScopedSetImplThread::~DebugScopedSetImplThread):
      
      Source/WebKit/chromium:
      
      * public/WebCompositor.h:
      * public/WebLayerTreeView.h:
      (WebKit::WebLayerTreeView::Settings::Settings):
      * public/WebSettings.h:
      * src/WebCompositorImpl.cpp:
      (WebKit::WebCompositor::initialize):
      (WebKit::WebCompositor::shutdown):
      (WebKit::WebCompositor::fromIdentifier):
      * src/WebKit.cpp:
      (WebKit::initializeWithoutV8):
      * src/WebLayerTreeView.cpp:
      (WebKit::WebLayerTreeView::Settings::operator CCSettings):
      (WebKit::WebLayerTreeView::composite):
      * src/WebLayerTreeViewImpl.cpp:
      (WebKit::WebLayerTreeViewImpl::createLayerTreeHostContext3D):
      * src/WebSettingsImpl.cpp:
      (WebKit::WebSettingsImpl::WebSettingsImpl):
      * src/WebSettingsImpl.h:
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::animate):
      (WebKit::WebViewImpl::composite):
      (WebKit::WebViewImpl::scheduleAnimation):
      (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
      (WebKit::WebViewImpl::createLayerTreeHostContext3D):
      (WebKit::WebViewImpl::scheduleComposite):
      (WebKit::WebViewImpl::graphicsContext3D):
      * tests/CCLayerTreeHostTest.cpp:
      (WTF::CCLayerTreeHostTest::CCLayerTreeHostTest):
      (WTF::CCLayerTreeHostTest::runTest):
      
      Tools:
      
      * DumpRenderTree/chromium/TestShell.cpp:
      (TestShell::resetWebSettings):
      * DumpRenderTree/chromium/TestShell.h:
      (TestShell::threadedCompositingEnabled):
      * DumpRenderTree/chromium/WebPreferences.cpp:
      (WebPreferences::reset):
      (WebPreferences::applyTo):
      * DumpRenderTree/chromium/WebPreferences.h:
      * DumpRenderTree/chromium/WebViewHost.cpp:
      (WebViewHost::WebViewHost):
      (WebViewHost::~WebViewHost):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101440 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2b92e1fd
    • simon.fraser@apple.com's avatar
      Update Mac results after r101342. · 9a3f0d40
      simon.fraser@apple.com authored
      * platform/mac/fast/block/float/overhanging-tall-block-expected.txt:
      * platform/mac/transforms/svg-vs-css-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101439 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9a3f0d40
    • zmo@google.com's avatar
      Webkit gardening: chromium rebaseline. · 1d99415f
      zmo@google.com authored
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101438 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1d99415f
    • zmo@google.com's avatar
      Webkit gardening: chromium rebaseline. · 0cd4c1ed
      zmo@google.com authored
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101437 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0cd4c1ed
    • zmo@google.com's avatar
      Webkit gardening: chromium rebaseline. · 41780471
      zmo@google.com authored
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101436 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      41780471
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r101363. · b4b43621
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/101363
      https://bugs.webkit.org/show_bug.cgi?id=73373
      
      checked in incorrect results (Requested by thorton on
      #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-11-29
      
      * platform/mac/svg/W3C-I18N/text-anchor-dirLTR-anchorEnd-expected.txt:
      * platform/mac/svg/W3C-I18N/text-anchor-dirLTR-anchorMiddle-expected.txt:
      * platform/mac/svg/W3C-I18N/text-anchor-dirLTR-anchorStart-expected.txt:
      * platform/mac/svg/W3C-I18N/text-anchor-dirNone-anchorEnd-expected.txt:
      * platform/mac/svg/W3C-I18N/text-anchor-dirNone-anchorMiddle-expected.txt:
      * platform/mac/svg/W3C-I18N/text-anchor-dirNone-anchorStart-expected.txt:
      * platform/mac/svg/W3C-I18N/text-anchor-dirRTL-anchorEnd-expected.txt:
      * platform/mac/svg/W3C-I18N/text-anchor-dirRTL-anchorMiddle-expected.txt:
      * platform/mac/svg/W3C-I18N/text-anchor-dirRTL-anchorStart-expected.txt:
      * platform/mac/svg/W3C-I18N/text-anchor-inherited-dirLTR-anchorEnd-expected.txt:
      * platform/mac/svg/W3C-I18N/text-anchor-inherited-dirLTR-anchorMiddle-expected.txt:
      * platform/mac/svg/W3C-I18N/text-anchor-inherited-dirLTR-anchorStart-expected.txt:
      * platform/mac/svg/W3C-I18N/text-anchor-inherited-dirRTL-anchorEnd-expected.txt:
      * platform/mac/svg/W3C-I18N/text-anchor-inherited-dirRTL-anchorMiddle-expected.txt:
      * platform/mac/svg/W3C-I18N/text-anchor-inherited-dirRTL-anchorStart-expected.txt:
      * platform/mac/svg/W3C-I18N/text-anchor-no-markup-expected.txt:
      * platform/mac/svg/text/text-intro-05-t-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101435 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b4b43621
    • kevino@webkit.org's avatar
      [wx] Unreviewed build fix for Leopard compilation. · c6564d15
      kevino@webkit.org authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101434 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c6564d15
    • arv@chromium.org's avatar
      WebIDL: Add support for static for JSC and V8 · 2be61629
      arv@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=72998
      
      Reviewed by Adam Barth.
      
      WebIDL uses "static" for class methods. We used to use "[ClassMethod]". This change makes us use the WebIDL syntax instead.
      
      No new tests: Covered by existing tests.
      
      * bindings/scripts/CodeGeneratorJS.pm:
      (GetFunctionName): Use isStatic instead.
      (GenerateOverloadedFunction): Ditto.
      (GenerateImplementation): Ditto.
      (GenerateParametersCheck): Ditto.
      (GenerateImplementationFunctionCall): Ditto.
      (GenerateConstructorDefinition): Ditto.
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateFunctionCallback): Ditto.
      (GenerateImplementation): Ditto.
      (GenerateFunctionCallString): Ditto.
      * bindings/scripts/IDLParser.pm:
      (ParseInterface): Set isStatic as needed.
      * bindings/scripts/IDLStructure.pm: Update regular expression to parse "static".
      * bindings/scripts/test/TestObj.idl: Use static instead of [ClassMethod].
      * storage/IDBKeyRange.idl: Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101433 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2be61629
    • zmo@google.com's avatar
      Webkit gardening: rebaseline. · c0ecb758
      zmo@google.com authored
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101432 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c0ecb758
    • haraken@chromium.org's avatar
      Unreviewed. Rebaselined a run-bindings-tests result. · df558f44
      haraken@chromium.org authored
      * bindings/scripts/test/JS/JSFloat64Array.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101431 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      df558f44
    • xji@chromium.org's avatar
      --webkit-visual-word should be able to reach end of text, instead of end of line · 6595d449
      xji@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=72048
      
      Reviewed by Ryosuke Niwa.
      
      Source/WebCore: 
      
      Revert r92223 -- webkit-visual-word should reach boundary of line.
      When there is no more left or right words in the same editing boundary and
      current position is an editable position, return start or end position in this
      editable content.
      
      Test: editing/selection/move-by-word-visually-textarea.html
      
      * editing/visible_units.cpp:
      (WebCore::collectWordBreaksInBoxInsideBlockWithSameDirectionality):
      (WebCore::collectWordBreaksInBoxInsideBlockWithDifferntDirectionality):
      (WebCore::leftWordPosition):
      (WebCore::rightWordPosition):
      
      LayoutTests: 
      
      * editing/selection/move-by-word-visually-inline-block-positioned-element-expected.txt:
      * editing/selection/move-by-word-visually-inline-block-positioned-element.html:
      * editing/selection/move-by-word-visually-multi-line-expected.txt:
      * editing/selection/move-by-word-visually-multi-line.html:
      * editing/selection/move-by-word-visually-single-space-inline-element-expected.txt:
      * editing/selection/move-by-word-visually-textarea-expected.txt: Added.
      * editing/selection/move-by-word-visually-textarea.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101430 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6595d449
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r101418. · 9e430bc0
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/101418
      https://bugs.webkit.org/show_bug.cgi?id=73372
      
      Chromium renderer crashes with ENABLE(MUTATION_OBSERVERS)
      (Requested by aklein on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-11-29
      
      * public/platform/WebThread.h:
      * src/WebKit.cpp:
      (WebKit::initialize):
      (WebKit::shutdown):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101429 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9e430bc0
    • zmo@google.com's avatar
      Webkit gardening: rebaseline. · 6837fb53
      zmo@google.com authored
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101428 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6837fb53
  2. 29 Nov, 2011 10 commits