1. 13 Feb, 2013 40 commits
    • mrobinson@webkit.org's avatar
      Try once again to fix the build after r142756 · 01173980
      mrobinson@webkit.org authored
      * Source/autotools/PrintBuildConfiguration.m4: Do not try to print the GStreamer version
      in the build output.
      * Source/autotools/SetupAutoconfHeader.m4: Remove the last reference to have_gstreamer.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142818 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      01173980
    • ossy@webkit.org's avatar
      One more buildfix for !ENABLE(PLUGIN_PROCESS) platforms. · 130dee5c
      ossy@webkit.org authored
      Patch by Csaba Osztrogonác <ossy@webkit.org> on 2013-02-13
      
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::WebProcess):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142817 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      130dee5c
    • inferno@chromium.org's avatar
      ASSERTION FAILED: !object || object->isBox(), Bad cast in RenderBox::computeLogicalHeight · 0b734638
      inferno@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=107748
      
      Reviewed by Levi Weintraub.
      
      Source/WebCore:
      
      Make sure that body renderer is not an inline-block display
      when determining that it stretches to viewport or when paginated
      content needs base height.
      
      Test: fast/block/body-inline-block-crash.html
      
      * rendering/RenderBox.cpp:
      (WebCore::RenderBox::computeLogicalHeight):
      * rendering/RenderBox.h:
      (WebCore::RenderBox::stretchesToViewport):
      
      LayoutTests:
      
      * fast/block/body-inline-block-crash-expected.txt: Added.
      * fast/block/body-inline-block-crash.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142816 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0b734638
    • shawnsingh@chromium.org's avatar
      Fix debug assertion being triggered because we may access dirty normalFlowList. · c6911807
      shawnsingh@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=109740
      
      A debug assertion in RenderLayer.h is being hit when trying to
      access the normalFlowList when it is dirty.  This is caused by a
      new recursion that I added in RenderLayerBacking::hasVisibleNonCompositingDescendant(),
      but I overlooked the need to call updateLayerListsIfNeeded()
      recursively as well.
      
      Reviewed by Simon Fraser.
      
      No test, because there's no reliable way to test this (same as bug 85512).
      
      * rendering/RenderLayerBacking.cpp:
      (WebCore::hasVisibleNonCompositingDescendant):
      (WebCore::RenderLayerBacking::hasVisibleNonCompositingDescendantLayers):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142815 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c6911807
    • roger_fong@apple.com's avatar
      Unreviewed. Add some missing property sheets for TestWebKitAPI. · 9312d327
      roger_fong@apple.com authored
      * TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPICommon.props: Added.
      * TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPIDebug.props: Added.
      * TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPIRelease.props: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142814 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9312d327
    • oliver@apple.com's avatar
      Yet another build fix · 3819eb51
      oliver@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142813 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3819eb51
    • ossy@webkit.org's avatar
      Unreviewed Qt-Mac and Qt-Win buildfix after r142768. · 1b772ba7
      ossy@webkit.org authored
      Patch by Csaba Osztrogonác <ossy@webkit.org> on 2013-02-13
      
      * WebProcess/WebProcess.h:
      (WebKit):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142812 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1b772ba7
    • antti@apple.com's avatar
      Don't restart shared timer if both the current and the new fire time are in the past · 7c875151
      antti@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=109731
      
      Reviewed by Andreas Kling.
      
      In 40-50% of cases we reschedule the shared timer both the old and the new fire time have already passed. This can happen at least when rescheduling 
      a zero duration timer and when stopping a timer that was ready to fire.
      
      We can skip rescheduling in this case, the shared timer will fire immediately anyway.
              
      Scheduling timers calls into platform layer and can be slow. This about halves the time under setSharedTimerFireInterval in PLT3
      for ~0.1% total CPU time reduction.
      
      * platform/ThreadTimers.cpp:
      (WebCore::ThreadTimers::ThreadTimers):
      (WebCore::ThreadTimers::setSharedTimer):
      (WebCore::ThreadTimers::updateSharedTimer):
      (WebCore::ThreadTimers::sharedTimerFiredInternal):
      * platform/ThreadTimers.h:
      (ThreadTimers):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142811 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7c875151
    • zandobersek@gmail.com's avatar
      The 'global isinf/isnan' compiler quirk required when using clang with libstdc++ · 9182d475
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=109325
      
      Reviewed by Anders Carlsson.
      
      Prefix calls to the isinf and isnan methods with std::, declaring we want to use the
      two methods as they're provided by the C++ standard library being used.
      
      Source/JavaScriptCore: 
      
      * API/JSValueRef.cpp:
      (JSValueMakeNumber):
      * JSCTypedArrayStubs.h:
      (JSC):
      * bytecompiler/BytecodeGenerator.cpp:
      (JSC::BytecodeGenerator::emitLoad):
      * dfg/DFGByteCodeParser.cpp:
      (JSC::DFG::ByteCodeParser::constantNaN):
      * offlineasm/cloop.rb:
      * runtime/DateConstructor.cpp:
      (JSC::dateUTC): Also include an opportunistic style fix.
      * runtime/DateInstance.cpp:
      (JSC::DateInstance::calculateGregorianDateTime):
      (JSC::DateInstance::calculateGregorianDateTimeUTC):
      * runtime/DatePrototype.cpp:
      (JSC::dateProtoFuncGetMilliSeconds):
      (JSC::dateProtoFuncGetUTCMilliseconds):
      (JSC::setNewValueFromTimeArgs):
      (JSC::setNewValueFromDateArgs):
      (JSC::dateProtoFuncSetYear):
      * runtime/JSCJSValue.cpp:
      (JSC::JSValue::toInteger):
      * runtime/JSDateMath.cpp:
      (JSC::getUTCOffset):
      (JSC::parseDateFromNullTerminatedCharacters):
      (JSC::parseDate):
      * runtime/JSGlobalObjectFunctions.cpp:
      (JSC::globalFuncIsNaN):
      * runtime/MathObject.cpp:
      (JSC::mathProtoFuncMax):
      (JSC::mathProtoFuncMin):
      (JSC::mathProtoFuncPow):
      * runtime/PropertyDescriptor.cpp:
      (JSC::sameValue):
      
      Source/WebCore: 
      
      No new tests as there's no change in functionality.
      
      * Modules/mediasource/MediaSource.cpp:
      (WebCore::MediaSource::setDuration):
      * Modules/webaudio/AudioBufferSourceNode.cpp:
      (WebCore::AudioBufferSourceNode::totalPitchRate):
      * Modules/webaudio/AudioParam.cpp:
      (WebCore::AudioParam::setValue):
      * Modules/webaudio/AudioParamTimeline.cpp:
      (WebCore::isValidNumber):
      * Modules/webaudio/PannerNode.cpp:
      (WebCore::fixNANs):
      * bindings/js/IDBBindingUtilities.cpp:
      (WebCore::createIDBKeyFromValue):
      * bindings/js/JSDataViewCustom.cpp:
      (WebCore::getDataViewMember):
      * bindings/js/JSGeolocationCustom.cpp:
      (WebCore::setTimeout):
      (WebCore::setMaximumAge):
      * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
      (WebCore::JSHTMLOptionsCollection::setLength):
      * bindings/js/JSWebKitPointCustom.cpp:
      (WebCore::JSWebKitPointConstructor::constructJSWebKitPoint):
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateImplementation):
      (GenerateParametersCheck):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateParametersCheck):
      * bindings/scripts/test/JS/JSFloat64Array.cpp:
      (WebCore::JSFloat64Array::getByIndex):
      * bindings/scripts/test/JS/JSTestObj.cpp:
      (WebCore::jsTestObjPrototypeFunctionClassMethodWithClamp):
      * bindings/scripts/test/V8/V8TestObj.cpp:
      (WebCore::TestObjV8Internal::classMethodWithClampCallback):
      * bindings/v8/IDBBindingUtilities.cpp:
      (WebCore::createIDBKeyFromValue):
      * bindings/v8/V8Binding.cpp:
      (WebCore::toInt32):
      (WebCore::toUInt32):
      * bindings/v8/custom/V8GeolocationCustom.cpp:
      (WebCore::createPositionOptions):
      * bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp:
      (WebCore::V8HTMLOptionsCollection::lengthAccessorSetter):
      * bindings/v8/custom/V8WebKitPointCustom.cpp:
      (WebCore::V8WebKitPoint::constructorCallbackCustom):
      * bridge/qt/qt_runtime.cpp:
      (JSC::Bindings::convertValueToQVariant):
      * css/WebKitCSSMatrix.cpp:
      (WebCore::WebKitCSSMatrix::translate):
      (WebCore::WebKitCSSMatrix::scale):
      (WebCore::WebKitCSSMatrix::rotate):
      (WebCore::WebKitCSSMatrix::rotateAxisAngle):
      (WebCore::WebKitCSSMatrix::skewX):
      (WebCore::WebKitCSSMatrix::skewY):
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::percentLoaded):
      (WebCore::HTMLMediaElement::mediaPlayerTimeChanged):
      (WebCore::HTMLMediaElement::endedPlayback):
      * html/MediaController.cpp:
      (MediaController::duration):
      * html/canvas/WebGLRenderingContext.cpp:
      (WebCore):
      (WebCore::WebGLRenderingContext::clearColor):
      * html/track/TextTrack.cpp:
      (WebCore::TextTrack::addCue):
      * html/track/TextTrackCue.cpp:
      (WebCore::TextTrackCue::setStartTime):
      (WebCore::TextTrackCue::setEndTime):
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::adjustWindowRect):
      * page/WindowFeatures.cpp:
      (WebCore::WindowFeatures::floatFeature): Also include an opportunistic style fix.
      * platform/CalculationValue.cpp:
      (WebCore::CalculationValue::evaluate):
      * platform/Decimal.cpp:
      (WebCore::Decimal::fromDouble):
      * platform/Length.cpp:
      (WebCore::Length::nonNanCalculatedValue):
      * platform/audio/AudioResampler.cpp:
      (WebCore::AudioResampler::setRate):
      * platform/audio/DynamicsCompressorKernel.cpp:
      (WebCore::DynamicsCompressorKernel::process):
      * platform/audio/Reverb.cpp:
      (WebCore::calculateNormalizationScale):
      * platform/graphics/Font.cpp:
      (WebCore::Font::width):
      * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
      (WebCore::MediaPlayerPrivateAVFoundation::isLiveStream):
      * platform/graphics/gpu/LoopBlinnMathUtils.cpp:
      (LoopBlinnMathUtils):
      * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
      (WebCore::MediaPlayerPrivateGStreamer::buffered):
      (WebCore::MediaPlayerPrivateGStreamer::maxTimeSeekable):
      * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
      (WebCore::MediaPlayerPrivateQTKit::maxTimeSeekable):
      * platform/graphics/opentype/OpenTypeVerticalData.cpp:
      (WebCore::OpenTypeVerticalData::getVerticalTranslationsForGlyphs):
      * platform/graphics/transforms/TransformationMatrix.cpp:
      (WebCore::clampEdgeValue):
      (WebCore::TransformationMatrix::clampedBoundsOfProjectedQuad):
      * platform/network/ResourceResponseBase.cpp:
      (WebCore::ResourceResponseBase::parseCacheControlDirectives):
      * rendering/RenderMediaControlsChromium.cpp:
      (WebCore::paintMediaSlider):
      (WebCore::paintMediaVolumeSlider):
      * rendering/RenderThemeMac.mm:
      (WebCore::RenderThemeMac::paintMediaSliderTrack):
      * svg/SVGAnimationElement.cpp:
      (WebCore::SVGAnimationElement::beginElementAt):
      (WebCore::SVGAnimationElement::endElementAt):
      * svg/SVGSVGElement.cpp:
      (WebCore::SVGSVGElement::setCurrentTime):
      * svg/animation/SMILTime.h:
      (WebCore::SMILTime::SMILTime):
      * svg/animation/SVGSMILElement.cpp:
      (WebCore::SVGSMILElement::addBeginTime):
      (WebCore::SVGSMILElement::addEndTime):
      * xml/XPathFunctions.cpp:
      (WebCore::XPath::FunSubstring::evaluate):
      (WebCore::XPath::FunRound::round):
      * xml/XPathValue.cpp:
      (WebCore::XPath::Value::toBoolean): Also include an opportunistic style fix.
      (WebCore::XPath::Value::toString):
      
      Source/WebKit/chromium: 
      
      * tests/DecimalTest.cpp:
      (TEST_F):
      
      Source/WebKit/mac: 
      
      * tests/DecimalTest.cpp:
      (TEST_F):
      
      Source/WTF: 
      
      * wtf/Compiler.h: Remove the global isinf/isnan compiler quirk definitions. They're not required anymore.
      * wtf/DateMath.cpp: Move the workaround for isinf on Solaris into the std namespace. Ditto for isinf and isnan
      when using MSVC. Stop bringing the isinf and isnan methods into the global scope when using other configurations.
      (WTF::parseDateFromNullTerminatedCharacters):
      * wtf/IntegralTypedArrayBase.h:
      (WTF::IntegralTypedArrayBase::set):
      * wtf/MathExtras.h:
      (std):
      (std::isinf):
      (wtf_fmod):
      (wtf_pow):
      (doubleToInteger):
      * wtf/MediaTime.cpp:
      (WTF::MediaTime::createWithFloat):
      (WTF::MediaTime::createWithDouble):
      * wtf/Uint8ClampedArray.h:
      (WTF::Uint8ClampedArray::set):
      
      Tools: 
      
      * DumpRenderTree/TestRunner.cpp:
      (setAppCacheMaximumSizeCallback):
      (setApplicationCacheOriginQuotaCallback):
      (setDatabaseQuotaCallback):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142810 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9182d475
    • eric.carlson@apple.com's avatar
      [Mac] Caption menu should have only one item selected · 70109507
      eric.carlson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=109730
      
      Reviewed by Dean Jackson.
      
      Source/WebCore: 
      
      No new tests, media/track/track-user-preferences.html was modified to test the changes.
      
      * CMakeLists.txt: Add CaptionUserPreferences.cpp.
      * GNUmakefile.list.am: Ditto.
      * Target.pri: Ditto.
      * WebCore.gypi: Ditto.
      * WebCore.vcproj/WebCore.vcproj: Ditto.
      * WebCore.vcxproj/WebCore.vcxproj: Ditto.
      * WebCore.xcodeproj/project.pbxproj: Ditto.
      
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::HTMLMediaElement): Initialize m_processingPreferenceChange.
      (WebCore::HTMLMediaElement::configureTextTrackGroup): Only end up with one selected track when
          called because of a preferences change.
      (WebCore::HTMLMediaElement::captionPreferencesChanged): Call setClosedCaptionsVisible instead
          of calling markCaptionAndSubtitleTracksAsUnconfigured directly.
      (WebCore::HTMLMediaElement::markCaptionAndSubtitleTracksAsUnconfigured): Process all tracks, 
          not just track elements.
      * html/HTMLMediaElement.h:
      
      * page/CaptionUserPreferences.cpp: Added so the functionality can be tested in DRT.
      (WebCore::CaptionUserPreferences::registerForPreferencesChangedCallbacks):
      (WebCore::CaptionUserPreferences::unregisterForPreferencesChangedCallbacks):
      (WebCore::CaptionUserPreferences::setUserPrefersCaptions):
      (WebCore::CaptionUserPreferences::captionPreferencesChanged):
      (WebCore::CaptionUserPreferences::preferredLanguages):
      (WebCore::CaptionUserPreferences::setPreferredLanguage):
      (WebCore::CaptionUserPreferences::displayNameForTrack):
      * page/CaptionUserPreferences.h:
      
      * page/CaptionUserPreferencesMac.h:
      * page/CaptionUserPreferencesMac.mm:
      (WebCore::CaptionUserPreferencesMac::registerForPreferencesChangedCallbacks): Moved some logic
          to base class.
      (WebCore::CaptionUserPreferencesMac::captionPreferencesChanged): Ditto.
      
      LayoutTests: 
      
      * media/track/track-user-preferences-expected.txt:
      * media/track/track-user-preferences.html: Update test to check for reactions to preferences.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142809 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      70109507
    • aelias@chromium.org's avatar
      [chromium] Fix scaling in WebViewImpl::handleGestureEvent · c225a4dc
      aelias@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=109671
      
      Reviewed by James Robinson.
      
      My last patch broke a bunch of things in handleGestureEvent that
      assumed the event came in scaled, most notably tap highlight and
      double-tap zoom. Switch those to PlatformGestureEvent.
      
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::handleGestureEvent):
      (WebKit::WebViewImpl::bestTapNode):
      (WebKit::WebViewImpl::enableTapHighlight):
      * src/WebViewImpl.h:
      (WebViewImpl):
      * tests/LinkHighlightTest.cpp:
      (WebCore::TEST):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142808 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c225a4dc
    • abarth@webkit.org's avatar
      Remove bogus ASSERT in WebFrameProxy::didStartProvisionalLoad · 09dd5307
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=109733
      
      Reviewed by Sam Weinig.
      
      After http://trac.webkit.org/changeset/142555, this ASSERT is
      triggering on these tests:
      
      fast/dom/window-load-crash.html
      fast/frames/seamless/seamless-hyperlink-named.html
      fast/frames/seamless/seamless-hyperlink.html
      
      The ASSERT appears to be bogus. This patch removes it.
      
      * UIProcess/WebFrameProxy.cpp:
      (WebKit::WebFrameProxy::didStartProvisionalLoad):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142807 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      09dd5307
    • weinig@apple.com's avatar
      Consolidate main functions in WebKit2 now that they are all identical · 12c45689
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=109748
      
      Reviewed by Anders Carlsson.
      
      - Consolidates all the LegacyProcess main functions into ChildProcessMain.mm
      - Consolidates all the XPCService main functions into XPCServiceMain.mm and XPCServiceMain.Development.mm
      - Rename existing ChildProcessMain.h/mm to ChildProcessEntryPoint.h/mm to match the XPCService ones.
      - Switch LegacyProcess to use the "entry point in the plist" idiom, instead of hard coding each one, again
        matching the XPCService.
      
      * Configurations/BaseLegacyProcess.xcconfig: Add base configuration to hold common legacy process options.
      * Configurations/BaseXPCService.xcconfig:
      * Configurations/NetworkProcess.xcconfig:
      * Configurations/OfflineStorageProcess.xcconfig:
      * Configurations/PluginProcess.xcconfig:
      * Configurations/SharedWorkerProcess.xcconfig:
      * Configurations/WebContentProcess.xcconfig: Renamed form  WebProcess.xcconfig.
      * NetworkProcess/EntryPoint/mac/LegacyProcess/Info.plist:
      * NetworkProcess/EntryPoint/mac/LegacyProcess/NetworkProcessMain.mm:
      * NetworkProcess/EntryPoint/mac/LegacyProcess/NetworkProcessMainBootstrapper.cpp: Removed.
      * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/NetworkServiceMain.Development.mm: Removed.
      * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/NetworkServiceMain.mm: Removed.
      * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/Info.plist:
      * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/OfflineStorageProcessMain.mm:
      * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/OfflineStorageProcessMainBootstrapper.cpp: Removed.
      * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService.Development/OfflineStorageServiceMain.Development.mm: Removed.
      * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService/OfflineStorageServiceMain.mm: Removed.
      * PluginProcess/EntryPoint/mac/LegacyProcess/Info.plist:
      * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
      * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMainBootstrapper.cpp: Removed.
      * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/PluginService.64.Main.mm: Removed.
      * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/PluginService.Development.Main.mm: Removed.
      * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.h: 
      * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.mm: 
      * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.h: Removed.
      * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.mm: Replaced.
      * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMainBootstrapper.h: Removed.
      * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.Development.h: Removed.
      * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.h: Removed.
      * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm:
      * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.mm:
      * SharedWorkerProcess/EntryPoint/mac/LegacyProcess/Info.plist:
      * SharedWorkerProcess/EntryPoint/mac/LegacyProcess/SharedWorkerProcessMain.mm:
      * SharedWorkerProcess/EntryPoint/mac/LegacyProcess/SharedWorkerProcessMainBootstrapper.cpp: Removed.
      * WebProcess/EntryPoint/mac/LegacyProcess/Info.plist:
      * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm:
      * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMainBootstrapper.cpp: Removed.
      * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/WebContentServiceMain.Development.mm: Removed.
      * WebProcess/EntryPoint/mac/XPCService/WebContentService/WebContentServiceMain.mm: Removed.
      * WebKit2.xcodeproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142806 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      12c45689
    • commit-queue@webkit.org's avatar
      [CSS Exclusions] ExclusionPolygon reflex vertices should constrain the first fit location. · a465a237
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=107568
      
      Patch by Hans Muller <hmuller@adobe.com> on 2013-02-13
      Reviewed by Dirk Schulze.
      
      Source/WebCore:
      
      The ExclusionPolygon::firstIncludedIntervalLogicalTop() method now includes offset edges
      for each of the polygon's reflex vertices. The motivation for this change is explained
      here: http://hansmuller-webkit.blogspot.com/2013/01/getting-to-point-reflex-vertices.html.
      
      Test: fast/exclusions/shape-inside/shape-inside-first-fit-reflex.html
      
      * rendering/ExclusionPolygon.cpp:
      (WebCore::isReflexVertex): Given three vertices that represent a pair of connected polygon edges, return true if the second vertex is a reflex vertex.
      (WebCore::ExclusionPolygon::firstIncludedIntervalLogicalTop): This method now includes offset edges for reflex vertices.
      * rendering/ExclusionPolygon.h:
      (WebCore::OffsetPolygonEdge::OffsetPolygonEdge): Added a constructor for creating an OffsetPolygonEdge given a reflex vertex.
      (WebCore::OffsetPolygonEdge::edgeIndex): Changed this property from unsigned to int. Now using -1 to indicate that the offset edge doesn't correspond to a single polygon edge.
      
      LayoutTests:
      
      In this carefully contrived test case, the Y coordinate of the origin of the line
      of text is only computed correctly if the constraints implied by the polygon's
      reflex vertices are considered.
      
      * fast/exclusions/shape-inside/shape-inside-first-fit-reflex-expected.html: Added.
      * fast/exclusions/shape-inside/shape-inside-first-fit-reflex.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142805 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a465a237
    • fpizlo@apple.com's avatar
      Change another use of (SpecCell & ~SpecString) to SpecObject. · ee2b6c1e
      fpizlo@apple.com authored
      Reviewed by Mark Hahnenberg.
      
      * dfg/DFGAbstractState.cpp:
      (JSC::DFG::AbstractState::execute):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142804 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ee2b6c1e
    • abarth@webkit.org's avatar
      CSSPreloadScanner should not depend on HTMLToken · 2e1ffde8
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=109742
      
      Reviewed by Eric Seidel.
      
      There's no need for the CSSPreloadScanner to depend on HTMLToken. On
      the background thread, we'll likely want to use a CompactHTMLToken for
      preload scanning, so this dependency is problematic. This patch also
      teaches the CSSPreloadScanner how to scan LChars.
      
      * html/parser/CSSPreloadScanner.cpp:
      (WebCore::CSSPreloadScanner::~CSSPreloadScanner):
      (WebCore):
      (WebCore::CSSPreloadScanner::scan):
      * html/parser/CSSPreloadScanner.h:
      (CSSPreloadScanner):
      * html/parser/HTMLPreloadScanner.cpp:
      (WebCore::HTMLPreloadScanner::processToken):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142803 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2e1ffde8
    • commit-queue@webkit.org's avatar
      cr-linux debug should use clang and maybe be a components build · 9494e014
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=108512
      
      Patch by Alan Cutter <alancutter@chromium.org> on 2013-02-13
      Reviewed by Adam Barth.
      
      Modified GCE cr-linux-debug-ews bot build scripts to configure clang over gcc for build performance.
      Build bots will update clang with each bot cycle.
      Updated GCE image paths to suit gcutil 1.6.1.
      
      * EWSTools/GoogleComputeEngine/build-chromium-ews.sh:
      * EWSTools/GoogleComputeEngine/build-commit-queue.sh:
      * EWSTools/GoogleComputeEngine/build-cr-linux-debug-ews.sh:
      * EWSTools/GoogleComputeEngine/build-feeder-style-sheriffbot.sh:
      * EWSTools/configure-clang-linux.sh: Copied from Tools/EWSTools/GoogleComputeEngine/build-chromium-ews.sh.
      * EWSTools/start-queue.sh:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142802 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9494e014
    • ap@apple.com's avatar
      Fix !ENABLE(BLOB) build. · 4ee4ee41
      ap@apple.com authored
              Reviewed by NOBODY (OOPS!).
      
              * fileapi/ThreadableBlobRegistry.cpp:
              (WebCore::ThreadableBlobRegistry::getCachedOrigin):
              * page/SecurityOrigin.cpp:
              (WebCore::getCachedOrigin):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142801 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4ee4ee41
    • fpizlo@apple.com's avatar
      ForwardInt32ToDouble is not in DFG::MinifiedNode's list of relevant node types · 2132ebae
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=109726
      
      Reviewed by Mark Hahnenberg.
              
      If you add it to the list of relevant node types, you also need to make sure
      it's listed as either hasChild or one of the other kinds. Otherwise you get
      an assertion. This is causing test failures in run-javascriptcore-tests.
      
      * dfg/DFGMinifiedNode.h:
      (JSC::DFG::MinifiedNode::hasChild):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142800 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2132ebae
    • zandobersek@gmail.com's avatar
      Unreviewed GTK gardening. · cb3d32ce
      zandobersek@gmail.com authored
      Marking a few tests as slow on the debug builds. This shall prevent them timing out unnecessarily.
      
      * platform/gtk/TestExpectations:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142799 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cb3d32ce
    • jchaffraix@webkit.org's avatar
      [CSS Grid Layout] Adding or removing grid items doesn't properly recompute the track sizes · afbeefa2
      jchaffraix@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=109100
      
      Reviewed by Ojan Vafai.
      
      Source/WebCore:
      
      Test: fast/css-grid-layout/grid-item-removal-track-breadth-update.html
      
      The test uncovered several bugs in our implementation that is fixed as part
      of this change. They will be detailed below.
      
      * rendering/RenderGrid.cpp:
      (WebCore::RenderGrid::logicalContentHeightForChild):
      Added this function to share the code between minContentForChild and maxContentForChild.
      Also forced a relayout in this case to avoid getting a wrong answer (e.g. the logical height
      constrained by the previous layout's grid breadth).
      
      (WebCore::RenderGrid::minContentForChild):
      (WebCore::RenderGrid::maxContentForChild):
      Updated to use logicalContentHeightForChild.
      
      (WebCore::RenderGrid::resolveContentBasedTrackSizingFunctions):
      Updated to match the specification and set max breadth to current breadth per the specification.
      This made us over-grow some cases in the test.
      
      (WebCore::RenderGrid::distributeSpaceToTracks):
      Updated to match the specification and use an extra variable to do the intermediate spreading. Also removed
      a now unneeded max. This fixes the case of multiple grid items in the same grid area that was completely broken.
      
      (WebCore::RenderGrid::layoutGridItems):
      Added a FIXME about always relaying out content sized tracks' children.
      
      * rendering/RenderGrid.h:
      Added logicalContentHeightForChild.
      
      LayoutTests:
      
      * fast/css-grid-layout/grid-item-addition-track-breadth-update-expected.txt: Added.
      * fast/css-grid-layout/grid-item-addition-track-breadth-update.html: Added.
      * fast/css-grid-layout/grid-item-removal-track-breadth-update-expected.txt: Added.
      * fast/css-grid-layout/grid-item-removal-track-breadth-update.html: Added.
      New tests.
      
      * fast/css-grid-layout/resources/grid.css:
      (.constrainedContainer):
      (.unconstrainedContainer):
      Added these class to share them with other tests.
      
      * fast/css-grid-layout/auto-content-resolution-columns.html:
      * fast/css-grid-layout/auto-content-resolution-rows.html:
      * fast/css-grid-layout/implicit-columns-auto-resolution.html:
      * fast/css-grid-layout/implicit-position-dynamic-change.html:
      * fast/css-grid-layout/implicit-rows-auto-resolution.html:
      * fast/css-grid-layout/minmax-max-content-resolution-columns.html:
      * fast/css-grid-layout/minmax-max-content-resolution-rows.html:
      * fast/css-grid-layout/minmax-min-content-column-resolution-columns.html:
      * fast/css-grid-layout/minmax-min-content-column-resolution-rows.html:
      Removed constrainedContainer definition as it was moved to grid.css.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142798 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      afbeefa2
    • schenney@chromium.org's avatar
      [Chromium] Rebasline after r142765 · 7a684cc3
      schenney@chromium.org authored
      Unreviewed test expectations update.
      
      The change caused sub-pixel changing in SVG-as-image positions.
      
      * platform/chromium-mac-lion/svg/as-background-image/svg-as-background-5-expected.png:
      * platform/chromium-mac-snowleopard/svg/as-background-image/svg-as-background-5-expected.png:
      * platform/chromium-win/svg/as-background-image/svg-as-background-5-expected.png:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142797 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7a684cc3
    • abarth@webkit.org's avatar
      Clean up some style nits in HTMLPreloadScanner · defe850b
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=109738
      
      Reviewed by Tony Gentilcore.
      
      This patch just fixes a few style nits I noticed when reading through
      the code.
      
      * html/parser/HTMLPreloadScanner.cpp:
      (WebCore::StartTagScanner::StartTagScanner):
      (WebCore::HTMLPreloadScanner::processPossibleStyleTag):
      (WebCore::HTMLPreloadScanner::processPossibleBaseTag):
      * html/parser/HTMLResourcePreloader.cpp:
      (WebCore::PreloadRequest::isSafeToSendToAnotherThread):
      * html/parser/HTMLResourcePreloader.h:
      (PreloadRequest):
      (WebCore::PreloadRequest::PreloadRequest):
      (WebCore::HTMLResourcePreloader::HTMLResourcePreloader):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142796 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      defe850b
    • alecflett@chromium.org's avatar
      Unreviewed, rolling out r142747. · a850294a
      alecflett@chromium.org authored
      http://trac.webkit.org/changeset/142747
      https://bugs.webkit.org/show_bug.cgi?id=109746
      
      broke component build (Requested by alecf_gardening on
      #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2013-02-13
      
      Source/WebCore:
      
      * inspector/HeapGraphSerializer.cpp:
      (WebCore::HeapGraphSerializer::HeapGraphSerializer):
      (WebCore::HeapGraphSerializer::pushUpdate):
      (WebCore::HeapGraphSerializer::reportNode):
      (WebCore::HeapGraphSerializer::toNodeId):
      (WebCore::HeapGraphSerializer::addRootNode):
      * inspector/HeapGraphSerializer.h:
      (WebCore):
      (HeapGraphSerializer):
      * inspector/InspectorMemoryAgent.cpp:
      (WebCore::InspectorMemoryAgent::getProcessMemoryDistributionImpl):
      
      Tools:
      
      * TestWebKitAPI/TestWebKitAPI.gypi:
      * TestWebKitAPI/Tests/WebCore/HeapGraphSerializerTest.cpp: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142795 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a850294a
    • ch.dumez@sisa.samsung.com's avatar
      [EFL][WK2] Stop using WebString in ewk_cookie_manager,... · 75256beb
      ch.dumez@sisa.samsung.com authored
      [EFL][WK2] Stop using WebString in ewk_cookie_manager, ewk_form_submission_request and ewk_text_checker
      https://bugs.webkit.org/show_bug.cgi?id=108794
      
      Reviewed by Alexey Proskuryakov.
      
      Stop using WebString in ewk_cookie_manager, ewk_form_submission_request
      and ewk_text_checker as it is internal C++ API. WKString and
      WKEinaSharedString are used instead.
      
      * UIProcess/API/cpp/efl/WKEinaSharedString.cpp:
      (WKEinaSharedString::leakString): Add leakString() method to
      WKEinaSharedString so that we can conveniently convert a WKString to a
      Eina shared string and take ownership of it.
      * UIProcess/API/cpp/efl/WKEinaSharedString.h:
      * UIProcess/API/efl/ewk_cookie_manager.cpp:
      (getHostnamesWithCookiesCallback):
      * UIProcess/API/efl/ewk_form_submission_request.cpp:
      (EwkFormSubmissionRequest::copyFieldValue):
      (ewk_form_submission_request_field_names_get):
      (ewk_form_submission_request_field_value_get):
      * UIProcess/API/efl/ewk_form_submission_request_private.h:
      (EwkFormSubmissionRequest):
      * UIProcess/API/efl/ewk_text_checker.cpp:
      (checkSpellingOfString):
      (guessesForWord):
      (learnWord):
      (ignoreWord):
      * UIProcess/API/efl/tests/test_ewk2_eina_shared_string.cpp:
      (TEST_F): Add API test for new WKEinaSharedString::leakString() method.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142794 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      75256beb
    • leviw@chromium.org's avatar
      Bidi-Isolated inlines can cause subsequent content to not be rendered · 3fa1dbef
      leviw@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=108137
      
      Reviewed by Eric Seidel.
      
      Source/WebCore:
      
      First step in fixing how inline isolates behave with collapsed spaces.
      webkit.org/b/109624 tracks the overarching issue.
      
      Test: fast/text/content-following-inline-isolate-with-collapsed-whitespace.html
      
      * rendering/InlineIterator.h:
      (WebCore::IsolateTracker::addFakeRunIfNecessary): If we enter an isolate while
      ignoring spaces, ensure we leave it considering them again. This can result in
      including spaces that should be ignored following the isolate on the line, but
      failing to do so results in those contents not being rendered at all.
      
      LayoutTests:
      
      * fast/text/content-following-inline-isolate-with-collapsed-whitespace.html: Added.
      * fast/text/content-following-inline-isolate-with-collapsed-whitespace-expected.txt: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142793 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3fa1dbef
    • andersca@apple.com's avatar
      Remove Connection::QueueClient · 94613d1d
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=109744
      
      Reviewed by Sam Weinig.
      
      * Platform/CoreIPC/Connection.cpp:
      (CoreIPC::Connection::processIncomingMessage):
      (CoreIPC::Connection::connectionDidClose):
      * Platform/CoreIPC/Connection.h:
      (Connection):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142792 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      94613d1d
    • akling@apple.com's avatar
      Better names for ElementAttributeData & subclasses. · 72dde2a3
      akling@apple.com authored
      <http://webkit.org/b/109529>
      
      Reviewed by Antti Koivisto.
      
      - ElementAttributeData => ElementData
      
          Because ElementAttributeData won't be a good name once we move some non-attribute related
          things to this structure.
      
      - ImmutableElementAttributeData => ShareableElementData
      
          These objects can be shared with other Elements that have the same attribute name/value pairs.
      
      - MutableElementAttributeData => UniqueElementData
      
          These objects contain data that is unique to a specific Element, and cannot be shared with
          other Elements. This is what's important about it, not that its underlying storage is mutable.
      
      - attributeData() -> elementData()
      - updatedAttributeData() -> elementDataWithSynchronizedAttributes()
      - ensureUpdatedAttributeData() -> ensureElementDataWithSynchronizedAttributes()
      - mutableAttributeData() -> ensureUniqueElementData()
      
          Ride-along renames. Much less vague than previous names IMO.
      
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::canShareStyleWithControl):
      (WebCore::StyleResolver::sharingCandidateHasIdenticalStyleAffectingAttributes):
      * dom/Attr.cpp:
      (WebCore::Attr::elementAttribute):
      * dom/DocumentSharedObjectPool.cpp:
      (WebCore::ShareableElementDataCacheKey::ShareableElementDataCacheKey):
      (WebCore::ShareableElementDataCacheKey::operator!=):
      (WebCore::ShareableElementDataCacheEntry::ShareableElementDataCacheEntry):
      (ShareableElementDataCacheEntry):
      (WebCore::DocumentSharedObjectPool::cachedShareableElementDataWithAttributes):
      * dom/DocumentSharedObjectPool.h:
      (DocumentSharedObjectPool):
      * dom/Element.cpp:
      (WebCore::Element::detachAttribute):
      (WebCore::Element::removeAttribute):
      (WebCore::Element::attributes):
      (WebCore::Element::getAttribute):
      (WebCore::Element::setAttribute):
      (WebCore::Element::setSynchronizedLazyAttribute):
      (WebCore::Element::setAttributeInternal):
      (WebCore::Element::attributeChanged):
      (WebCore::Element::classAttributeChanged):
      (WebCore::Element::shouldInvalidateDistributionWhenAttributeChanged):
      (WebCore::Element::parserSetAttributes):
      (WebCore::Element::hasAttributes):
      (WebCore::Element::hasEquivalentAttributes):
      (WebCore::Element::setAttributeNode):
      (WebCore::Element::removeAttributeNode):
      (WebCore::Element::removeAttributeInternal):
      (WebCore::Element::addAttributeInternal):
      (WebCore::Element::getAttributeNode):
      (WebCore::Element::getAttributeNodeNS):
      (WebCore::Element::hasAttribute):
      (WebCore::Element::hasAttributeNS):
      (WebCore::Element::computeInheritedLanguage):
      (WebCore::Element::getURLAttribute):
      (WebCore::Element::getNonEmptyURLAttribute):
      (WebCore::Element::cloneAttributesFromElement):
      (WebCore::Element::createUniqueElementData):
      (WebCore::Element::reportMemoryUsage):
      (WebCore::ElementData::deref):
      (WebCore::ElementData::ElementData):
      (WebCore::sizeForShareableElementDataWithAttributeCount):
      (WebCore::ElementData::createShareableWithAttributes):
      (WebCore::ElementData::createUnique):
      (WebCore::ShareableElementData::ShareableElementData):
      (WebCore::ShareableElementData::~ShareableElementData):
      (WebCore::UniqueElementData::UniqueElementData):
      (WebCore::ElementData::makeMutableCopy):
      (WebCore::ElementData::makeImmutableCopy):
      (WebCore::ElementData::setPresentationAttributeStyle):
      (WebCore::ElementData::addAttribute):
      (WebCore::ElementData::removeAttribute):
      (WebCore::ElementData::isEquivalent):
      (WebCore::ElementData::reportMemoryUsage):
      (WebCore::ElementData::getAttributeItemIndexSlowCase):
      * dom/Element.h:
      (ElementData):
      (WebCore::ElementData::isUnique):
      (ShareableElementData):
      (UniqueElementData):
      (WebCore::Element::getAttributeItemIndex):
      (WebCore::Element::elementData):
      (Element):
      (WebCore::Element::elementDataWithSynchronizedAttributes):
      (WebCore::Element::ensureElementDataWithSynchronizedAttributes):
      (WebCore::Element::fastHasAttribute):
      (WebCore::Element::fastGetAttribute):
      (WebCore::Element::hasAttributesWithoutUpdate):
      (WebCore::Element::idForStyleResolution):
      (WebCore::Element::classNames):
      (WebCore::Element::attributeCount):
      (WebCore::Element::attributeItem):
      (WebCore::Element::getAttributeItem):
      (WebCore::Element::updateInvalidAttributes):
      (WebCore::Element::hasID):
      (WebCore::Element::hasClass):
      (WebCore::Element::ensureUniqueElementData):
      (WebCore::ElementData::mutableAttributeVector):
      (WebCore::ElementData::immutableAttributeArray):
      (WebCore::ElementData::length):
      (WebCore::ElementData::presentationAttributeStyle):
      (WebCore::ElementData::getAttributeItem):
      (WebCore::ElementData::getAttributeItemIndex):
      (WebCore::ElementData::attributeItem):
      * dom/Node.cpp:
      (WebCore::Node::dumpStatistics):
      (WebCore::Node::compareDocumentPosition):
      * dom/StyledElement.cpp:
      (WebCore::StyledElement::updateStyleAttribute):
      (WebCore::StyledElement::ensureMutableInlineStyle):
      (WebCore::StyledElement::attributeChanged):
      (WebCore::StyledElement::inlineStyleCSSOMWrapper):
      (WebCore::StyledElement::setInlineStyleFromString):
      (WebCore::StyledElement::styleAttributeChanged):
      (WebCore::StyledElement::inlineStyleChanged):
      (WebCore::StyledElement::addSubresourceAttributeURLs):
      (WebCore::StyledElement::rebuildPresentationAttributeStyle):
      * dom/StyledElement.h:
      (WebCore::StyledElement::inlineStyle):
      (WebCore::StyledElement::invalidateStyleAttribute):
      (WebCore::StyledElement::presentationAttributeStyle):
      * html/ClassList.cpp:
      (WebCore::ClassList::classNames):
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::updateType):
      * html/parser/HTMLConstructionSite.cpp:
      (WebCore::HTMLConstructionSite::mergeAttributesFromTokenIntoElement):
      * svg/SVGElement.cpp:
      (WebCore::SVGElement::updateAnimatedSVGAttribute):
      * svg/SVGElement.h:
      (WebCore::SVGElement::invalidateSVGAttributes):
      * xml/parser/XMLDocumentParserQt.cpp:
      (WebCore::XMLDocumentParser::XMLDocumentParser):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142791 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      72dde2a3
    • jochen@chromium.org's avatar
      [chromium] fix TestRunner build with enable_webrtc=0 · b497f810
      jochen@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=109700
      
      Reviewed by Tony Chang.
      
      We can't use ENABLE() macros in the TestRunner library, however,
      ENABLE_WEBRTC is defined by build/common.gypi, so we can use it.
      
      * DumpRenderTree/chromium/TestRunner/src/MockConstraints.cpp:
      * DumpRenderTree/chromium/TestRunner/src/MockWebMediaStreamCenter.cpp:
      * DumpRenderTree/chromium/TestRunner/src/MockWebRTCDTMFSenderHandler.cpp:
      * DumpRenderTree/chromium/TestRunner/src/MockWebRTCDataChannelHandler.cpp:
      * DumpRenderTree/chromium/TestRunner/src/MockWebRTCPeerConnectionHandler.cpp:
      * DumpRenderTree/chromium/TestRunner/src/WebTestInterfaces.cpp:
      (WebTestRunner):
      * DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp:
      (WebTestRunner::WebTestProxyBase::userMediaClient):
      * DumpRenderTree/chromium/TestRunner/src/WebUserMediaClientMock.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142790 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b497f810
    • oliver@apple.com's avatar
      Build fix. · e6b155e4
      oliver@apple.com authored
      Rearranged the code somewhat to reduce the number of
      DFG related ifdefs.
      
      * bytecode/CodeBlock.cpp:
      (JSC::CodeBlock::CodeBlock):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142789 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e6b155e4
    • commit-queue@webkit.org's avatar
      Crash when encountering <object style="resize:both;"> · dc66fa2f
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=109728
      
      Source/WebCore:
      
      See also https://code.google.com/p/chromium/issues/detail?id=175535
      This bug can be reproduced on
      http://dramalink.net/tudou.y/?xink=162601060
      
      Patch by Christian Biesinger <cbiesinger@chromium.org> on 2013-02-13
      Reviewed by Eric Seidel.
      
      Test: fast/css/resize-object-crash.html
      
      * rendering/RenderWidget.cpp:
      (WebCore::RenderWidget::paint):
      Only call paintResizer() if we have a layer and canResize() is true
      
      LayoutTests:
      
      See also https://code.google.com/p/chromium/issues/detail?id=175535
      
      Patch by Christian Biesinger <cbiesinger@chromium.org> on 2013-02-13
      Reviewed by Eric Seidel.
      
      * fast/css/resize-object-crash-expected.txt: Added.
      * fast/css/resize-object-crash.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142788 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc66fa2f
    • arko@motorola.com's avatar
      [Microdata] HTMLPropertiesCollection code cleanup · b3238198
      arko@motorola.com authored
      https://bugs.webkit.org/show_bug.cgi?id=109721
      
      Reviewed by Ryosuke Niwa.
      
      Removed forward declaration of DOMStringList class.
      Removed unused findRefElements() method declaration.
      Also Removed unused parameter Element* from updatePropertyCache() method.
      
      No new test since no change in behavior.
      
      * html/HTMLPropertiesCollection.cpp:
      (WebCore::HTMLPropertiesCollection::updateNameCache):
      * html/HTMLPropertiesCollection.h:
      (WebCore):
      (HTMLPropertiesCollection):
      (WebCore::HTMLPropertiesCollection::updatePropertyCache):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142787 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b3238198
    • commit-queue@webkit.org's avatar
      [WebGL][EFL][GTK][Qt]Add support for OES_vertex_array_object. · 0c7ad59d
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=109382
      
      Patch by Kondapally Kalyan <kalyan.kondapally@intel.com> on 2013-02-13
      Reviewed by Kenneth Russell.
      
      Source/WebCore:
      
      Covered by fast/canvas/webgl/oes-vertex-array-object.html
      
      This patch adds support for using Vertex Array Object with OpenGl.
      The patch adds support for loading necessary opengl functions
      and support for checking GL_ARB_vertex_array_object. The support
      for OES_vertex_array_object is advertised if GL_ARB_vertex_array_object is
      supported.
      
      * platform/graphics/OpenGLShims.cpp:
      (WebCore::initializeOpenGLShims):
      * platform/graphics/OpenGLShims.h:
      (_OpenGLFunctionTable):
      Added support for loading the necessary functions.
      
      * platform/graphics/opengl/Extensions3DOpenGL.cpp:
      (WebCore::Extensions3DOpenGL::createVertexArrayOES):
      (WebCore::Extensions3DOpenGL::deleteVertexArrayOES):
      (WebCore::Extensions3DOpenGL::isVertexArrayOES):
      (WebCore::Extensions3DOpenGL::bindVertexArrayOES):
      (WebCore::Extensions3DOpenGL::supportsExtension):
      
      (WebCore):
      (WebCore::Extensions3DOpenGL::isVertexArrayObjectSupported):
      * platform/graphics/opengl/Extensions3DOpenGL.h:
      (Extensions3DOpenGL):
      
      LayoutTests:
      
      Enable oes-vertex-array-object for EFL port.
      
      * fast/canvas/webgl/oes-vertex-array-object-expected.txt:
      * fast/canvas/webgl/oes-vertex-array-object.html:
      * platform/efl/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142786 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0c7ad59d
    • roger_fong@apple.com's avatar
      TestWebKitAPI, record-memory and gtest-md projects and property sheets for VS2010. · fbaebea1
      roger_fong@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=107034
      
      Reviewed by Brent Fulgham.
      
      * TestWebKitAPI/TestWebKitAPI.vcxproj: Added.
      * TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj: Added.
      * TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPI.vcxproj.filters: Added.
      * TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPIPostBuild.cmd: Copied from Tools/TestWebKitAPI/win/TestWebKitAPIPostBuild.cmd.
      * TestWebKitAPI/TestWebKitAPI.vcxproj/TestWebKitAPIPreBuild.cmd: Copied from Tools/TestWebKitAPI/win/TestWebKitAPIPreBuild.cmd.
      * win/record-memory: Added.
      * win/record-memory/main.cpp: Copied from Tools/record-memory-win/main.cpp.
      * win/record-memory/record-memory.vcxproj: Added.
      * win/record-memory/record-memory.vcxproj.filters: Added.
      * win/record-memory/record-memoryCommon.props: Added.
      * win/record-memory/record-memoryDebug.props: Added.
      * win/record-memory/record-memoryRelease.props: Added.
      * gtest/msvc/gtest-md.vcxproj: Added.
      * gtest/msvc/gtest-md.vcxproj.filters: Added.
      * WebKit.vcxproj/WebKit.sln:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142785 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fbaebea1
    • andersca@apple.com's avatar
      Try to fix the Lion build. · 5237cceb
      andersca@apple.com authored
      * WebProcess/WebPage/EventDispatcher.h:
      (EventDispatcher):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142784 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5237cceb
    • andersca@apple.com's avatar
      Remove support for the DispatchOnConnectionQueue message attribute · 8c8956e5
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=109743
      
      Reviewed by Sam Weinig.
      
      * Platform/CoreIPC/HandleMessage.h:
      (CoreIPC):
      * Scripts/webkit2/messages.py:
      (handler_function):
      (generate_message_handler):
      * Scripts/webkit2/messages_unittest.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142783 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8c8956e5
    • commit-queue@webkit.org's avatar
      chromium: remove CompositorHUDFontAtlas · b895722f
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=109328
      
      Patch by Eberhard Graether <egraether@google.com> on 2013-02-13
      Reviewed by James Robinson.
      
      After switching the HudLayer to use skia's font rendering the
      CompositorHUDFontAtlas has become obsolete. This change removes
      this class and the related WebLayerTreeView API.
      
      Source/Platform:
      
      * chromium/public/WebLayerTreeViewClient.h:
      (WebLayerTreeViewClient):
      
      Source/WebCore:
      
      No new tests.
      
      * WebCore.gypi:
      * platform/graphics/chromium/CompositorHUDFontAtlas.cpp: Removed.
      * platform/graphics/chromium/CompositorHUDFontAtlas.h: Removed.
      
      Source/WebKit/chromium:
      
      * src/WebViewImpl.cpp:
      * src/WebViewImpl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142782 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b895722f
    • andersca@apple.com's avatar
      StorageManager should be a WorkQueueMessageReceiver · 56f49974
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=109741
      
      Reviewed by Sam Weinig.
      
      * UIProcess/Storage/StorageManager.cpp:
      (WebKit::StorageManager::processWillOpenConnection):
      (WebKit::StorageManager::processWillCloseConnection):
      (WebKit::StorageManager::createStorageArea):
      (WebKit::StorageManager::destroyStorageArea):
      * UIProcess/Storage/StorageManager.h:
      (StorageManager):
      * UIProcess/Storage/StorageManager.messages.in:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142781 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      56f49974
    • fpizlo@apple.com's avatar
      ForwardInt32ToDouble is not in DFG::MinifiedNode's list of relevant node types · faef5191
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=109726
      
      Reviewed by Gavin Barraclough.
              
      This is asymptomatic because ForwardInt32ToDouble is only used in SetLocals, in
      which case the value is already stored to the stack.  Still, we should fix this.
      
      * dfg/DFGMinifiedNode.h:
      (JSC::DFG::belongsInMinifiedGraph):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142780 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      faef5191
    • fpizlo@apple.com's avatar
      DFG LogicalNot/Branch peephole removal and inversion ignores the possibility of things exiting · 573b9003
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=109489
      
      Source/JavaScriptCore: 
      
      Reviewed by Mark Hahnenberg.
              
      If things can exit between the LogicalNot and the Branch then don't peephole.
      
      * dfg/DFGFixupPhase.cpp:
      (JSC::DFG::FixupPhase::fixupNode):
      
      LayoutTests: 
      
      Reviewed by Mark Hahnenberg.
      
      * fast/js/dfg-branch-logical-not-peephole-around-osr-exit-expected.txt: Added.
      * fast/js/dfg-branch-logical-not-peephole-around-osr-exit.html: Added.
      * fast/js/jsc-test-list:
      * fast/js/script-tests/dfg-branch-logical-not-peephole-around-osr-exit.js: Added.
      (foo):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142779 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      573b9003