1. 13 Aug, 2010 14 commits
    • hausmann@webkit.org's avatar
      [Qt] Clean up mobile feature useage · 0c19b5e1
      hausmann@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=43968
      
      Reviewed by Ariya Hidayat.
      
      .:
      
      * WebKit.pri: Set feature defaults here for some Nokia specific mobile platforms
      
      WebCore:
      
      * WebCore.pro: Replaced use of Nokia specific platform scopes with concrete
      feature names.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65321 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0c19b5e1
    • pfeldman@chromium.org's avatar
      2010-08-13 Pavel Feldman <pfeldman@chromium.org> · 7fab097c
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: rename InspectorValue::push and set to
              push{Value|Object|Array} and set{...}.
              https://bugs.webkit.org/show_bug.cgi?id=43966
      
              * bindings/js/ScriptProfile.cpp:
              (WebCore::buildInspectorObjectFor):
              * bindings/js/ScriptValue.cpp:
              (WebCore::jsToInspectorValue):
              * bindings/v8/ScriptCallStack.cpp:
              (WebCore::ScriptCallStack::stackTrace):
              * bindings/v8/ScriptProfile.cpp:
              (WebCore::buildInspectorObjectFor):
              * bindings/v8/ScriptValue.cpp:
              (WebCore::v8ToInspectorValue):
              * inspector/CodeGeneratorInspector.pm:
              * inspector/ConsoleMessage.cpp:
              (WebCore::ConsoleMessage::addToFrontend):
              * inspector/Inspector.idl:
              * inspector/InspectorApplicationCacheAgent.cpp:
              (WebCore::InspectorApplicationCacheAgent::buildObjectForApplicationCache):
              (WebCore::InspectorApplicationCacheAgent::buildArrayForApplicationCacheResources):
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::buildArrayForCookies):
              (WebCore::InspectorController::getDOMStorageEntries):
              (WebCore::InspectorController::getProfileHeaders):
              (WebCore::InspectorController::getProfile):
              * inspector/InspectorDOMAgent.cpp:
              (WebCore::InspectorDOMAgent::getEventListenersForNode):
              (WebCore::InspectorDOMAgent::buildObjectForNode):
              (WebCore::InspectorDOMAgent::buildArrayForContainerChildren):
              (WebCore::InspectorDOMAgent::getStyles):
              (WebCore::InspectorDOMAgent::getAllStyles):
              (WebCore::InspectorDOMAgent::getRuleRanges):
              (WebCore::InspectorDOMAgent::buildObjectForAttributeStyles):
              (WebCore::InspectorDOMAgent::buildArrayForCSSRules):
              (WebCore::InspectorDOMAgent::buildArrayForPseudoElements):
              (WebCore::InspectorDOMAgent::buildObjectForStyle):
              (WebCore::InspectorDOMAgent::populateObjectWithStyleProperties):
              (WebCore::InspectorDOMAgent::buildArrayForDisabledStyleProperties):
              (WebCore::InspectorDOMAgent::buildObjectForStyleSheet):
              (WebCore::InspectorDOMAgent::buildObjectForRule):
              * inspector/InspectorDebuggerAgent.cpp:
              (WebCore::InspectorDebuggerAgent::saveBreakpoints):
              * inspector/InspectorResource.cpp:
              (WebCore::InspectorResource::updateScriptObject):
              * inspector/InspectorStorageAgent.cpp:
              (WebCore::):
              (WebCore::InspectorStorageAgent::executeSQL):
              * inspector/InspectorTimelineAgent.cpp:
              (WebCore::InspectorTimelineAgent::pushGCEventRecords):
              (WebCore::InspectorTimelineAgent::didInstallTimer):
              (WebCore::InspectorTimelineAgent::didRemoveTimer):
              (WebCore::InspectorTimelineAgent::didScheduleResourceRequest):
              (WebCore::InspectorTimelineAgent::willSendResourceRequest):
              (WebCore::InspectorTimelineAgent::didFinishLoadingResource):
              (WebCore::InspectorTimelineAgent::didMarkTimeline):
              (WebCore::InspectorTimelineAgent::addRecordToTimeline):
              (WebCore::InspectorTimelineAgent::didCompleteCurrentRecord):
              * inspector/InspectorValues.cpp:
              (WebCore::):
              (WebCore::InspectorValue::asValue):
              (WebCore::InspectorValue::asObject):
              (WebCore::InspectorValue::asArray):
              (WebCore::InspectorObject::asObject):
              (WebCore::InspectorArray::asArray):
              * inspector/InspectorValues.h:
              (WebCore::InspectorObject::setBool):
              (WebCore::InspectorObject::setNumber):
              (WebCore::InspectorObject::setString):
              (WebCore::InspectorObject::setValue):
              (WebCore::InspectorObject::setObject):
              (WebCore::InspectorObject::setArray):
              (WebCore::InspectorArray::pushValue):
              (WebCore::InspectorArray::pushObject):
              (WebCore::InspectorArray::pushArray):
              * inspector/ScriptBreakpoint.cpp:
              (WebCore::ScriptBreakpoint::inspectorObjectFromSourceBreakpoints):
              * inspector/TimelineRecordFactory.cpp:
              (WebCore::TimelineRecordFactory::createGenericRecord):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65320 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7fab097c
    • commit-queue@webkit.org's avatar
      2010-08-13 Sheriff Bot <webkit.review.bot@gmail.com> · be956fc5
      commit-queue@webkit.org authored
              Unreviewed, rolling out r65204.
              http://trac.webkit.org/changeset/65204
              https://bugs.webkit.org/show_bug.cgi?id=43965
      
              Caused a lot of test crashes in Chromium (Requested by yutak
              on #webkit).
      
              * platform/mac/accessibility/native-vs-nonnative-checkboxes-expected.txt: Removed.
              * platform/mac/accessibility/native-vs-nonnative-checkboxes.html: Removed.
      2010-08-13  Sheriff Bot  <webkit.review.bot@gmail.com>
      
              Unreviewed, rolling out r65204.
              http://trac.webkit.org/changeset/65204
              https://bugs.webkit.org/show_bug.cgi?id=43965
      
              Caused a lot of test crashes in Chromium (Requested by yutak
              on #webkit).
      
              * accessibility/AccessibilityRenderObject.cpp:
              (WebCore::AccessibilityRenderObject::isInputImage):
              (WebCore::AccessibilityRenderObject::isNativeCheckboxOrRadio):
              * dom/InputElement.h:
              * html/HTMLInputElement.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65317 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      be956fc5
    • antonm@chromium.org's avatar
      2010-08-13 Anton Muhin <antonm@chromium.org> · 07d9c24f
      antonm@chromium.org authored
              Reviewed by Nate Chapin.
      
              Reapplying http://trac.webkit.org/changeset/65284 after fixed include.
      
              [v8] Create callbacks for named access of elements from document object on fly.
              https://bugs.webkit.org/show_bug.cgi?id=43725
      
              That should speed up access to methods on document as there is no need to
              consult with interceptor before invoking the method.
      
              This reapplies http://trac.webkit.org/changeset/60670 reverted with
              http://trac.webkit.org/changeset/63845.  The main difference is in treatment
              of removed named elements: we don't remove an accessor any more, but leave it.
              Therefore any accessor should be able to treat the case when there is no
              expando property.
      
              * bindings/scripts/CodeGeneratorV8.pm:
              * bindings/v8/ScriptController.cpp:
              (WebCore::ScriptController::namedItemAdded):
              (WebCore::ScriptController::namedItemRemoved):
              * bindings/v8/V8DOMWindowShell.cpp:
              (WebCore::checkDocumentWrapper):
              (WebCore::V8DOMWindowShell::updateDocumentWrapperCache):
              (WebCore::getter):
              (WebCore::V8DOMWindowShell::namedItemAdded):
              (WebCore::V8DOMWindowShell::namedItemRemoved):
              * bindings/v8/V8DOMWindowShell.h:
              * bindings/v8/V8DOMWrapper.cpp:
              (WebCore::V8DOMWrapper::instantiateV8Object):
              * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
              (WebCore::V8HTMLDocument::WrapInShadowObject):
              (WebCore::V8HTMLDocument::GetNamedProperty):
              (WebCore::V8HTMLDocument::allAccessorSetter):
              (WebCore::toV8):
              * html/HTMLDocument.cpp:
              (WebCore::HTMLDocument::removeItemFromMap):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65316 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      07d9c24f
    • pfeldman@chromium.org's avatar
      2010-08-13 Pavel Feldman <pfeldman@chromium.org> · 157e3518
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: remove openInInspectorWindow and evaluateAndStringify from InjectedScript.
              https://bugs.webkit.org/show_bug.cgi?id=43854
      
              * inspector/Inspector.idl:
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::openInInspectedWindow):
              * inspector/InspectorController.h:
              * inspector/front-end/ExtensionServer.js:
              (WebInspector.ExtensionServer.prototype._onEvaluateOnInspectedPage.callback):
              (WebInspector.ExtensionServer.prototype._onEvaluateOnInspectedPage):
              * inspector/front-end/InjectedScript.js:
              (injectedScriptConstructor):
              * inspector/front-end/InjectedScriptAccess.js:
              * inspector/front-end/InspectorBackendStub.js:
              (WebInspector.InspectorBackendStub):
              * inspector/front-end/ResourcesPanel.js:
              (WebInspector.ResourceSidebarTreeElement.prototype.ondblclick):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65314 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      157e3518
    • ukai@chromium.org's avatar
      2010-08-13 Fumitoshi Ukai <ukai@chromium.org> · a86c8ee0
      ukai@chromium.org authored
              Reviewed by Alexey Proskuryakov.
      
              flaky websocket/tests/frame-length-overflow.html
              https://bugs.webkit.org/show_bug.cgi?id=43902
      
              Add m_shouldDiscardReceivedData flag to indicate it will no longer
              receive data from network.
      
              * websockets/WebSocketChannel.cpp:
              (WebCore::WebSocketChannel::WebSocketChannel):
              (WebCore::WebSocketChannel::didReceiveData):
              (WebCore::WebSocketChannel::didFail):
              (WebCore::WebSocketChannel::processBuffer):
              - when frame length overflows, we couldn't process data any more.
                clear buffer and mark m_shouldDiscardReceivedData true to make sure
                it doesn't process the same buffer again.
              * websockets/WebSocketChannel.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65313 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a86c8ee0
    • krit@webkit.org's avatar
      2010-08-13 Dirk Schulze <krit@webkit.org> · 63d61060
      krit@webkit.org authored
              Reviewed by Nikolas Zimmermann.
      
              Use SVGPathByteStream to animate SVGPath
              https://bugs.webkit.org/show_bug.cgi?id=43929
      
              Use SVGPathByteStream to perform animations of Paths. SVGPathBlender blends
              the starting point to the end point according to the current progress value.
              Cleanup SVGPathSegList, by removing the unnecessary legacy blending code.
      
              No new tests because no functional changes.
      
              * Android.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * svg/SVGAllInOne.cpp:
              * svg/SVGAnimateElement.cpp:
              (WebCore::SVGAnimateElement::SVGAnimateElement):
              (WebCore::SVGAnimateElement::calculateAnimatedValue):
              (WebCore::SVGAnimateElement::calculateFromAndToValues):
              (WebCore::SVGAnimateElement::resetToBaseValue):
              (WebCore::SVGAnimateElement::applyResultsToTarget):
              * svg/SVGAnimateElement.h:
              * svg/SVGPathBlender.cpp: Added.
              (WebCore::SVGPathBlender::SVGPathBlender):
              (WebCore::SVGPathBlender::~SVGPathBlender):
              (WebCore::SVGPathBlender::blendAnimatedFloat):
              (WebCore::SVGPathBlender::blendAnimatedFloatPoint):
              (WebCore::SVGPathBlender::blendMoveToSegment):
              (WebCore::SVGPathBlender::blendLineToSegment):
              (WebCore::SVGPathBlender::blendLineToHorizontalSegment):
              (WebCore::SVGPathBlender::blendLineToVerticalSegment):
              (WebCore::SVGPathBlender::blendCurveToCubicSegment):
              (WebCore::SVGPathBlender::blendCurveToCubicSmoothSegment):
              (WebCore::SVGPathBlender::blendCurveToQuadraticSegment):
              (WebCore::SVGPathBlender::blendCurveToQuadraticSmoothSegment):
              (WebCore::SVGPathBlender::blendArcToSegment):
              (WebCore::SVGPathBlender::blendAnimatedPath):
              (WebCore::SVGPathBlender::cleanup):
              * svg/SVGPathBlender.h: Added.
              * svg/SVGPathParserFactory.cpp:
              (WebCore::globalSVGPathBlender):
              (WebCore::SVGPathParserFactory::buildAnimatedSVGPathByteStream):
              * svg/SVGPathParserFactory.h:
              * svg/SVGPathSegList.cpp:
              (WebCore::SVGPathSegList::getPathSegAtLength):
              * svg/SVGPathSegList.h:
              (WebCore::SVGPathSegList::create):
              * svg/SVGPointList.cpp:
              (WebCore::adjustAnimatedValue):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65312 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      63d61060
    • zimmermann@webkit.org's avatar
      2010-08-12 Nikolas Zimmermann <nzimmermann@rim.com> · cff3134e
      zimmermann@webkit.org authored
              Reviewed by Dirk Schulze.
      
              Window size changes + resources on absolute sized content leads to pixelation
              https://bugs.webkit.org/show_bug.cgi?id=43921
      
              Avoid pixelation when using resources on absolute sized objects. Be sure to invalidate the used resources if window size changes.
              Otherwhise masks etc. will be scaled up and pixelate. As nice side-effect, this fixes run-webkit-tests --singly svg/W3C-SVG-1.1, which
              used to produce wrong results for the gradient tests, as the window size change from 800x600 for 480x360 (svg/W3C-SVG-1.1 specific DRT quirk)
              didn't invalidate the resources.
      
              Renamed invalidateClient -> removeClientFromCache and invalidateClients -> removeAllClientsFromCache.
              Add a boolean "markForInvalidation" parameter, that controls wheter the clients should be marked for repaint/boundaries invalidation/layout
              or wheter we only want to notify the parents that the resource changed, to avoid doing unncessary work in SVGRenderSupport::layoutChildren.
      
              Test: svg/custom/absolute-sized-content-with-resources.xhtml
      
              * rendering/RenderSVGGradientStop.cpp:
              (WebCore::RenderSVGGradientStop::styleDidChange): Don't do anything for StyleDifferenceEqual.
              * rendering/RenderSVGImage.cpp:
              (WebCore::RenderSVGImage::imageChanged):
              * rendering/RenderSVGResource.cpp:
              (WebCore::RenderSVGResource::markForLayoutAndParentResourceInvalidation):
              * rendering/RenderSVGResource.h:
              * rendering/RenderSVGResourceClipper.cpp:
              (WebCore::RenderSVGResourceClipper::removeAllClientsFromCache):
              (WebCore::RenderSVGResourceClipper::removeClientFromCache):
              * rendering/RenderSVGResourceClipper.h:
              * rendering/RenderSVGResourceContainer.cpp:
              (WebCore::RenderSVGResourceContainer::layout):
              (WebCore::RenderSVGResourceContainer::idChanged):
              (WebCore::RenderSVGResourceContainer::markAllClientsForInvalidation):
              (WebCore::RenderSVGResourceContainer::markClientForInvalidation):
              * rendering/RenderSVGResourceContainer.h:
              (WebCore::RenderSVGResourceContainer::):
              * rendering/RenderSVGResourceFilter.cpp:
              (WebCore::RenderSVGResourceFilter::removeAllClientsFromCache):
              (WebCore::RenderSVGResourceFilter::removeClientFromCache):
              (WebCore::RenderSVGResourceFilter::postApplyResource):
              * rendering/RenderSVGResourceFilter.h:
              * rendering/RenderSVGResourceGradient.cpp:
              (WebCore::RenderSVGResourceGradient::removeAllClientsFromCache):
              (WebCore::RenderSVGResourceGradient::removeClientFromCache):
              (WebCore::RenderSVGResourceGradient::applyResource):
              * rendering/RenderSVGResourceGradient.h:
              * rendering/RenderSVGResourceMarker.cpp:
              (WebCore::RenderSVGResourceMarker::layout):
              (WebCore::RenderSVGResourceMarker::removeAllClientsFromCache):
              (WebCore::RenderSVGResourceMarker::removeClientFromCache):
              * rendering/RenderSVGResourceMarker.h:
              * rendering/RenderSVGResourceMasker.cpp:
              (WebCore::RenderSVGResourceMasker::removeAllClientsFromCache):
              (WebCore::RenderSVGResourceMasker::removeClientFromCache):
              * rendering/RenderSVGResourceMasker.h:
              * rendering/RenderSVGResourcePattern.cpp:
              (WebCore::RenderSVGResourcePattern::removeAllClientsFromCache):
              (WebCore::RenderSVGResourcePattern::removeClientFromCache):
              (WebCore::RenderSVGResourcePattern::applyResource):
              * rendering/RenderSVGResourcePattern.h:
              * rendering/RenderSVGResourceSolidColor.h:
              (WebCore::RenderSVGResourceSolidColor::removeAllClientsFromCache):
              (WebCore::RenderSVGResourceSolidColor::removeClientFromCache):
              * rendering/SVGRenderSupport.cpp:
              (WebCore::invalidateResourcesOfChildren): Add new helper funtion recursively invalidating resources of a sub render tree.
              (WebCore::SVGRenderSupport::layoutChildren): Keep track of all objects that didn't need layout, as we still have to invalidate their resources, if window size changes.
              * rendering/SVGResources.cpp:
              (WebCore::SVGResources::removeClientFromCache):
              (WebCore::SVGResources::resourceDestroyed):
              * rendering/SVGResources.h:
              * rendering/SVGResourcesCache.cpp:
              (WebCore::SVGResourcesCache::clientLayoutChanged):
      
      2010-08-12  Nikolas Zimmermann  <nzimmermann@rim.com>
      
              Reviewed by Dirk Schulze.
      
              Window size changes + resources on absolute sized content leads to pixelation
              https://bugs.webkit.org/show_bug.cgi?id=43921
      
              * platform/mac/svg/custom/absolute-sized-content-with-resources-expected.checksum: Added.
              * platform/mac/svg/custom/absolute-sized-content-with-resources-expected.png: Added.
              * platform/mac/svg/custom/absolute-sized-content-with-resources-expected.txt: Added.
              * svg/custom/absolute-sized-content-with-resources.xhtml: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65310 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cff3134e
    • pfeldman@chromium.org's avatar
      2010-08-13 Pavel Feldman <pfeldman@chromium.org> · 675ae0f4
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Chromium DevTools: [CRASH] Autocomplete on arrays causes crashes.
              https://bugs.webkit.org/show_bug.cgi?id=43955
      
              * bindings/v8/ScriptValue.cpp:
              (WebCore::v8ToInspectorValue):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65307 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      675ae0f4
    • barraclough@apple.com's avatar
      Unify UString::UTF8String() & String::utf8() methods, · 3158a387
      barraclough@apple.com authored
      remove UString::cost() & make atArrayIndex a free function.
      
      Reviewed by Sam Weinig
      
      JavaScriptCore: 
      
      * JavaScriptCore.exp:
      * bytecode/CodeBlock.cpp:
      (JSC::constantName):
      (JSC::idName):
      (JSC::CodeBlock::registerName):
      (JSC::regexpName):
      (JSC::printGlobalResolveInfo):
      (JSC::printStructureStubInfo):
      (JSC::CodeBlock::printStructure):
      (JSC::CodeBlock::printStructures):
      * jsc.cpp:
      (functionPrint):
      (functionDebug):
      (runInteractive):
      (fillBufferWithContentsOfFile):
      * pcre/pcre_exec.cpp:
      (Histogram::~Histogram):
      * profiler/CallIdentifier.h:
      (JSC::CallIdentifier::c_str):
      * profiler/Profile.cpp:
      (JSC::Profile::debugPrintDataSampleStyle):
      * profiler/ProfileGenerator.cpp:
      (JSC::ProfileGenerator::willExecute):
      (JSC::ProfileGenerator::didExecute):
      * profiler/ProfileNode.cpp:
      (JSC::ProfileNode::debugPrintData):
      (JSC::ProfileNode::debugPrintDataSampleStyle):
      * runtime/Arguments.cpp:
      (JSC::Arguments::getOwnPropertySlot):
      (JSC::Arguments::getOwnPropertyDescriptor):
      (JSC::Arguments::put):
      (JSC::Arguments::deleteProperty):
      * runtime/DateConversion.cpp:
      (JSC::parseDate):
      * runtime/Identifier.h:
      (JSC::Identifier::toStrictUInt32):
      * runtime/JSArray.cpp:
      (JSC::JSArray::getOwnPropertySlot):
      (JSC::JSArray::getOwnPropertyDescriptor):
      (JSC::JSArray::put):
      (JSC::JSArray::deleteProperty):
      * runtime/JSArray.h:
      (JSC::toArrayIndex):
      * runtime/JSGlobalObjectFunctions.cpp:
      (JSC::encode):
      (JSC::parseInt):
      (JSC::globalFuncJSCPrint):
      * runtime/JSString.h:
      (JSC::RopeBuilder::JSString):
      * runtime/UString.cpp:
      (JSC::UString::toDouble):
      (JSC::putUTF8Triple):
      (JSC::UString::utf8):
      * runtime/UString.h:
      (JSC::UString::~UString):
      (JSC::UString::isNull):
      (JSC::UString::isEmpty):
      (JSC::UString::impl):
      * wtf/text/WTFString.cpp:
      (WTF::String::utf8):
      * wtf/text/WTFString.h:
      (WTF::String::~String):
      (WTF::String::swap):
      (WTF::String::isNull):
      (WTF::String::isEmpty):
      (WTF::String::impl):
      (WTF::String::length):
      (WTF::String::String):
      (WTF::String::isHashTableDeletedValue):
      
      WebCore: 
      
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSDOMWindowCustom.cpp:
      (WebCore::JSDOMWindow::getOwnPropertySlot):
      (WebCore::JSDOMWindow::getOwnPropertyDescriptor):
      * bridge/NP_jsobject.cpp:
      (_NPN_Enumerate):
      * bridge/c/c_utility.cpp:
      (JSC::Bindings::convertValueToNPVariant):
      * bridge/jni/JNIBridge.cpp:
      (JavaParameter::JavaParameter):
      (JavaMethod::JavaMethod):
      (JavaMethod::signature):
      (JavaMethod::methodID):
      * bridge/jni/JNIBridge.h:
      (JSC::Bindings::JavaString::utf8):
      (JSC::Bindings::JavaParameter::type):
      (JSC::Bindings::JavaMethod::returnType):
      * bridge/jni/jni_jsobject.mm:
      (JavaJSObject::call):
      (JavaJSObject::eval):
      (JavaJSObject::getMember):
      (JavaJSObject::setMember):
      (JavaJSObject::removeMember):
      (JavaJSObject::convertJObjectToValue):
      * bridge/jni/jsc/JNIBridgeJSC.cpp:
      (JavaField::JavaField):
      (JavaField::valueFromInstance):
      (JavaField::setValueToInstance):
      * bridge/jni/jsc/JNIBridgeJSC.h:
      (JSC::Bindings::JavaField::type):
      * bridge/jni/jsc/JavaInstanceJSC.cpp:
      (JavaInstance::invokeMethod):
      * bridge/jni/jsc/JavaStringJSC.h:
      (JSC::Bindings::JavaStringImpl::utf8):
      * bridge/runtime_array.cpp:
      (JSC::RuntimeArray::getOwnPropertySlot):
      (JSC::RuntimeArray::getOwnPropertyDescriptor):
      (JSC::RuntimeArray::put):
      
      WebKit/mac: 
      
      * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
      (WebKit::NetscapePluginInstanceProxy::enumerate):
      
      WebKit/wx: 
      
      * WebFrame.cpp:
      (wxWebFrame::RunScript):
      
      WebKit2: 
      
      * WebProcess/Plugins/JSNPObject.cpp:
      (WebKit::npIdentifierFromIdentifier):
      * WebProcess/Plugins/NPJSObject.cpp:
      (WebKit::NPJSObject::enumerate):
      * WebProcess/Plugins/NPRuntimeObjectMap.cpp:
      (WebKit::NPRuntimeObjectMap::convertJSValueToNPVariant):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65305 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3158a387
    • yurys@chromium.org's avatar
      2010-08-12 Yury Semikhatsky <yurys@chromium.org> · 5ec4820e
      yurys@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: allow interrupting long running JS to execute inspector command
              https://bugs.webkit.org/show_bug.cgi?id=43900
      
              * bindings/v8/ScriptDebugServer.cpp:
              (WebCore::):
              (WebCore::ScriptDebugServer::pause):
              (WebCore::ScriptDebugServer::interruptAndRun):
              (WebCore::ScriptDebugServer::runPendingTasks):
              (WebCore::ScriptDebugServer::handleV8DebugEvent):
              * bindings/v8/ScriptDebugServer.h:
              (WebCore::ScriptDebugServer::Task::~Task):
      
      2010-08-12  Yury Semikhatsky  <yurys@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              Web Inspector: allow interrupting long running JS to execute inspector command
              https://bugs.webkit.org/show_bug.cgi?id=43900
      
              * public/WebDevToolsAgent.h:
              (WebKit::WebDevToolsAgent::MessageDescriptor::~MessageDescriptor):
              * src/WebDevToolsAgentImpl.cpp:
              (WebKit::WebDevToolsAgent::interruptAndDispatch):
              (WebKit::WebDevToolsAgent::shouldInterruptForMessage):
              (WebKit::WebDevToolsAgent::processPendingMessages):
              * src/WebDevToolsFrontendImpl.cpp:
              (WebKit::WebDevToolsFrontendImpl::WebDevToolsFrontendImpl):
              * src/WebDevToolsFrontendImpl.h:
              * src/js/DevTools.js:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65304 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5ec4820e
    • ossy@webkit.org's avatar
      2010-08-12 Sheriff Bot <webkit.review.bot@gmail.com> · eb7ea4be
      ossy@webkit.org authored
              Unreviewed, rolling out r65295.
              http://trac.webkit.org/changeset/65295
              https://bugs.webkit.org/show_bug.cgi?id=43950
      
              It broke 4 sputnik tests (Requested by Ossy on #webkit).
      
              * JavaScriptCore.exp:
              * bytecode/CodeBlock.cpp:
              (JSC::constantName):
              (JSC::idName):
              (JSC::CodeBlock::registerName):
              (JSC::regexpName):
              (JSC::printGlobalResolveInfo):
              (JSC::printStructureStubInfo):
              (JSC::CodeBlock::printStructure):
              (JSC::CodeBlock::printStructures):
              * jsc.cpp:
              (functionPrint):
              (functionDebug):
              (runInteractive):
              (fillBufferWithContentsOfFile):
              * pcre/pcre_exec.cpp:
              (Histogram::~Histogram):
              * profiler/CallIdentifier.h:
              (JSC::CallIdentifier::c_str):
              * profiler/Profile.cpp:
              (JSC::Profile::debugPrintDataSampleStyle):
              * profiler/ProfileGenerator.cpp:
              (JSC::ProfileGenerator::willExecute):
              (JSC::ProfileGenerator::didExecute):
              * profiler/ProfileNode.cpp:
              (JSC::ProfileNode::debugPrintData):
              (JSC::ProfileNode::debugPrintDataSampleStyle):
              * runtime/Arguments.cpp:
              (JSC::Arguments::getOwnPropertySlot):
              (JSC::Arguments::getOwnPropertyDescriptor):
              (JSC::Arguments::put):
              (JSC::Arguments::deleteProperty):
              * runtime/DateConversion.cpp:
              (JSC::parseDate):
              * runtime/Identifier.h:
              (JSC::Identifier::Identifier):
              (JSC::Identifier::toArrayIndex):
              * runtime/JSArray.cpp:
              (JSC::JSArray::getOwnPropertySlot):
              (JSC::JSArray::getOwnPropertyDescriptor):
              (JSC::JSArray::put):
              (JSC::JSArray::deleteProperty):
              * runtime/JSArray.h:
              * runtime/JSGlobalObjectFunctions.cpp:
              (JSC::encode):
              (JSC::parseInt):
              (JSC::globalFuncJSCPrint):
              * runtime/JSString.h:
              (JSC::RopeBuilder::JSString):
              * runtime/UString.cpp:
              (JSC::UString::toDouble):
              (JSC::UString::UTF8String):
              * runtime/UString.h:
              (JSC::UString::isNull):
              (JSC::UString::isEmpty):
              (JSC::UString::impl):
              (JSC::UString::cost):
              (JSC::UString::~UString):
              (JSC::UString::toArrayIndex):
              * wtf/text/WTFString.cpp:
              (WTF::String::utf8):
              * wtf/text/WTFString.h:
              (WTF::String::String):
              (WTF::String::isHashTableDeletedValue):
              (WTF::String::length):
              (WTF::String::operator[]):
              (WTF::String::isNull):
              (WTF::String::isEmpty):
              (WTF::String::impl):
      2010-08-12  Sheriff Bot  <webkit.review.bot@gmail.com>
      
              Unreviewed, rolling out r65295.
              http://trac.webkit.org/changeset/65295
              https://bugs.webkit.org/show_bug.cgi?id=43950
      
              It broke 4 sputnik tests (Requested by Ossy on #webkit).
      
              * WebFrame.cpp:
              (wxWebFrame::RunScript):
      2010-08-12  Sheriff Bot  <webkit.review.bot@gmail.com>
      
              Unreviewed, rolling out r65295.
              http://trac.webkit.org/changeset/65295
              https://bugs.webkit.org/show_bug.cgi?id=43950
      
              It broke 4 sputnik tests (Requested by Ossy on #webkit).
      
              * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
              (WebKit::NetscapePluginInstanceProxy::enumerate):
      2010-08-12  Sheriff Bot  <webkit.review.bot@gmail.com>
      
              Unreviewed, rolling out r65295.
              http://trac.webkit.org/changeset/65295
              https://bugs.webkit.org/show_bug.cgi?id=43950
      
              It broke 4 sputnik tests (Requested by Ossy on #webkit).
      
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::getOwnPropertySlot):
              (WebCore::JSDOMWindow::getOwnPropertyDescriptor):
              * bridge/NP_jsobject.cpp:
              (_NPN_Enumerate):
              * bridge/c/c_utility.cpp:
              (JSC::Bindings::convertValueToNPVariant):
              * bridge/jni/JNIBridge.cpp:
              (JavaParameter::JavaParameter):
              (JavaMethod::JavaMethod):
              (JavaMethod::signature):
              (JavaMethod::methodID):
              * bridge/jni/JNIBridge.h:
              (JSC::Bindings::JavaString::UTF8String):
              (JSC::Bindings::JavaParameter::type):
              (JSC::Bindings::JavaMethod::returnType):
              * bridge/jni/jni_jsobject.mm:
              (JavaJSObject::call):
              (JavaJSObject::eval):
              (JavaJSObject::getMember):
              (JavaJSObject::setMember):
              (JavaJSObject::removeMember):
              (JavaJSObject::convertJObjectToValue):
              * bridge/jni/jsc/JNIBridgeJSC.cpp:
              (JavaField::JavaField):
              (JavaField::valueFromInstance):
              (JavaField::setValueToInstance):
              * bridge/jni/jsc/JNIBridgeJSC.h:
              (JSC::Bindings::JavaField::type):
              * bridge/jni/jsc/JavaInstanceJSC.cpp:
              (JavaInstance::invokeMethod):
              * bridge/jni/jsc/JavaStringJSC.h:
              (JSC::Bindings::JavaStringImpl::UTF8String):
              * bridge/runtime_array.cpp:
              (JSC::RuntimeArray::getOwnPropertySlot):
              (JSC::RuntimeArray::getOwnPropertyDescriptor):
              (JSC::RuntimeArray::put):
      2010-08-12  Sheriff Bot  <webkit.review.bot@gmail.com>
      
              Unreviewed, rolling out r65295.
              http://trac.webkit.org/changeset/65295
              https://bugs.webkit.org/show_bug.cgi?id=43950
      
              It broke 4 sputnik tests (Requested by Ossy on #webkit).
      
              * WebProcess/Plugins/JSNPObject.cpp:
              (WebKit::npIdentifierFromIdentifier):
              * WebProcess/Plugins/NPJSObject.cpp:
              (WebKit::NPJSObject::enumerate):
              * WebProcess/Plugins/NPRuntimeObjectMap.cpp:
              (WebKit::NPRuntimeObjectMap::convertJSValueToNPVariant):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65302 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eb7ea4be
    • pfeldman@chromium.org's avatar
      2010-08-12 Pavel Feldman <pfeldman@chromium.org> · 7fb61822
      pfeldman@chromium.org authored
              Not reviewed. Fixed typo in inspector js.
              Follow up to r65300.
      
              * inspector/front-end/inspector.js:
              (WebInspector.log.isLogAvailable):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65301 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7fb61822
    • pfeldman@chromium.org's avatar
      2010-08-12 Pavel Feldman <pfeldman@chromium.org> · 5a732bd4
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: Make getPrototypes return objects, not names.
              https://bugs.webkit.org/show_bug.cgi?id=43934
      
              * inspector/front-end/InjectedScript.js:
              (injectedScriptConstructor):
              (injectedScriptConstructor.):
              * inspector/front-end/PropertiesSidebarPane.js:
              (WebInspector.PropertiesSidebarPane.prototype.update.callback):
              * inspector/front-end/inspector.js:
              (WebInspector.log):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65300 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5a732bd4
  2. 12 Aug, 2010 26 commits
    • jamesr@google.com's avatar
      2010-08-12 James Robinson <jamesr@chromium.org> · d91ed91f
      jamesr@google.com authored
              Unreviewed, rolling out r65284 and r65288.  Broke chromium compile.
              https://bugs.webkit.org/show_bug.cgi?id=43725
              http://trac.webkit.org/changeset/65284
              http://trac.webkit.org/changeset/65288
      
              * bindings/scripts/CodeGeneratorV8.pm:
              * bindings/v8/ScriptController.cpp:
              (WebCore::ScriptController::namedItemAdded):
              (WebCore::ScriptController::namedItemRemoved):
              * bindings/v8/V8DOMWindowShell.cpp:
              (WebCore::V8DOMWindowShell::updateDocumentWrapperCache):
              * bindings/v8/V8DOMWindowShell.h:
              * bindings/v8/V8DOMWrapper.cpp:
              (WebCore::V8DOMWrapper::instantiateV8Object):
              * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
              (WebCore::V8HTMLDocument::namedPropertyDeleter):
              (WebCore::V8HTMLDocument::namedPropertyGetter):
              (WebCore::V8HTMLDocument::indexedPropertyGetter):
              (WebCore::V8HTMLDocument::allAccessorSetter):
              (WebCore::toV8):
              * html/HTMLDocument.cpp:
              (WebCore::HTMLDocument::removeItemFromMap):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65299 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d91ed91f
    • barraclough@apple.com's avatar
      Unify UString::UTF8String() & String::utf8() methods, · d22274e7
      barraclough@apple.com authored
      remove UString::cost() & make atArrayIndex a free function.
      
      Reviewed by Sam Weinig
      
      JavaScriptCore: 
      
      * JavaScriptCore.exp:
      * bytecode/CodeBlock.cpp:
      (JSC::constantName):
      (JSC::idName):
      (JSC::CodeBlock::registerName):
      (JSC::regexpName):
      (JSC::printGlobalResolveInfo):
      (JSC::printStructureStubInfo):
      (JSC::CodeBlock::printStructure):
      (JSC::CodeBlock::printStructures):
      * jsc.cpp:
      (functionPrint):
      (functionDebug):
      (runInteractive):
      (fillBufferWithContentsOfFile):
      * pcre/pcre_exec.cpp:
      (Histogram::~Histogram):
      * profiler/CallIdentifier.h:
      (JSC::CallIdentifier::c_str):
      * profiler/Profile.cpp:
      (JSC::Profile::debugPrintDataSampleStyle):
      * profiler/ProfileGenerator.cpp:
      (JSC::ProfileGenerator::willExecute):
      (JSC::ProfileGenerator::didExecute):
      * profiler/ProfileNode.cpp:
      (JSC::ProfileNode::debugPrintData):
      (JSC::ProfileNode::debugPrintDataSampleStyle):
      * runtime/Arguments.cpp:
      (JSC::Arguments::getOwnPropertySlot):
      (JSC::Arguments::getOwnPropertyDescriptor):
      (JSC::Arguments::put):
      (JSC::Arguments::deleteProperty):
      * runtime/DateConversion.cpp:
      (JSC::parseDate):
      * runtime/Identifier.h:
      (JSC::Identifier::toStrictUInt32):
      * runtime/JSArray.cpp:
      (JSC::JSArray::getOwnPropertySlot):
      (JSC::JSArray::getOwnPropertyDescriptor):
      (JSC::JSArray::put):
      (JSC::JSArray::deleteProperty):
      * runtime/JSArray.h:
      (JSC::toArrayIndex):
      * runtime/JSGlobalObjectFunctions.cpp:
      (JSC::encode):
      (JSC::parseInt):
      (JSC::globalFuncJSCPrint):
      * runtime/JSString.h:
      (JSC::RopeBuilder::JSString):
      * runtime/UString.cpp:
      (JSC::UString::toDouble):
      (JSC::putUTF8Triple):
      (JSC::UString::utf8):
      * runtime/UString.h:
      (JSC::UString::~UString):
      (JSC::UString::isNull):
      (JSC::UString::isEmpty):
      (JSC::UString::impl):
      * wtf/text/WTFString.cpp:
      (WTF::String::utf8):
      * wtf/text/WTFString.h:
      (WTF::String::~String):
      (WTF::String::swap):
      (WTF::String::isNull):
      (WTF::String::isEmpty):
      (WTF::String::impl):
      (WTF::String::length):
      (WTF::String::String):
      (WTF::String::isHashTableDeletedValue):
      
      WebCore: 
      
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSDOMWindowCustom.cpp:
      (WebCore::JSDOMWindow::getOwnPropertySlot):
      (WebCore::JSDOMWindow::getOwnPropertyDescriptor):
      * bridge/NP_jsobject.cpp:
      (_NPN_Enumerate):
      * bridge/c/c_utility.cpp:
      (JSC::Bindings::convertValueToNPVariant):
      * bridge/jni/JNIBridge.cpp:
      (JavaParameter::JavaParameter):
      (JavaMethod::JavaMethod):
      (JavaMethod::signature):
      (JavaMethod::methodID):
      * bridge/jni/JNIBridge.h:
      (JSC::Bindings::JavaString::utf8):
      (JSC::Bindings::JavaParameter::type):
      (JSC::Bindings::JavaMethod::returnType):
      * bridge/jni/jni_jsobject.mm:
      (JavaJSObject::call):
      (JavaJSObject::eval):
      (JavaJSObject::getMember):
      (JavaJSObject::setMember):
      (JavaJSObject::removeMember):
      (JavaJSObject::convertJObjectToValue):
      * bridge/jni/jsc/JNIBridgeJSC.cpp:
      (JavaField::JavaField):
      (JavaField::valueFromInstance):
      (JavaField::setValueToInstance):
      * bridge/jni/jsc/JNIBridgeJSC.h:
      (JSC::Bindings::JavaField::type):
      * bridge/jni/jsc/JavaInstanceJSC.cpp:
      (JavaInstance::invokeMethod):
      * bridge/jni/jsc/JavaStringJSC.h:
      (JSC::Bindings::JavaStringImpl::utf8):
      * bridge/runtime_array.cpp:
      (JSC::RuntimeArray::getOwnPropertySlot):
      (JSC::RuntimeArray::getOwnPropertyDescriptor):
      (JSC::RuntimeArray::put):
      
      WebKit/mac: 
      
      * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
      (WebKit::NetscapePluginInstanceProxy::enumerate):
      
      WebKit/wx: 
      
      * WebFrame.cpp:
      (wxWebFrame::RunScript):
      
      WebKit2: 
      
      * WebProcess/Plugins/JSNPObject.cpp:
      (WebKit::npIdentifierFromIdentifier):
      * WebProcess/Plugins/NPJSObject.cpp:
      (WebKit::NPJSObject::enumerate):
      * WebProcess/Plugins/NPRuntimeObjectMap.cpp:
      (WebKit::NPRuntimeObjectMap::convertJSValueToNPVariant):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65295 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d22274e7
    • barraclough@apple.com's avatar
      Speculative build fix for chromium bindings (someone added the old include style!). · 7990e38b
      barraclough@apple.com authored
      * bindings/v8/V8DOMWindowShell.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65288 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7990e38b
    • morrita@google.com's avatar
      2010-08-12 MORITA Hajime <morrita@google.com> · 4d5f5470
      morrita@google.com authored
              Reviewed by Tony Chang.
      
              [Refactoring] TextEvent class has to many flags
              https://bugs.webkit.org/show_bug.cgi?id=43893
      
              Turned TextEvent::m_isLineBreak, TextEvent::m_isBacktab, TextEvent::m_isPaste
              into single TextEvent::m_inputType enumeration.
      
              No functional change. No new tests.
      
              * dom/TextEvent.cpp:
              (WebCore::TextEvent::selectInputType):
              (WebCore::TextEvent::create):
              (WebCore::TextEvent::createForPlainTextPaste):
              (WebCore::TextEvent::createForFragmentPaste):
              (WebCore::TextEvent::TextEvent):
              * dom/TextEvent.h:
              (WebCore::TextEvent::):
              (WebCore::TextEvent::isLineBreak):
              (WebCore::TextEvent::isBackTab):
              (WebCore::TextEvent::isPaste):
              * page/EventHandler.cpp:
              (WebCore::EventHandler::handleTextInputEvent):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65287 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4d5f5470
    • kbr@google.com's avatar
      2010-08-12 Kenneth Russell <kbr@google.com> · 2d654f0f
      kbr@google.com authored
              Reviewed by David Levin.
      
              Delete obsolete CanvasNumberArray
              https://bugs.webkit.org/show_bug.cgi?id=38619
      
              Deleted unreferenced code. Built WebKit and Chromium to test.
      
              * Android.derived.jscbindings.mk:
              * Android.derived.v8bindings.mk:
              * Android.jscbindings.mk:
              * Android.mk:
              * bindings/js/JSCanvasNumberArrayCustom.cpp: Removed.
              * html/canvas/CanvasNumberArray.cpp: Removed.
              * html/canvas/CanvasNumberArray.h: Removed.
              * html/canvas/CanvasNumberArray.idl: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65285 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2d654f0f
    • antonm@chromium.org's avatar
      2010-08-12 Anton Muhin <antonm@chromium.org> · 37c68c01
      antonm@chromium.org authored
              Reviewed by Nate Chapin.
      
              [v8] Create callbacks for named access of elements from document object on fly.
              https://bugs.webkit.org/show_bug.cgi?id=43725
      
              That should speed up access to methods on document as there is no need to
              consult with interceptor before invoking the method.
      
              This reapplies http://trac.webkit.org/changeset/60670 reverted with
              http://trac.webkit.org/changeset/63845.  The main difference is in treatment
              of removed named elements: we don't remove an accessor any more, but leave it.
              Therefore any accessor should be able to treat the case when there is no
              expando property.
      
              * bindings/scripts/CodeGeneratorV8.pm:
              * bindings/v8/ScriptController.cpp:
              (WebCore::ScriptController::namedItemAdded):
              (WebCore::ScriptController::namedItemRemoved):
              * bindings/v8/V8DOMWindowShell.cpp:
              (WebCore::checkDocumentWrapper):
              (WebCore::V8DOMWindowShell::updateDocumentWrapperCache):
              (WebCore::getter):
              (WebCore::V8DOMWindowShell::namedItemAdded):
              (WebCore::V8DOMWindowShell::namedItemRemoved):
              * bindings/v8/V8DOMWindowShell.h:
              * bindings/v8/V8DOMWrapper.cpp:
              (WebCore::V8DOMWrapper::instantiateV8Object):
              * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
              (WebCore::V8HTMLDocument::WrapInShadowObject):
              (WebCore::V8HTMLDocument::GetNamedProperty):
              (WebCore::V8HTMLDocument::allAccessorSetter):
              (WebCore::toV8):
              * html/HTMLDocument.cpp:
              (WebCore::HTMLDocument::removeItemFromMap):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65284 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      37c68c01
    • dglazkov@chromium.org's avatar
      2010-08-12 Dimitri Glazkov <dglazkov@chromium.org> · f811b72e
      dglazkov@chromium.org authored
              Reviewed by Adam Barth.
      
              Ensure that parser doesn't attach children that have been removed by JavaScript event handlers.
              https://bugs.webkit.org/show_bug.cgi?id=43813
      
              This patch re-fixes bug 40742 in a way that keeps allowing HTMLLinkElement
              to lazy-attach.
      
              * html/HTMLConstructionSite.cpp:
              (WebCore::HTMLConstructionSite::attach): Added parent check.
              * html/HTMLLinkElement.cpp: Basically undoes changes introduced by r61424.
              * html/HTMLLinkElement.h: Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65281 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f811b72e
    • jschuh@chromium.org's avatar
      2010-08-12 Justin Schuh <jschuh@chromium.org> · 2229da06
      jschuh@chromium.org authored
              Reviewed by Dumitru Daniliuc.
      
              Clear PluginData's page pointer on page refresh
              https://bugs.webkit.org/show_bug.cgi?id=43888
      
              Test: plugins/access-after-page-destroyed.html
      
              * page/Page.cpp:
              (WebCore::Page::refreshPlugins):
      2010-08-12  Justin Schuh  <jschuh@chromium.org>
      
              Reviewed by Dumitru Daniliuc.
      
              Clear PluginData's page pointer on page refresh
              https://bugs.webkit.org/show_bug.cgi?id=43888
      
              * plugins/access-after-page-destroyed.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65280 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2229da06
    • zmo@google.com's avatar
      2010-08-12 Zhenyao Mo <zmo@google.com> · 51cb1660
      zmo@google.com authored
              Reviewed by Dimitri Glazkov.
      
              getParameter(STENCIL_VALUE_MASK) (and others) returns the wrong value
              https://bugs.webkit.org/show_bug.cgi?id=31842
      
              * html/canvas/WebGLRenderingContext.cpp:
              (WebCore::WebGLRenderingContext::getUnsignedLongParameter): Casting from int to unsigned long correctly.
      2010-08-12  Zhenyao Mo  <zmo@google.com>
      
              Reviewed by Dimitri Glazkov.
      
              getParameter(STENCIL_VALUE_MASK) (and others) returns the wrong value
              https://bugs.webkit.org/show_bug.cgi?id=31842
      
              * fast/canvas/webgl/gl-get-calls-expected.txt: Bring back the commented out STENCIL tests.
              * fast/canvas/webgl/gl-get-calls.html: Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65279 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      51cb1660
    • pfeldman@chromium.org's avatar
      2010-08-12 Pavel Feldman <pfeldman@chromium.org> · aefc84e8
      pfeldman@chromium.org authored
              Reviewed by Joseph Pecoraro.
      
              Web Inspector: mimic FireBug's array detection.
              https://bugs.webkit.org/show_bug.cgi?id=30974
      
              * inspector/front-end/InjectedScript.js:
              (injectedScriptConstructor):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65278 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aefc84e8
    • zmo@google.com's avatar
      2010-08-12 Zhenyao Mo <zmo@google.com> · f80ed605
      zmo@google.com authored
              Reviewed by Dimitri Glazkov.
      
              regression in generateMipmap
              https://bugs.webkit.org/show_bug.cgi?id=43873
      
              * html/canvas/WebGLTexture.cpp:
              (WebCore::WebGLTexture::generateMipmapLevelInfo): should set m_needToUseBlackTexture to false if generateMipmapLevelInfo runs through successfully.
      2010-08-12  Zhenyao Mo  <zmo@google.com>
      
              Reviewed by Dimitri Glazkov.
      
              regression in generateMipmap
              https://bugs.webkit.org/show_bug.cgi?id=43873
      
              * fast/canvas/webgl/texture-npot-expected.txt: Add more test cases on NPOT/POT texture behaviors.
              * fast/canvas/webgl/texture-npot.html: Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65277 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f80ed605
    • ariya@webkit.org's avatar
      2010-08-12 Ariya Hidayat <ariya@sencha.com> · e2cf8c8a
      ariya@webkit.org authored
              Reviewed by David Hyatt.
      
              [Qt] Split TransparencyLayer into its own header file.
              https://bugs.webkit.org/show_bug.cgi?id=43935
      
              * WebCore.pro: Include TransparencyLayer.h.
              * platform/graphics/qt/GraphicsContextQt.cpp:
              * platform/graphics/qt/TransparencyLayer.h: Added.
              (WebCore::TransparencyLayer::TransparencyLayer):
              (WebCore::TransparencyLayer::operator=):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65276 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e2cf8c8a
    • commit-queue@webkit.org's avatar
      2010-08-12 François Sausset <sausset@gmail.com> · eebc35ce
      commit-queue@webkit.org authored
              Reviewed by Beth Dakin.
      
              Update the tests to take into account padding changes for the mrow element.
              https://bugs.webkit.org/show_bug.cgi?id=43908
      
              * platform/mac/mathml/presentation/fractions-expected.checksum:
              * platform/mac/mathml/presentation/fractions-expected.png:
              * platform/mac/mathml/presentation/fractions-expected.txt:
              * platform/mac/mathml/presentation/fractions-vertical-alignment-expected.checksum:
              * platform/mac/mathml/presentation/fractions-vertical-alignment-expected.png:
              * platform/mac/mathml/presentation/fractions-vertical-alignment-expected.txt:
              * platform/mac/mathml/presentation/roots-expected.checksum:
              * platform/mac/mathml/presentation/roots-expected.png:
              * platform/mac/mathml/presentation/roots-expected.txt:
              * platform/mac/mathml/presentation/row-alignment-expected.checksum:
              * platform/mac/mathml/presentation/row-alignment-expected.png:
              * platform/mac/mathml/presentation/row-alignment-expected.txt:
              * platform/mac/mathml/presentation/row-expected.checksum:
              * platform/mac/mathml/presentation/row-expected.png:
              * platform/mac/mathml/presentation/row-expected.txt:
              * platform/mac/mathml/presentation/subsup-expected.checksum:
              * platform/mac/mathml/presentation/subsup-expected.png:
              * platform/mac/mathml/presentation/subsup-expected.txt:
              * platform/mac/mathml/presentation/underover-expected.checksum:
              * platform/mac/mathml/presentation/underover-expected.png:
              * platform/mac/mathml/presentation/underover-expected.txt:
      2010-08-12  François Sausset  <sausset@gmail.com>
      
              Reviewed by Beth Dakin.
      
              Horizontal padding should be 0 on mrow elements.
              https://bugs.webkit.org/show_bug.cgi?id=43908
      
              Updated tests in /mathml
      
              * css/mathml.css:
              (mrow, mfenced):
              (mfenced):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65275 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eebc35ce
    • aa@chromium.org's avatar
      2010-08-12 Aaron Boodman <aa@chromium.org> · c150aba7
      aa@chromium.org authored
              Reviewed by David Hyatt.
      
              Make the cascade level of "user" styles configurable
              https://bugs.webkit.org/show_bug.cgi?id=43457
      
              * WebCore.exp.in:
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::CSSStyleSelector):
              * dom/Document.cpp:
              (WebCore::Document::pageGroupUserSheets):
              * page/PageGroup.cpp:
              (WebCore::PageGroup::addUserStyleSheetToWorld):
              * page/PageGroup.h:
              * page/UserStyleSheet.h:
              (WebCore::UserStyleSheet::):
              (WebCore::UserStyleSheet::UserStyleSheet):
              (WebCore::UserStyleSheet::level):
      2010-08-12  Aaron Boodman  <aa@chromium.org>
      
              Reviewed by David Hyatt.
      
              Make the cascade level of "user" styles configurable
              https://bugs.webkit.org/show_bug.cgi?id=43457
      
              * src/WebViewImpl.cpp:
              (WebKit::WebView::addUserStyleSheet):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65273 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c150aba7
    • jianli@chromium.org's avatar
      Fix qt build break. · d2525bb7
      jianli@chromium.org authored
      * html/ThreadableBlobRegistry.cpp:
      (WebCore::postTaskToMainThread):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65272 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d2525bb7
    • jianli@chromium.org's avatar
      Add ThreadableBlobRegistry to support calling BlobRegistry methods in · ab8d91a8
      jianli@chromium.org authored
      main thread.
      https://bugs.webkit.org/show_bug.cgi?id=43874
      
      Reviewed by David Levin.
      
      * Android.mk:
      * CMakeLists.txt:
      * GNUmakefile.am:
      * WebCore.gypi:
      * WebCore.pro:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * dom/ScriptExecutionContext.cpp:
      (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
      (WebCore::ScriptExecutionContext::addBlob):
      (WebCore::ScriptExecutionContext::removeBlob):
      (WebCore::ScriptExecutionContext::createPublicBlobURL):
      (WebCore::ScriptExecutionContext::revokePublicBlobURL):
      * dom/ScriptExecutionContext.h:
      * html/Blob.cpp:
      (WebCore::Blob::Blob):
      (WebCore::Blob::~Blob):
      (WebCore::Blob::contextDestroyed):
      * html/Blob.h:
      * html/BlobRegistryImpl.cpp:
      (WebCore::BlobRegistryImpl::registerBlobURL):
      (WebCore::BlobRegistryImpl::unregisterBlobURL):
      (WebCore::BlobRegistryImpl::getBlobDataFromURL):
      * html/ThreadableBlobRegistry.cpp: Added.
      * html/ThreadableBlobRegistry.h: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65271 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ab8d91a8
    • ossy@webkit.org's avatar
      2010-08-12 Csaba Osztrogonác <ossy@webkit.org> · b7a30c60
      ossy@webkit.org authored
              Reviewed by Darin Adler.
      
              generate-bindings.pl should generate warning free code
              https://bugs.webkit.org/show_bug.cgi?id=43353
      
              * bindings/scripts/CodeGeneratorJS.pm: Suggested parentheses added around && within ||
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65269 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b7a30c60
    • rniwa@webkit.org's avatar
      2010-08-11 Ryosuke Niwa <rniwa@webkit.org> · 8803f22a
      rniwa@webkit.org authored
              Reviewed by Kent Tamura.
      
              merge MarkupAccumulator and MarkupAccumulatorWrapper
              https://bugs.webkit.org/show_bug.cgi?id=43834
      
              Removed MarkupAccumulator and added serializeNodesWithNamespaces to use MarkupAccumulatorWrapper
              in both versions of createMarkup.  Accumulation of nodes done manually in serializeNodes is
              now done by MarkupAccumulatorWrapper as done in the original MarkupAccumulator.
      
              No new tests added since this is a cleanup.
      
              * editing/markup.cpp:
              (WebCore::MarkupAccumulatorWrapper::MarkupAccumulatorWrapper): Takes vector of nodes and set it to m_nodes.
              (WebCore::MarkupAccumulatorWrapper::insertOpenTag): Adds node to m_nodes.
              (WebCore::MarkupAccumulatorWrapper::wrapWithNode): Adds node to m_nodes.
              (WebCore::serializeNodes): Adding node to nodes is moved into MarkupAccumulatorWrapper.
              (WebCore::createMarkup): Instantiates MarkupAccumulatorWrapper.
              (WebCore::serializeNodesWithNamespaces): Renamed from MarkupAccumulator::appendMarkup.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65265 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8803f22a
    • krit@webkit.org's avatar
      2010-08-12 Dirk Schulze <krit@webkit.org> · b9bba264
      krit@webkit.org authored
              Unreviewed sort of XCode project file.
      
              * WebCore.xcodeproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65261 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b9bba264
    • benm@google.com's avatar
      2010-08-12 Ben Murdoch <benm@google.com> · 5dce2230
      benm@google.com authored
              Reviewed by Pavel Feldman.
      
              InspectorController.h missing InspectorObject forward declaration
              https://bugs.webkit.org/show_bug.cgi?id=43913
      
              Build fix so no new tests.
      
              * inspector/InspectorController.h: Adds the necessary forward declaration.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65258 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5dce2230
    • commit-queue@webkit.org's avatar
      2010-08-12 Hui Huang <hui.2.huang@nokia.com> · 9401f0ce
      commit-queue@webkit.org authored
              Reviewed by Eric Seidel.
      
              m_windowRect is not updated because parent of PluginView is not
              set when updatePluginWidget is called. plugin gets wrong window
              size on setwindow.
              https://bugs.webkit.org/show_bug.cgi?id=43635
      
              * plugins/symbian/PluginViewSymbian.cpp:
              (WebCore::PluginView::setParent):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65249 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9401f0ce
    • pfeldman@chromium.org's avatar
      2010-08-12 Pavel Feldman <pfeldman@chromium.org> · 8130cd51
      pfeldman@chromium.org authored
              Not reviewed, re-apply r65241 and 65243.
      
              Web Inspector: brush up object proxies, introduce remote object model.
              https://bugs.webkit.org/show_bug.cgi?id=43847
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65248 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8130cd51
    • senorblanco@chromium.org's avatar
      2010-08-11 Stephen White <senorblanco@chromium.org> · e7ef0eaf
      senorblanco@chromium.org authored
              Reviewed by David Levin.
      
              Add support for BGRA pixel format to GraphicsContext3D.
              https://bugs.webkit.org/show_bug.cgi?id=43858
      
              Although this has been standard in desktop GL since 1.2, it's an 
              extension in GL ES 2.0, so a query function is provided to check
              for support.  The DefaultImpl returns false, since it does not yet
              implement the TexImage2D internalFormat quirks.
      
              * public/WebGraphicsContext3D.h:
              (WebKit::WebGraphicsContext3D::supportsBGRA):
              * src/GraphicsContext3D.cpp:
              * src/WebGraphicsContext3DDefaultImpl.cpp:
              (WebKit::WebGraphicsContext3DDefaultImpl::supportsBGRA):
              * src/WebGraphicsContext3DDefaultImpl.h:
      2010-08-11  Stephen White  <senorblanco@chromium.org>
      
              Reviewed by David Levin.
      
              Add support for BGRA pixel format to GraphicsContext3D.
              https://bugs.webkit.org/show_bug.cgi?id=43858
      
              Although this has been standard in desktop GL since 1.2, it's an 
              extension in GL ES 2.0, so a query function is provided to check
              for support.  Since they differ on semantics (GL ES 2.0 requires 
              TexImage2D()'s format and internalFormat to match, while desktop GL
              will not accept BGRA as an internalFormat), the stub implementation
              returns false until these quirks have been implemented and tested on
              each port.
      
              * platform/graphics/GraphicsContext3D.cpp:
              (WebCore::GraphicsContext3D::supportsBGRA):
              Add implementation for non-chromium platforms which returns false.
              * platform/graphics/GraphicsContext3D.h:
              (WebCore::GraphicsContext3D::):
              Add query function (supportsBGRA()) and the BGRA_EXT token.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65247 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e7ef0eaf
    • pfeldman@chromium.org's avatar
      2010-08-12 Pavel Feldman <pfeldman@chromium.org> · 89c57432
      pfeldman@chromium.org authored
              Not reviewed. Rolling out r65241 and 65243 for breaking inspector tests.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65245 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      89c57432
    • pfeldman@chromium.org's avatar
      2010-08-12 Pavel Feldman <pfeldman@chromium.org> · d6057452
      pfeldman@chromium.org authored
              Not reviewed. Adding the file missing in r65241.
      
              * inspector/front-end/RemoteObject.js: Added.
              (WebInspector.RemoteObjectId):
              (WebInspector.RemoteObject):
              (WebInspector.RemoteObject.fromPrimitiveValue):
              (WebInspector.RemoteObject.fromNode):
              (WebInspector.RemoteObject.fromPayload):
              (WebInspector.RemoteObject.type):
              (WebInspector.RemoteObject.prototype.get objectId):
              (WebInspector.RemoteObject.prototype.get type):
              (WebInspector.RemoteObject.prototype.get description):
              (WebInspector.RemoteObject.prototype.get hasChildren):
              (WebInspector.RemoteObject.prototype.isError):
              (WebInspector.RemoteObject.prototype.getPropertyValueDescriptions):
              (WebInspector.RemoteObject.prototype.getOwnProperties):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65243 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d6057452
    • pfeldman@chromium.org's avatar
      2010-08-12 Pavel Feldman <pfeldman@chromium.org> · ff970a23
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: brush up object proxies, introduce remote object model.
              https://bugs.webkit.org/show_bug.cgi?id=43847
      
              * WebCore.gypi:
              * WebCore.vcproj/WebCore.vcproj:
              * inspector/front-end/AuditRules.js:
              (WebInspector.AuditRules.CssInHeadRule.prototype.doRun):
              (WebInspector.AuditRules.StylesScriptsOrderRule.prototype.doRun):
              * inspector/front-end/ConsoleView.js:
              (WebInspector.ConsoleView.prototype.doEvalInWindow):
              (WebInspector.ConsoleView.prototype._enterKeyPressed.printResult):
              (WebInspector.ConsoleView.prototype._enterKeyPressed):
              (WebInspector.ConsoleView.prototype._format):
              (WebInspector.ConsoleView.prototype._formatnode):
              (WebInspector.ConsoleView.prototype._formatarray):
              (WebInspector.ConsoleView.prototype._formatAsArrayEntry):
              (WebInspector.ConsoleMessage.prototype._format):
              (WebInspector.ConsoleCommandResult):
              * inspector/front-end/DOMAgent.js:
              (WebInspector.DOMNode):
              * inspector/front-end/ElementsTreeOutline.js:
              (WebInspector.ElementsTreeElement.prototype._createTooltipForNode):
              * inspector/front-end/EventListenersSidebarPane.js:
              * inspector/front-end/InjectedScript.js:
              (injectedScriptConstructor):
              (injectedScriptConstructor.):
              * inspector/front-end/ObjectPropertiesSection.js:
              (WebInspector.ObjectPropertiesSection.prototype.update):
              (WebInspector.ObjectPropertiesSection.prototype.updateProperties):
              (WebInspector.ObjectPropertyTreeElement.prototype.onpopulate):
              (WebInspector.ObjectPropertyTreeElement.prototype.update):
              (WebInspector.ObjectPropertyTreeElement.prototype.applyExpression):
              * inspector/front-end/ObjectProxy.js: Removed.
              * inspector/front-end/PropertiesSidebarPane.js:
              (WebInspector.PropertiesSidebarPane.prototype.update.callback):
              * inspector/front-end/RemoteObject.js: Added.
              (WebInspector.RemoteObjectId):
              (WebInspector.RemoteObject):
              (WebInspector.RemoteObject.fromPrimitiveValue):
              (WebInspector.RemoteObject.fromErrorMessage):
              (WebInspector.RemoteObject.fromNode):
              (WebInspector.RemoteObject.fromPayload):
              (WebInspector.RemoteObject.type):
              (WebInspector.RemoteObject.prototype.get objectId):
              (WebInspector.RemoteObject.prototype.get type):
              (WebInspector.RemoteObject.prototype.get description):
              (WebInspector.RemoteObject.prototype.get hasChildren):
              (WebInspector.RemoteObject.prototype.isError):
              (WebInspector.RemoteObject.prototype.getPropertyValueDescriptions):
              (WebInspector.RemoteObject.prototype.getOwnProperties):
              (WebInspector.RemoteObject.prototype.getProperties.remoteObjectBinder):
              (WebInspector.RemoteObjectProperty):
              * inspector/front-end/ScopeChainSidebarPane.js:
              (WebInspector.ScopeChainSidebarPane.prototype.update):
              * inspector/front-end/ScriptsPanel.js:
              (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame.updatingCallbackWrapper):
              (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame):
              (WebInspector.ScriptsPanel.prototype.doEvalInCallFrame):
              * inspector/front-end/SourceFrame.js:
              (WebInspector.SourceFrame.prototype._showPopup.evaluateCallback):
              (WebInspector.SourceFrame.prototype._showPopup):
              (WebInspector.SourceFrame.prototype._evalSelectionInCallFrame):
              * inspector/front-end/WatchExpressionsSidebarPane.js:
              (WebInspector.WatchExpressionsSection.prototype.update):
              (WebInspector.WatchExpressionTreeElement.prototype.update):
              * inspector/front-end/WebKit.qrc:
              * inspector/front-end/inspector.html:
              * inspector/front-end/inspector.js:
              (WebInspector.log.logMessage):
              (WebInspector.log):
              * inspector/front-end/utilities.js:
      
      2010-08-12  Pavel Feldman  <pfeldman@chromium.org>
      
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: brush up object proxies, introduce remote object model.
              https://bugs.webkit.org/show_bug.cgi?id=43847
      
              * inspector/console-dir-expected.txt:
              * inspector/console-dir-global.html:
              * inspector/console-dir.html:
              * inspector/console-format-collections-expected.txt:
              * inspector/console-format-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65241 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ff970a23