1. 17 Apr, 2013 1 commit
  2. 12 Apr, 2013 3 commits
  3. 11 Apr, 2013 1 commit
    • rniwa@webkit.org's avatar
      Remove ResourceLoadInfo · fbdf3b6d
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=113302
      
      Reviewed by Benjamin Poulain.
      
      Co-authored by Christophe Dumez.
      
      Removed ResourceLoadInfo since it had been only used by Chromium port.
      
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.order:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * inspector/InspectorResourceAgent.cpp:
      (WebCore::buildObjectForResourceResponse):
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::loadResourceSynchronously):
      * platform/network/ResourceLoadInfo.h: Removed.
      * platform/network/ResourceResponseBase.cpp:
      (WebCore):
      (WebCore::ResourceResponseBase::reportMemoryUsage):
      * platform/network/ResourceResponseBase.h:
      (ResourceResponseBase):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148256 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fbdf3b6d
  4. 08 Apr, 2013 1 commit
  5. 06 Apr, 2013 4 commits
  6. 05 Apr, 2013 1 commit
    • commit-queue@webkit.org's avatar
      REGRESSION(r145279): Build fails while linking when MEDIA_STREAM is enabled · 6394346e
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=113294
      
      Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2013-04-05
      Reviewed by Xan Lopez.
      
      In r145279 NamedGetter extended attribute is added to
      RTCStatsResponse.idl which makes the code generator to add
      prototypes for JSRTCStatsResponse::nameGetter and
      JSRTCStatsResponse::canGetItemsForName to the generated
      JSRTCStatsResponse header, but they are not implemented
      anywhere. We need to provide a JSRTCStatsResponseCustom file with
      the implementation of both functions.
      
      * GNUmakefile.list.am: Add JSRTCStatsResponseCustom.cpp to
      compilation.
      * Target.pri: Ditto.
      * UseJSC.cmake: Ditto.
      * WebCore.vcproj/WebCore.vcproj: Ditto.
      * WebCore.vcxproj/WebCore.vcxproj: Ditto.
      * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
      * bindings/js/JSRTCStatsResponseCustom.cpp: Added.
      (WebCore):
      (WebCore::JSRTCStatsResponse::canGetItemsForName):
      (WebCore::JSRTCStatsResponse::nameGetter):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147731 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6394346e
  7. 04 Apr, 2013 1 commit
    • ch.dumez@sisa.samsung.com's avatar
      [Cairo] Fix canvas drawing of SVG-based patterns and remove NativeImageCairo · 2e39cc2b
      ch.dumez@sisa.samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=113929
      
      Reviewed by Martin Robinson.
      
      Source/WebCore:
      
      Make (Pass)NativeImagePtr typedefs to (Pass)RefPtr<cairo_surface_t> instead
      of NativeImageCairo*. Now that we switch to using smart pointers,
      NativeImageCairo is removed as it made no sense to make it ref counted when
      it merely held a single ref counted member.
      
      Now that Cairo is using smart pointers for (Pass)NativeImagePtr, this patch
      also enables the implementation of SVGImage::nativeImageForCurrentFrame()
      for USE(CAIRO) as well. This effectively fixes canvas drawing of SVG-based
      patterns for Cairo-based ports.
      
      No new tests, covered by svg/canvas/canvas-pattern-svg.html.
      
      * GNUmakefile.list.am: Remove NativeImageCairo.* for GTK.
      
      * PlatformEfl.cmake: Remove NativeImageCairo.* for EFL.
      
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      Remove NativeImageCairo.* for Win.
      
      * platform/graphics/BitmapImage.cpp:
      (WebCore::FrameData::reportMemoryUsage):
      Update MemoryClassInfo::addRawBuffer() call now that m_frame is a RefPtr
      for USE(CAIRO).
      
      * platform/graphics/BitmapImage.h:
      (BitmapImage):
      Remove factory method taking a cairo_surface_t* in argument. This is useless
      now that PassNativeImagePtr is a typedef to PassRefPtr<cairo_surface_t> and
      there is already a factory method taking a PassNativeImagePtr in argument.
      
      * platform/graphics/NativeImagePtr.h:
      (WebCore):
      Make PassNativeImagePtr a typedef to PassRefPtr<cairo_surface_t> and
      NativeImagePtr a typedef to RefPtr<cairo_surface_t>, instead of
      NativeImageCairo*. Moving to smart pointers is needed to enable implementation
      of SVGImage::nativeImageForCurrentFrame() for Cairo.
      
      * platform/graphics/cairo/BitmapImageCairo.cpp:
      (WebCore::BitmapImage::BitmapImage):
      (WebCore::BitmapImage::draw):
      (WebCore::BitmapImage::checkForSolidColor):
      (WebCore::FrameData::clear):
      * platform/graphics/cairo/GraphicsContext3DCairo.cpp:
      (WebCore::GraphicsContext3D::ImageExtractor::extractImage):
      * platform/graphics/cairo/ImageCairo.cpp:
      (WebCore::Image::drawPattern):
      Update Cairo graphics code to reflect the (Pass)NativeImagePtr type changes.
      
      * platform/graphics/cairo/NativeImageCairo.cpp: Removed.
      * platform/graphics/cairo/NativeImageCairo.h: Removed.
      
      * platform/graphics/cairo/PatternCairo.cpp:
      (WebCore::Pattern::createPlatformPattern):
      * platform/graphics/efl/GraphicsContext3DEfl.cpp:
      (WebCore::GraphicsContext3D::ImageExtractor::extractImage):
      * platform/graphics/efl/ImageEfl.cpp:
      (WebCore::BitmapImage::getEvasObject):
      * platform/graphics/gtk/ImageGtk.cpp:
      (WebCore::BitmapImage::getGdkPixbuf):
      * platform/graphics/texmap/TextureMapperGL.cpp:
      (WebCore::BitmapTextureGL::updateContents):
      * platform/graphics/win/ImageCairoWin.cpp:
      (WebCore::BitmapImage::create):
      (WebCore::BitmapImage::drawFrameMatchingSourceSize):
      * platform/gtk/DragImageGtk.cpp:
      (WebCore::createDragImageFromImage):
      * platform/image-decoders/cairo/ImageDecoderCairo.cpp:
      (WebCore::ImageFrame::asNewNativeImage):
      * platform/win/DragImageCairoWin.cpp:
      (WebCore::createDragImageFromImage):
      Update code to reflect the (Pass)NativeImagePtr type changes.
      
      * svg/graphics/SVGImage.cpp:
      (WebCore):
      * svg/graphics/SVGImage.h:
      Enable SVGImage::nativeImageForCurrentFrame() for USE(CAIRO).
      
      Source/WebKit:
      
      Remove outdated symbols now that NativeImageCairo was removed.
      
      * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:
      
      Source/WebKit/efl:
      
      Update code now that PassNativeImagePtr is now a typedef to PassRefPtr<cairo_surface_t>
      instead of NativeImageCairo*.
      
      * ewk/ewk_history.cpp:
      (ewk_history_item_icon_surface_get):
      (ewk_history_item_icon_object_add):
      * ewk/ewk_settings.cpp:
      (ewk_settings_icon_database_icon_surface_get):
      (ewk_settings_icon_database_icon_object_get):
      
      Source/WebKit/gtk:
      
      Update code now that PassNativeImagePtr is now a typedef to PassRefPtr<cairo_surface_t>
      instead of NativeImageCairo*.
      
      * webkit/webkitfavicondatabase.cpp:
      (getIconPixbufSynchronously):
      
      Source/WebKit/win:
      
      Remove outdated symbols now that NativeImageCairo was removed.
      
      * WebKit.vcproj/WebKitExports.def.in:
      
      Source/WebKit2:
      
      Update code now that PassNativeImagePtr is now a typedef to PassRefPtr<cairo_surface_t>
      instead of NativeImageCairo*.
      
      * Shared/gtk/ArgumentCodersGtk.cpp:
      (CoreIPC::decodeImage):
      * UIProcess/API/C/cairo/WKIconDatabaseCairo.cpp:
      (WKIconDatabaseTryGetCairoSurfaceForURL):
      * UIProcess/API/gtk/WebKitFaviconDatabase.cpp:
      (getIconSurfaceSynchronously):
      
      LayoutTests:
      
      Add EFL / GTK pixels results for svg/canvas/canvas-pattern-svg.html now that
      the test passes for cairo-based ports.
      
      * platform/efl/svg/canvas/canvas-pattern-svg-expected.png: Added.
      * platform/gtk/svg/canvas/canvas-pattern-svg-expected.png: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147643 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2e39cc2b
  8. 29 Mar, 2013 1 commit
  9. 28 Mar, 2013 1 commit
    • caseq@chromium.org's avatar
      Web Inspector: factor out node search controller from inspector.js · 60f0dce4
      caseq@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=112689
      
      Reviewed by Pavel Feldman.
      
      This just extracts the existing logic of toggling node search
      from inspector.js into a class of its own, InspectElementModeController.
      Drive-by: add CtrlOrMeta+Shift+C to help screen.
      
      * English.lproj/localizedStrings.js:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * inspector/compile-front-end.py:
      * inspector/front-end/InspectElementModeController.js: Added.
      (WebInspector.InspectElementModeController):
      (WebInspector.InspectElementModeController.createShortcut):
      (WebInspector.InspectElementModeController.prototype.enabled):
      (WebInspector.InspectElementModeController.prototype.disable):
      (WebInspector.InspectElementModeController.prototype.toggleSearch.callback):
      (WebInspector.InspectElementModeController.prototype.toggleSearch):
      (WebInspector.InspectElementModeController.prototype.handleShortcut):
      * inspector/front-end/InspectorFrontendAPI.js:
      (InspectorFrontendAPI.enterInspectElementMode):
      * inspector/front-end/WebKit.qrc:
      * inspector/front-end/inspector.html:
      * inspector/front-end/inspector.js:
      (WebInspector._createGlobalStatusBarItems):
      (WebInspector._registerShortcuts):
      (WebInspector.documentKeyDown):
      (WebInspector._updateFocusedNode):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147105 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60f0dce4
  10. 26 Mar, 2013 1 commit
    • ch.dumez@sisa.samsung.com's avatar
      Code duplication between HTTPParsers and HTTPValidation · 3855a916
      ch.dumez@sisa.samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=113283
      
      Reviewed by Alexey Proskuryakov.
      
      Source/WebCore:
      
      Merged isValidHTTPToken() from HTTPValidation.h and isRFC2616Token() from
      HTTPParsers.h. They were doing exactly the same thing and their
      implementation was almost the same.
      
      Removed HTTPValidation.* and moved remaining code to HTTPParsers.* as this
      seems like the proper place and it seems odd to keep HTTPValidation for
      just one function.
      
      No new tests, no behavior change for layout tests.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * platform/network/HTTPParsers.cpp:
      (WebCore::isValidHTTPHeaderValue):
      (WebCore):
      (WebCore::isValidHTTPToken): Implementation is slightly simplified based on
      isValidHTTPToken() from HTTPValidation.cpp. (c >= 0x80 || c == 0x7F) is
      replaced by (c >= 0x7F). (c <= 0x1F ||  c == ' ' || c == '\t') is replaced
      by (c <= 0x20). Those expressions are shorter but equivalent.
      (WebCore::contentDispositionType):
      * platform/network/HTTPParsers.h:
      * platform/network/HTTPValidation.cpp: Removed.
      * platform/network/HTTPValidation.h: Removed.
      * xml/XMLHttpRequest.cpp: Stop including HTTPValidation.h.
      
      Source/WebKit/chromium:
      
      * src/AssociatedURLLoader.cpp: Include HTTPParsers.h instead
      of HTTPValidation.h to use isValidHTTPToken().
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146908 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3855a916
  11. 25 Mar, 2013 1 commit
  12. 22 Mar, 2013 4 commits
    • ap@apple.com's avatar
      Split ResourceHandleMac into multiple files · 6366a11b
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=113100
      
              Reviewed by Geoff Garen.
      
              It's grown too big to navigate, and I'm going to make WebCoreResourceHandleAsDelegate
              substantially more complicated yet.
      
              1. Mechanically moved WebCoreResourceHandleAsDelegate into separate files.
              2. Refactored WebCoreSynchronousLoaderClient to be cross-platform, and moved it into
              separate files.
      
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.vcxproj/WebCore.vcxproj:
              * WebCore.vcxproj/WebCore.vcxproj.filters:
              * WebCore.xcodeproj/project.pbxproj:
              * platform/network/SynchronousLoaderClient.cpp: Added.
              * platform/network/SynchronousLoaderClient.h: Added.
              * platform/network/cf/ResourceHandleCFNet.cpp:
              * platform/network/mac/SynchronousLoaderClient.mm: Added.
              * platform/network/mac/WebCoreResourceHandleAsDelegate.h: Added.
              * platform/network/mac/WebCoreResourceHandleAsDelegate.mm: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6366a11b
    • commit-queue@webkit.org's avatar
      Use generated bindings for the Coordinates type used by Geolocation · e25524f8
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=112975
      
      Patch by Steve Block <steveblock@chromium.org> on 2013-03-22
      Reviewed by Kentaro Hara.
      
      No new tests, refactoring only.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/geolocation/Coordinates.cpp: Renamed from Source/WebCore/bindings/js/JSCoordinatesCustom.cpp.
      (WebCore):
      (WebCore::Coordinates::altitude):
      (WebCore::Coordinates::altitudeAccuracy):
      (WebCore::Coordinates::heading):
      (WebCore::Coordinates::speed):
      * Modules/geolocation/Coordinates.h:
      (Coordinates):
      * Modules/geolocation/Coordinates.idl:
      * Target.pri:
      * UseJSC.cmake:
      * UseV8.cmake:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSBindingsAllInOne.cpp:
      * bindings/v8/custom/V8CoordinatesCustom.cpp: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146585 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e25524f8
    • commit-queue@webkit.org's avatar
      Move GeolocationClient.h to Modules/geolocation/ · aceea69d
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=112997
      
      Patch by Steve Block <steveblock@chromium.org> on 2013-03-22
      Reviewed by Kentaro Hara.
      
      No new tests, no functional change.
      
      * GNUmakefile.list.am:
      * Modules/geolocation/GeolocationClient.h: Renamed from Source/WebCore/page/GeolocationClient.h.
      (WebCore):
      (GeolocationClient):
      (WebCore::GeolocationClient::~GeolocationClient):
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146575 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aceea69d
    • commit-queue@webkit.org's avatar
      Move page/Coordinates.[h|idl] to Modules/geolocation/ · 1a06ddd9
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=112945
      
      Patch by Steve Block <steveblock@chromium.org> on 2013-03-22
      Reviewed by Kentaro Hara.
      
      No new tests, no functional change.
      
      * CMakeLists.txt:
      * DerivedSources.make:
      * DerivedSources.pri:
      * GNUmakefile.list.am:
      * Modules/geolocation/Coordinates.h: Renamed from Source/WebCore/page/Coordinates.h.
      (WebCore):
      (Coordinates):
      (WebCore::Coordinates::create):
      (WebCore::Coordinates::isolatedCopy):
      (WebCore::Coordinates::latitude):
      (WebCore::Coordinates::longitude):
      (WebCore::Coordinates::altitude):
      (WebCore::Coordinates::accuracy):
      (WebCore::Coordinates::altitudeAccuracy):
      (WebCore::Coordinates::heading):
      (WebCore::Coordinates::speed):
      (WebCore::Coordinates::canProvideAltitude):
      (WebCore::Coordinates::canProvideAltitudeAccuracy):
      (WebCore::Coordinates::canProvideHeading):
      (WebCore::Coordinates::canProvideSpeed):
      (WebCore::Coordinates::Coordinates):
      * Modules/geolocation/Coordinates.idl: Renamed from Source/WebCore/page/Coordinates.idl.
      * Target.pri:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146570 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1a06ddd9
  13. 21 Mar, 2013 4 commits
    • roger_fong@apple.com's avatar
      Move common props files for VS2010 solution to WebKitLibraries folder and... · 356fb46a
      roger_fong@apple.com authored
      Move common props files for VS2010 solution to WebKitLibraries folder and update all projects accordingly.
      
      * WebKit.vcxproj/FeatureDefines.props: Removed.
      * WebKit.vcxproj/FeatureDefinesCairo.props: Removed.
      * WebKit.vcxproj/WebKit/cURL.props: Removed.
      * WebKit.vcxproj/WinCairo.props: Removed.
      * WebKit.vcxproj/common.props: Removed.
      * WebKit.vcxproj/debug.props: Removed.
      * WebKit.vcxproj/debug_wincairo.props: Removed.
      * WebKit.vcxproj/debugsuffix.props: Removed.
      * WebKit.vcxproj/production.props: Removed.
      * WebKit.vcxproj/release.props: Removed.
      * win/tools/vsprops/FeatureDefines.props: Copied from ../Source/WebKit/WebKit.vcxproj/FeatureDefines.props.
      * win/tools/vsprops/FeatureDefinesCairo.props: Copied from ../Source/WebKit/WebKit.vcxproj/FeatureDefinesCairo.props.
      * win/tools/vsprops/WinCairo.props: Copied from ../Source/WebKit/WebKit.vcxproj/WinCairo.props.
      * win/tools/vsprops/cURL.props: Copied from ../Source/WebKit/WebKit.vcxproj/WebKit/cURL.props.
      * win/tools/vsprops/common.props: Copied from ../Source/WebKit/WebKit.vcxproj/common.props.
      * win/tools/vsprops/debug.props: Copied from ../Source/WebKit/WebKit.vcxproj/debug.props.
      * win/tools/vsprops/debug_wincairo.props: Copied from ../Source/WebKit/WebKit.vcxproj/debug_wincairo.props.
      * win/tools/vsprops/debugsuffix.props: Copied from ../Source/WebKit/WebKit.vcxproj/debugsuffix.props.
      * win/tools/vsprops/production.props: Copied from ../Source/WebKit/WebKit.vcxproj/production.props.
      * win/tools/vsprops/release.props: Copied from ../Source/WebKit/WebKit.vcxproj/release.props.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146530 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      356fb46a
    • ap@apple.com's avatar
      Move non-trivial virtual functions out of ResourceHandleClient.h · 47ed39b0
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=112950
      
              Reviewed by Brady Eidson.
      
              * CMakeLists.txt:
              * GNUmakefile.list.am:
              * Target.pri:
              * WebCore.exp.in:
              * WebCore.gypi:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.vcxproj/WebCore.vcxproj:
              * WebCore.vcxproj/WebCore.vcxproj.filters:
              * WebCore.xcodeproj/project.pbxproj:
              * platform/network/ResourceHandleClient.cpp: Added.
              (WebCore::ResourceHandleClient::ResourceHandleClient):
              (WebCore::ResourceHandleClient::~ResourceHandleClient):
              (WebCore::ResourceHandleClient::didReceiveBuffer):
              (WebCore::ResourceHandleClient::getBuffer):
              * platform/network/ResourceHandleClient.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146508 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      47ed39b0
    • fmalita@chromium.org's avatar
      [SVG] Remove explicit LightSource dispatchers · 96b9c2db
      fmalita@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=112827
      
      Reviewed by Stephen Chenney.
      
      Convert LightSource setters to dynamic dispatch. This allows us to remove LightSource.cpp
      altogether.
      
      No new tests: refactoring only.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * platform/graphics/filters/DistantLightSource.h:
      (DistantLightSource):
      * platform/graphics/filters/LightSource.cpp: Removed.
      * platform/graphics/filters/LightSource.h:
      (WebCore::LightSource::setAzimuth):
      (WebCore::LightSource::setElevation):
      (WebCore::LightSource::setX):
      (WebCore::LightSource::setY):
      (WebCore::LightSource::setZ):
      (WebCore::LightSource::setPointsAtX):
      (WebCore::LightSource::setPointsAtY):
      (WebCore::LightSource::setPointsAtZ):
      (WebCore::LightSource::setSpecularExponent):
      (WebCore::LightSource::setLimitingConeAngle):
      * platform/graphics/filters/PointLightSource.h:
      (PointLightSource):
      * platform/graphics/filters/SpotLightSource.h:
      (SpotLightSource):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146503 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      96b9c2db
    • rniwa@webkit.org's avatar
      Merge MainResourceLoader into DocumentLoader · b1242489
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=104969
      
      Patch by Nate Chapin <japhet@chromium.org> on 2013-03-21
      Reviewed by Adam Barth.
      
      No new tests, refactor only.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.exp.in:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * loader/DocumentLoader.cpp:
      (WebCore::DocumentLoader::DocumentLoader):
      (WebCore::DocumentLoader::mainResourceLoader):
      (WebCore::DocumentLoader::~DocumentLoader): Move main resource clearing from
          ~MainResourceLoader.
      (WebCore::DocumentLoader::mainResourceData):
      (WebCore::DocumentLoader::stopLoading):
      (WebCore::DocumentLoader::notifyFinished): Moved from MainResourceLoader::notifyFinished.
      (WebCore):
      (WebCore::DocumentLoader::finishedLoading):
      (WebCore::DocumentLoader::handleSubstituteDataLoadNow):
      (WebCore::DocumentLoader::redirectReceived):
      (WebCore::DocumentLoader::continueAfterNavigationPolicy):
      (WebCore::DocumentLoader::responseReceived):
      (WebCore::DocumentLoader::continueAfterContentPolicy):
      (WebCore::DocumentLoader::reportMemoryUsage):
      (WebCore::DocumentLoader::dataReceived):
      (WebCore::DocumentLoader::clearMainResourceLoader):
      (WebCore::DocumentLoader::setDefersLoading):
      (WebCore::DocumentLoader::setMainResourceDataBufferingPolicy):
      (WebCore::DocumentLoader::addSubresourceLoader):
      (WebCore::DocumentLoader::maybeLoadEmpty):
      (WebCore::DocumentLoader::startLoadingMainResource): Don't keep separate checks
           for normal and empty loads, just use a single boolean.
      * loader/DocumentLoader.h:
      (WebCore::DocumentLoader::isLoadingMainResource):
      * loader/MainResourceLoader.cpp: Removed.
      * loader/MainResourceLoader.h: Removed.
      * loader/mac/DocumentLoaderMac.cpp:
      (WebCore::DocumentLoader::schedule):
      (WebCore::DocumentLoader::unschedule):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146449 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b1242489
  14. 20 Mar, 2013 2 commits
    • bfulgham@webkit.org's avatar
      [WinCairo] Unreviewed VS2010 build correction. · 1ac1ff78
      bfulgham@webkit.org authored
      * WebCore.vcxproj/WebCore.vcxproj: Enable build of NetworkStorageSessionStub.cpp
      for WinCairo port.
      * WebCore.vcxproj/WebCore.vcxproj.filters: Correct build type of
      CookieJarCurl from 'custom' to 'C++ source file'
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146358 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1ac1ff78
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r146301. · 12613f59
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/146301
      https://bugs.webkit.org/show_bug.cgi?id=112776
      
      Caused hundreds of tests to hit assertions on Windows debug
      bots (Requested by rniwa on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2013-03-19
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.exp.in:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * loader/DocumentLoader.cpp:
      (WebCore::DocumentLoader::DocumentLoader):
      (WebCore::DocumentLoader::mainResourceLoader):
      (WebCore::DocumentLoader::~DocumentLoader):
      (WebCore::DocumentLoader::mainResourceData):
      (WebCore::DocumentLoader::stopLoading):
      (WebCore::DocumentLoader::finishedLoading):
      (WebCore::DocumentLoader::handleSubstituteDataLoadNow):
      (WebCore::DocumentLoader::continueAfterNavigationPolicy):
      (WebCore::DocumentLoader::responseReceived):
      (WebCore::DocumentLoader::continueAfterContentPolicy):
      (WebCore::DocumentLoader::reportMemoryUsage):
      (WebCore::DocumentLoader::receivedData):
      (WebCore::DocumentLoader::clearMainResourceLoader):
      (WebCore::DocumentLoader::setDefersLoading):
      (WebCore::DocumentLoader::setMainResourceDataBufferingPolicy):
      (WebCore::DocumentLoader::addSubresourceLoader):
      (WebCore::DocumentLoader::isLoadingMainResource):
      (WebCore):
      (WebCore::DocumentLoader::maybeLoadEmpty):
      (WebCore::DocumentLoader::startLoadingMainResource):
      * loader/DocumentLoader.h:
      (WebCore):
      (DocumentLoader):
      * loader/MainResourceLoader.cpp: Added.
      (WebCore):
      (WebCore::MainResourceLoader::MainResourceLoader):
      (WebCore::MainResourceLoader::~MainResourceLoader):
      (WebCore::MainResourceLoader::create):
      (WebCore::MainResourceLoader::clearResource):
      (WebCore::MainResourceLoader::frameLoader):
      (WebCore::MainResourceLoader::request):
      (WebCore::MainResourceLoader::resourceData):
      (WebCore::MainResourceLoader::redirectReceived):
      (WebCore::MainResourceLoader::responseReceived):
      (WebCore::MainResourceLoader::dataReceived):
      (WebCore::MainResourceLoader::notifyFinished):
      (WebCore::MainResourceLoader::reportMemoryUsage):
      (WebCore::MainResourceLoader::load):
      (WebCore::MainResourceLoader::setDefersLoading):
      (WebCore::MainResourceLoader::defersLoading):
      (WebCore::MainResourceLoader::setDataBufferingPolicy):
      (WebCore::MainResourceLoader::loader):
      (WebCore::MainResourceLoader::identifier):
      * loader/MainResourceLoader.h: Added.
      (WebCore):
      (MainResourceLoader):
      (WebCore::MainResourceLoader::cachedMainResource):
      (WebCore::MainResourceLoader::documentLoader):
      * loader/mac/DocumentLoaderMac.cpp:
      (WebCore::DocumentLoader::schedule):
      (WebCore::DocumentLoader::unschedule):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146306 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      12613f59
  15. 19 Mar, 2013 5 commits
    • japhet@chromium.org's avatar
      Merge MainResourceLoader into DocumentLoader · 939359fc
      japhet@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=104969
      
      Reviewed by Adam Barth.
      
      No new tests, refactor only.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.exp.in:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * loader/DocumentLoader.cpp:
      (WebCore::DocumentLoader::DocumentLoader):
      (WebCore::DocumentLoader::mainResourceLoader):
      (WebCore::DocumentLoader::~DocumentLoader): Move main resource clearing from
          ~MainResourceLoader.
      (WebCore::DocumentLoader::mainResourceData):
      (WebCore::DocumentLoader::stopLoading):
      (WebCore::DocumentLoader::notifyFinished): Moved from MainResourceLoader::notifyFinished.
      (WebCore):
      (WebCore::DocumentLoader::finishedLoading):
      (WebCore::DocumentLoader::handleSubstituteDataLoadNow):
      (WebCore::DocumentLoader::redirectReceived):
      (WebCore::DocumentLoader::continueAfterNavigationPolicy):
      (WebCore::DocumentLoader::responseReceived):
      (WebCore::DocumentLoader::continueAfterContentPolicy):
      (WebCore::DocumentLoader::reportMemoryUsage):
      (WebCore::DocumentLoader::dataReceived):
      (WebCore::DocumentLoader::clearMainResourceLoader):
      (WebCore::DocumentLoader::setDefersLoading):
      (WebCore::DocumentLoader::setMainResourceDataBufferingPolicy):
      (WebCore::DocumentLoader::addSubresourceLoader):
      (WebCore::DocumentLoader::maybeLoadEmpty):
      (WebCore::DocumentLoader::startLoadingMainResource): Don't keep separate checks
           for normal and empty loads, just use a single boolean.
      * loader/DocumentLoader.h:
      (WebCore::DocumentLoader::isLoadingMainResource):
      * loader/MainResourceLoader.cpp: Removed.
      * loader/MainResourceLoader.h: Removed.
      * loader/mac/DocumentLoaderMac.cpp:
      (WebCore::DocumentLoader::schedule):
      (WebCore::DocumentLoader::unschedule):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146301 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      939359fc
    • bfulgham@webkit.org's avatar
      [WinCairo] Unreviewed build correction for WebCore library. · b4cea9fa
      bfulgham@webkit.org authored
      * WebCore.vcxproj/WebCore.vcxproj: Exclude CG-specific frame source
      from WinCairo build.
      * WebCore.vcxproj/WebCoreGeneratedWinCairo.make: Pass correct
      parameter to build-generated-files.sh for WinCairo build.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146231 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b4cea9fa
    • commit-queue@webkit.org's avatar
      Web Inspector: split Console into two entities, a web-facing bound object and page console. · 7195ba53
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=111578
      
      Patch by Sergey Ryazanov <serya@chromium.org> on 2013-03-19
      Reviewed by Vsevolod Vlasov.
      
      Otherwise, a lot of logging in WebCore needs to go through the DOMWindow which is unnecessary.
      
      Source/WebCore:
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.exp.in:
      * WebCore.gypi:
      * WebCore.order:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSCustomXPathNSResolver.cpp:
      (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
      * bindings/v8/custom/V8CustomXPathNSResolver.cpp:
      (WebCore::V8CustomXPathNSResolver::lookupNamespaceURI):
      * dom/Document.cpp:
      (WebCore::Document::addConsoleMessage):
      (WebCore::Document::addMessage):
      * inspector/PageDebuggerAgent.cpp:
      (WebCore::PageDebuggerAgent::muteConsole):
      (WebCore::PageDebuggerAgent::unmuteConsole):
      * inspector/PageRuntimeAgent.cpp:
      (WebCore::PageRuntimeAgent::muteConsole):
      (WebCore::PageRuntimeAgent::unmuteConsole):
      * page/Console.cpp:
      (WebCore::internalAddMessage):
      * page/Console.h:
      (WebCore):
      (Console):
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::pageConsole):
      (WebCore):
      (WebCore::DOMWindow::dispatchMessageEventWithOriginCheck):
      (WebCore::DOMWindow::printErrorMessage):
      * page/DOMWindow.h:
      (WebCore):
      (DOMWindow):
      * page/Page.cpp:
      (WebCore::Page::Page):
      * page/Page.h:
      (WebCore):
      (WebCore::Page::console):
      (Page):
      * page/PageConsole.cpp: Added.
      (WebCore::PageConsole::PageConsole):
      (WebCore):
      (WebCore::PageConsole::~PageConsole):
      (WebCore::PageConsole::printSourceURLAndLine):
      (WebCore::PageConsole::printMessageSourceAndLevelPrefix):
      (WebCore::PageConsole::addMessage):
      (WebCore::PageConsole::mute):
      (WebCore::PageConsole::unmute):
      (WebCore::PageConsole::shouldPrintExceptions):
      (WebCore::PageConsole::setShouldPrintExceptions):
      * page/PageConsole.h: Copied from Source/WebCore/page/Console.h.
      (WebCore):
      (PageConsole):
      (WebCore::PageConsole::create):
      (WebCore::PageConsole::page):
      * xml/XSLStyleSheetLibxslt.cpp:
      (WebCore::XSLStyleSheet::parseString):
      * xml/XSLTProcessorLibxslt.cpp:
      (WebCore::XSLTProcessor::parseErrorFunc):
      (WebCore::docLoaderFunc):
      
      Source/WebKit/mac:
      
      * Misc/WebCoreStatistics.mm:
      (+[WebCoreStatistics shouldPrintExceptions]):
      (+[WebCoreStatistics setShouldPrintExceptions:]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146208 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7195ba53
    • loislo@chromium.org's avatar
      Web Inspector: move OverviewGrid and OverviewWindow into separate file. · de159407
      loislo@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=112693
      
      Reviewed by Yury Semikhatsky.
      
      It is the third patch for the meta bug "Web Inspector: meta bug: extract OverviewGrid from TimelineOverviewPane"
      It just moves the OverviewGrid and the related classes into its own file.
      
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * inspector/compile-front-end.py:
      * inspector/front-end/OverviewGrid.js: Added.
      (WebInspector.OverviewGrid):
      (WebInspector.OverviewGrid.prototype.itemsGraphsElement):
      (WebInspector.OverviewGrid.prototype.insertBeforeItemsGraphsElement):
      (WebInspector.OverviewGrid.prototype.clientWidth):
      (WebInspector.OverviewGrid.prototype.showItemsGraphsElement):
      (WebInspector.OverviewGrid.prototype.hideItemsGraphsElement):
      (WebInspector.OverviewGrid.prototype.updateDividers):
      (WebInspector.OverviewGrid.prototype.addEventDividers):
      (WebInspector.OverviewGrid.prototype.removeEventDividers):
      (WebInspector.OverviewGrid.prototype.setWindowPosition):
      (WebInspector.OverviewGrid.prototype.reset):
      (WebInspector.OverviewGrid.prototype.windowLeft):
      (WebInspector.OverviewGrid.prototype.windowRight):
      (WebInspector.OverviewGrid.prototype.setWindow):
      (WebInspector.OverviewGrid.prototype.addEventListener):
      (WebInspector.OverviewGrid.Window):
      (WebInspector.OverviewGrid.Window.prototype.reset):
      (WebInspector.OverviewGrid.Window.prototype._leftResizeElementDragging):
      (WebInspector.OverviewGrid.Window.prototype._rightResizeElementDragging):
      (WebInspector.OverviewGrid.Window.prototype._startWindowSelectorDragging):
      (WebInspector.OverviewGrid.Window.prototype._windowSelectorDragging):
      (WebInspector.OverviewGrid.Window.prototype._endWindowSelectorDragging):
      (WebInspector.OverviewGrid.Window.prototype._startWindowDragging):
      (WebInspector.OverviewGrid.Window.prototype._windowDragging):
      (WebInspector.OverviewGrid.Window.prototype._endWindowDragging):
      (WebInspector.OverviewGrid.Window.prototype._moveWindow):
      (WebInspector.OverviewGrid.Window.prototype._resizeWindowLeft):
      (WebInspector.OverviewGrid.Window.prototype._resizeWindowRight):
      (WebInspector.OverviewGrid.Window.prototype._resizeWindowMaximum):
      (WebInspector.OverviewGrid.Window.prototype._setWindow):
      (WebInspector.OverviewGrid.Window.prototype._setWindowPosition):
      (WebInspector.OverviewGrid.Window.prototype._onMouseWheel):
      (WebInspector.OverviewGrid.Window.prototype._zoom):
      (WebInspector.OverviewGrid.WindowSelector):
      (WebInspector.OverviewGrid.WindowSelector.prototype._createSelectorElement):
      (WebInspector.OverviewGrid.WindowSelector.prototype._close):
      (WebInspector.OverviewGrid.WindowSelector.prototype._updatePosition):
      * inspector/front-end/TimelineOverviewPane.js:
      * inspector/front-end/WebKit.qrc:
      * inspector/front-end/inspector.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146204 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      de159407
    • commit-queue@webkit.org's avatar
      Web Inspector: [CodeMirror] add smart braces functionality · 13012b3c
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=112138
      
      Patch by Andrey Lushnikov <lushnikov@chromium.org> on 2013-03-19
      Reviewed by Vsevolod Vlasov.
      
      No new tests.
      
      Add closebrackets add-on to codemirror which implements smart braces
      functionality and guard this setting with the "Text Editor smart
      braces" experiment.
      
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * inspector/front-end/CodeMirrorTextEditor.js:
      * inspector/front-end/WebKit.qrc:
      * inspector/front-end/cm/closebrackets.js: Added.
      (.):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146188 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      13012b3c
  16. 18 Mar, 2013 4 commits
  17. 13 Mar, 2013 2 commits
    • commit-queue@webkit.org's avatar
      Implement FontLoader interface · d7e6fa24
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=98395
      
      Patch by Kunihiko Sakamoto <ksakamoto@chromium.org> on 2013-03-13
      Reviewed by Eric Seidel.
      
      Source/WebCore:
      
      This patch implements the FontLoader interface defined in CSS Font
      Load Events Module Level 3.[1] It adds fontloader attribute to
      Document, and adds two interfaces, FontLoader and
      CSSFontFaceLoadEvent to WebCore.
      
      [1]: http://dev.w3.org/csswg/css-font-load-events-3/
      
      This feature is guarded by FONT_LOAD_EVENTS compiler flag and
      RuntimeEnabledFeatures::fontLoadEventsEnabled() runtime flag.
      
      Tests: fast/css/fontloader-download-error.html
             fast/css/fontloader-events.html
             fast/css/fontloader-loadingdone.html
             fast/css/fontloader-multiple-faces-download-error.html
             fast/css/fontloader-multiple-faces.html
             fast/css/fontloader-multiple-families.html
             http/tests/webfont/fontloader-loading-attribute.html
      
      * CMakeLists.txt: Adding FontLoader/CSSFontFaceLoadEvent files.
      * DerivedSources.cpp: Ditto.
      * DerivedSources.make: Ditto.
      * DerivedSources.pri: Ditto.
      * GNUmakefile.list.am: Ditto.
      * Target.pri: Ditto.
      * WebCore.gypi: Ditto.
      * WebCore.vcproj/WebCore.vcproj: Ditto.
      * WebCore.vcxproj/WebCore.vcxproj: Ditto.
      * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
      * WebCore.xcodeproj/project.pbxproj: Ditto.
      * bindings/js/JSDictionary.cpp:
      (WebCore::JSDictionary::convertValue): Add convertValue() for CSSFontFaceRule, DOMError, and VoidCallback.
      * bindings/js/JSDictionary.h: Ditto.
      * bindings/v8/Dictionary.cpp: Add get() for CSSFontFaceRule, DOMError, and VoidCallback.
      (WebCore::Dictionary::get):
      * bindings/v8/Dictionary.h: Ditto.
      (Dictionary):
      * css/CSSFontFace.cpp: Notifies FontLoader as load progresses.
      (WebCore::CSSFontFace::fontLoaded):
      (WebCore::CSSFontFace::getFontData):
      (WebCore::CSSFontFace::notifyFontLoader):
      (WebCore::CSSFontFace::notifyLoadingDone):
      * css/CSSFontFace.h: Add two member variables. m_rule stores CSSFontFaceRule for the fontface. m_loadState holds current state of the fontface in terms of FontLoader.
      (WebCore::CSSFontFace::create): Takes additional parameter of type CSSFontFaceRule.
      (WebCore::CSSFontFace::loadState):
      (WebCore::CSSFontFace::CSSFontFace):
      * css/CSSFontFaceLoadEvent.cpp: Added.
      (WebCore::CSSFontFaceLoadEvent::CSSFontFaceLoadEvent):
      (WebCore::CSSFontFaceLoadEvent::~CSSFontFaceLoadEvent):
      (WebCore::CSSFontFaceLoadEvent::interfaceName):
      * css/CSSFontFaceLoadEvent.h: Added.
      (CSSFontFaceLoadEventInit):
      (CSSFontFaceLoadEvent):
      (WebCore::CSSFontFaceLoadEvent::create):
      (WebCore::CSSFontFaceLoadEvent::createForFontFaceRule):
      (WebCore::CSSFontFaceLoadEvent::createForError):
      (WebCore::CSSFontFaceLoadEvent::fontface):
      (WebCore::CSSFontFaceLoadEvent::error):
      * css/CSSFontFaceLoadEvent.idl: Added.
      * css/CSSFontFaceRule.idl: Add JSGenerateToJSObject and JSGenerateToNativeObject as JSC binding needs them.
      * css/CSSFontFaceSource.cpp:
      (WebCore::CSSFontFaceSource::isDecodeError): Added.
      (WebCore::CSSFontFaceSource::ensureFontData): Added.
      * css/CSSFontFaceSource.h:
      (CSSFontFaceSource):
      * css/CSSFontSelector.cpp:
      (WebCore::CSSFontSelector::addFontFaceRule): Pass a CSSFontFaceRule to CSSFontFace::create().
      (WebCore::CSSFontSelector::getFontData): Moved logic for creating a CSSSegmentedFontFace to a helper function getFontFace().
      (WebCore::CSSFontSelector::getFontFace): Added.
      * css/CSSFontSelector.h:
      * css/CSSSegmentedFontFace.cpp:
      (WebCore::CSSSegmentedFontFace::fontLoaded): Fires callbacks when load is completed.
      (WebCore::CSSSegmentedFontFace::isLoading): Returns true if any fonts are still loading.
      (WebCore::CSSSegmentedFontFace::checkFont): Returns true if all fonts are loaded.
      (WebCore::CSSSegmentedFontFace::loadFont): Starts load by calling getFontData().
      * css/CSSSegmentedFontFace.h:
      (CSSSegmentedFontFace): Declares new functions and a vector to store callbacks.
      (LoadFontCallback):
      (WebCore::CSSSegmentedFontFace::LoadFontCallback::~LoadFontCallback):
      * css/FontLoader.cpp: Added.
      (LoadFontCallback): Holds callback functions of FontLoader.loadFont().
      (WebCore::LoadFontCallback::create):
      (WebCore::LoadFontCallback::createFromParams):
      (WebCore::LoadFontCallback::LoadFontCallback):
      (WebCore::LoadFontCallback::notifyLoaded):
      (WebCore::LoadFontCallback::notifyError):
      (WebCore::FontLoader::FontLoader):
      (WebCore::FontLoader::~FontLoader):
      (WebCore::FontLoader::eventTargetData):
      (WebCore::FontLoader::ensureEventTargetData):
      (WebCore::FontLoader::interfaceName):
      (WebCore::FontLoader::scriptExecutionContext):
      (WebCore::FontLoader::didLayout): Fires pending events and callbacks. This is called when layout have completed.
      (WebCore::FontLoader::scheduleEvent): Defers event dispatching until layout completes.
      (WebCore::FontLoader::firePendingEvents): Dispatches pending events.
      (WebCore::FontLoader::beginFontLoading): Schedules loading/loadstart events. This is called from CSSFontFace.
      (WebCore::FontLoader::fontLoaded): Schedules load/loadingdone events. This is called from CSSFontFace.
      (WebCore::FontLoader::loadError): Schedules error/loadingdone events. This is called from CSSFontFace.
      (WebCore::FontLoader::notifyWhenFontsReady): Implements fontloader.notifyWhenFontsReady().
      (WebCore::FontLoader::loadingDone): Fires callbacks of notifyWhenFontsReady.
      (WebCore::FontLoader::loadFont): Implements fontloader.loadFont().
      (WebCore::FontLoader::checkFont): Implements fontloader.checkFont().
      (WebCore::FontLoader::resolveFontStyle): Parses the given font parameter using the syntax of CSS 'font' property and creates Font object. The logic is taken from CanvasRenderingContext2D::setFont().
      * css/FontLoader.h: Added.
      (FontLoader):
      (WebCore::FontLoader::create):
      (WebCore::FontLoader::loading):
      (WebCore::FontLoader::document):
      (WebCore::FontLoader::refEventTarget):
      (WebCore::FontLoader::derefEventTarget):
      * css/FontLoader.idl: Added.
      * dom/Document.cpp:
      (WebCore::Document::Document):
      (WebCore::Document::fontloader): Added.
      * dom/Document.h:
      (Document): Add m_fontloader and fontloader().
      * dom/Document.idl: Add fontloader attribute.
      * dom/EventNames.h: Add loading and loadingdone events.
      * dom/EventNames.in: Add CSSFontFaceLoadEvent.
      * dom/EventTargetFactory.in: Add FontLoader.
      * page/FrameView.cpp:
      (WebCore::FrameView::performPostLayoutTasks): Calls FontLoader::didLayout().
      
      Tools:
      
      Enable FontLoadEvents runtime flag for TestShell.
      
      * DumpRenderTree/chromium/TestRunner/src/TestInterfaces.cpp:
      (WebTestRunner::TestInterfaces::TestInterfaces):
      
      LayoutTests:
      
      Add tests for document.fontloader. Since the feature is currently enabled
      only for chromium, the tests are expected to fail on the other ports.
      
      * fast/css/fontloader-download-error-expected.txt: Added.
      * fast/css/fontloader-download-error.html: Added.
      * fast/css/fontloader-events-expected.txt: Added.
      * fast/css/fontloader-events.html: Added.
      * fast/css/fontloader-loadingdone-expected.txt: Added.
      * fast/css/fontloader-loadingdone.html: Added.
      * fast/css/fontloader-multiple-faces-download-error-expected.txt: Added.
      * fast/css/fontloader-multiple-faces-download-error.html: Added.
      * fast/css/fontloader-multiple-faces-expected.txt: Added.
      * fast/css/fontloader-multiple-faces.html: Added.
      * fast/css/fontloader-multiple-families-expected.txt: Added.
      * fast/css/fontloader-multiple-families.html: Added.
      * http/tests/webfont/fontloader-loading-attribute-expected.txt: Added.
      * http/tests/webfont/fontloader-loading-attribute.html: Added.
      * platform/chromium/fast/css/fontloader-download-error-expected.txt: Added.
      * platform/chromium/fast/css/fontloader-events-expected.txt: Added.
      * platform/chromium/fast/css/fontloader-loadingdone-expected.txt: Added.
      * platform/chromium/fast/css/fontloader-multiple-faces-download-error-expected.txt: Added.
      * platform/chromium/fast/css/fontloader-multiple-faces-expected.txt: Added.
      * platform/chromium/fast/css/fontloader-multiple-families-expected.txt: Added.
      * platform/chromium/http/tests/webfont/fontloader-loading-attribute-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145787 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d7e6fa24
    • kinuko@chromium.org's avatar
      Quota API: Update IDL to make it match the latest WD · 5c3424aa
      kinuko@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=88396
      
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      Add a new interface object (navigator.StorageQuota) and deprecate the old one (window.StorageInfo)
      to make the code match with the latest Quota API WD:
      http://www.w3.org/TR/quota-api/
      
      Tests: storage/storagequota-query-usage.html
             storage/storagequota-request-quota.html
      
      * CMakeLists.txt:
      * DerivedSources.cpp:
      * DerivedSources.make:
      * DerivedSources.pri:
      * GNUmakefile.list.am:
      * Modules/quota/DOMWindowQuota.cpp:
      (WebCore::DOMWindowQuota::webkitStorageInfo): Added a deprecate warning message for the old interface.
      * Modules/quota/NavigatorStorageQuota.cpp: Added for the new interface.
      * Modules/quota/NavigatorStorageQuota.h: Added for the new interface.
      * Modules/quota/NavigatorStorageQuota.idl: Added for the new interface.
      * Modules/quota/StorageErrorCallback.cpp:
      (WebCore::StorageErrorCallback::CallbackTask::CallbackTask):
      (WebCore::StorageErrorCallback::CallbackTask::performTask):
      * Modules/quota/StorageErrorCallback.h: Renamed from Source/WebCore/Modules/quota/StorageInfoErrorCallback.h.
      (WebCore):
      (StorageErrorCallback):
      (WebCore::StorageErrorCallback::~StorageErrorCallback):
      (WebCore::StorageErrorCallback::CallbackTask::create):
      * Modules/quota/StorageErrorCallback.idl: Renamed from Source/WebCore/Modules/quota/StorageInfoErrorCallback.idl.
      * Modules/quota/StorageInfo.cpp: Added code to relay requests to the new StorageQuota implementation.
      * Modules/quota/StorageInfo.h:
      * Modules/quota/StorageInfo.idl:
      * Modules/quota/StorageQuota.cpp: Added for the new interface.
      * Modules/quota/StorageQuota.h:
      (WebCore::StorageQuota::create):
      * Modules/quota/StorageQuota.idl: Copied from Source/WebCore/Modules/quota/StorageInfo.idl.
      * Modules/quota/StorageQuotaCallback.h: Renamed from Source/WebCore/Modules/quota/StorageInfoQuotaCallback.h.
      * Modules/quota/StorageQuotaCallback.idl: Renamed from Source/WebCore/Modules/quota/StorageInfoQuotaCallback.idl.
      * Modules/quota/StorageUsageCallback.h: Renamed from Source/WebCore/Modules/quota/StorageInfoUsageCallback.h.
      * Modules/quota/StorageUsageCallback.idl: Renamed from Source/WebCore/Modules/quota/StorageInfoUsageCallback.idl.
      * Target.pri:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * page/FeatureObserver.h:
      
      Source/WebKit/chromium:
      
      Add a new interface object (navigator.StorageQuota) and deprecate the old one (window.StorageInfo)
      to make the code match with the latest Quota API WD:
      http://www.w3.org/TR/quota-api/
      
      * WebKit.gyp:
      * src/AssertMatchingEnums.cpp:
      * src/StorageQuotaChromium.cpp: Renamed from Source/WebKit/chromium/src/StorageInfoChromium.cpp.
      (WebCore):
      (WebCore::StorageQuota::queryUsageAndQuota):
      (WebCore::StorageQuota::requestQuota):
      * src/WebStorageQuotaCallbacksImpl.cpp:
      (WebKit::WebStorageQuotaCallbacksImpl::WebStorageQuotaCallbacksImpl):
      * src/WebStorageQuotaCallbacksImpl.h:
      (WebCore):
      (WebStorageQuotaCallbacksImpl):
      
      LayoutTests:
      
      * platform/chromium/TestExpectations:
      * storage/storagequota-query-usage-expected.txt: Added.
      * storage/storagequota-query-usage.html: Added.
      * storage/storagequota-request-quota-expected.txt: Added.
      * storage/storagequota-request-quota.html: Added.
      
      Rebaselines:
      * platform/chromium/fast/dom/everything-to-string-expected.txt: Added.
      * platform/chromium/fast/dom/navigator-detached-no-crash-expected.txt:
      * platform/chromium/fast/js/global-constructors-expected.txt:
      * platform/chromium/http/tests/security/isolatedWorld/all-window-properties-expected.txt: Added.
      * platform/chromium/http/tests/security/isolatedWorld/all-window-prototypes-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145782 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5c3424aa
  18. 12 Mar, 2013 2 commits
  19. 08 Mar, 2013 1 commit
    • eric@webkit.org's avatar
      BackgroundHTMLParser should be able to atomize well-known strings · 81db328c
      eric@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=107337
      
      Reviewed by Adam Barth.
      
      Testing this patch easily requires applying bug 107236 locally
      to remove all the rendering noise from Parser/html-threaded-parser.html.
      
      This patch adds a new class HTMLIdentifier which allows us to avoid
      allocating strings for known tag/attribute names from HTMLNames.
      
      There is still a lot of meat on this bone, but I think it's important to
      land something "smallish" to start and iterate from there.
      
      This took Parser/html-threaded-parser.html from:
      median= 443.726500002 ms, stdev= 7.25002679952 ms, min= 430.244000047 ms, max= 455.511000007 ms
      to:
      median= 427.849500004 ms, stdev= 9.96967058292 ms, min= 417.914000049 ms, max= 461.528000014 ms
      on my MBP.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * html/parser/AtomicHTMLToken.h:
      (WebCore::AtomicHTMLToken::AtomicHTMLToken):
      * html/parser/BackgroundHTMLParser.cpp:
      (WebCore::tokenExitsForeignContent):
      (WebCore::tokenExitsSVG):
      (WebCore::tokenExitsMath):
      (WebCore::BackgroundHTMLParser::simulateTreeBuilder):
      * html/parser/CSSPreloadScanner.cpp:
      (WebCore::CSSPreloadScanner::scan):
      * html/parser/CSSPreloadScanner.h:
      (WebCore):
      (CSSPreloadScanner):
      * html/parser/CompactHTMLToken.cpp:
      (SameSizeAsCompactHTMLToken):
      (WebCore::CompactHTMLToken::CompactHTMLToken):
      * html/parser/CompactHTMLToken.h:
      (WebCore::CompactHTMLToken::Attribute::Attribute):
      (Attribute):
      (WebCore::CompactHTMLToken::data):
      (WebCore::CompactHTMLToken::publicIdentifier):
      (CompactHTMLToken):
      * html/parser/HTMLDocumentParser.cpp:
      (WebCore::HTMLDocumentParser::startBackgroundParser):
      * html/parser/HTMLIdentifier.cpp: Added.
      (WebCore):
      (WebCore::identifierTable):
      (WebCore::HTMLIdentifier::hasIndex):
      (WebCore::HTMLIdentifier::findIndex):
      (WebCore::nameForIndex):
      (WebCore::HTMLIdentifier::asString):
      (WebCore::HTMLIdentifier::asStringImpl):
      (WebCore::HTMLIdentifier::addNames):
      (WebCore::HTMLIdentifier::init):
      * html/parser/HTMLIdentifier.h: Added.
      (WebCore):
      (HTMLIdentifier):
      (WebCore::HTMLIdentifier::HTMLIdentifier):
      (WebCore::HTMLIdentifier::isSafeToSendToAnotherThread):
      * html/parser/HTMLParserIdioms.cpp:
      (WebCore::threadSafeEqual):
      (WebCore::threadSafeMatch):
      * html/parser/HTMLParserIdioms.h:
      (WebCore):
      (WebCore::threadSafeHTMLNamesMatch):
      * html/parser/HTMLPreloadScanner.cpp:
      (WebCore::TokenPreloadScanner::tagIdFor):
      (WebCore::TokenPreloadScanner::StartTagScanner::match):
      (TokenPreloadScanner::StartTagScanner):
      (WebCore::TokenPreloadScanner::StartTagScanner::processAttribute):
      * html/parser/HTMLPreloadScanner.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145292 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      81db328c