1. 12 Jan, 2014 1 commit
    • weinig@apple.com's avatar
      Split ICU UText providers out into their own files · 5bc85201
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126834
      
      Reviewed by Anders Carlsson.
      
      Moves the implementation of our custom UText providers out into
      their own files.
      - UTextProviderLatin1.h/cpp contains the Latin-1 provider.
      - UTextProviderUTF16.h/cpp contains the UTF-16 provider.
      - UTextProvider.h/cpp contains code common to all the providers.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * PlatformGTK.cmake:
      * WebCore.vcxproj/WebCoreCommon.props:
      * WebCore.vcxproj/copyForwardingHeaders.cmd:
      * WebCore.xcodeproj/project.pbxproj:
      * platform/text/TextAllInOne.cpp:
      * platform/text/TextBreakIteratorICU.cpp:
      (WebCore::setUpIterator):
      (WebCore::wordBreakIterator):
      (WebCore::acquireLineBreakIterator):
      (WebCore::sentenceBreakIterator):
      (WebCore::setUpIteratorWithRules):
      * platform/text/icu: Added.
      * platform/text/icu/UTextProvider.cpp: Added.
      (WebCore::fixPointer):
      (WebCore::uTextCloneImpl):
      * platform/text/icu/UTextProvider.h: Added.
      (WebCore::uTextProviderContext):
      (WebCore::uTextInitialize):
      (WebCore::uTextAccessPinIndex):
      (WebCore::uTextAccessInChunkOrOutOfRange):
      * platform/text/icu/UTextProviderLatin1.cpp: Added.
      * platform/text/icu/UTextProviderLatin1.h: Added.
      * platform/text/icu/UTextProviderUTF16.cpp: Added.
      * platform/text/icu/UTextProviderUTF16.h: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161817 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5bc85201
  2. 11 Dec, 2013 1 commit
    • zandobersek@gmail.com's avatar
      [GTK] Add a UPower-based BatteryProvider · 0414f142
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115719
      
      Reviewed by Martin Robinson.
      
      Source/Platform: 
      
      * GNUmakefile.am: Add the Source/WebCore/platform/glib directory to the list of directories searched
      for header inclusion. Add the upower-glib dependency CFLAGS to the list of libPlatform's CPPFLAGS.
      
      Source/WebCore: 
      
      Introduce the BatteryProviderUPower, a provider of the system's battery status that produces the information
      using the upower-glib library.
      
      The BatteryProviderUPower creates a new UPower client when the provider should start emitting updates and hooks
      up to device alteration signals. These only fire recalculation of the battery status when a battery device is altered.
      
      When recalculating, every battery device is taken into account, accumulating the energy capacities when both empty
      and full, the current rate of energy charging/discharging, and the battery status (whether the device is charging or
      discharging). This gives a set of data that covers the overall battery status of the system.
      
      This data is then used to calculate the battery status as perceived by the WebCore implementation. Charging is determined
      by examining the integral sign of the current combined energy rate. Charging and discharging times are calculated, when
      appropriate, by dividing the chargable/dischargable capacity with the current combined energy rate. The battery level is
      calculated by dividing the current energy capacity with the full energy capacity (i.e. the combined capacity of all
      the batteries that the system possesses). The status is (indirectly) passed onto BatteryManager by invoking the
      updateBatteryStatus method on the client, with the first parameter representing the battery charging/discharging state,
      the second parameter representing the time left until the battery is fully charged (when charging) or fully
      depleted (when discharging), and the third parameter representing the current battery level.
      
      Whenever the implementation cannot provide any information about the battery status of the system, the client's
      updateBatteryStatus method is invoked with the first parameter reporting the unavailability of any information
      about the battery status. The other two parameters can be omitted as they default to 0 when not given and are neither
      available nor useful in such circumstances. The client should handle such an update by reporting the 'default' battery
      status - charging, the battery level being at 1.0 and both the charging and discharging time having the value of
      the positive infinity (as per the Battery Status API specification).
      
      The implementation is heavily inspired by a similar approach to calculating battery status in GNOME Settings Daemon.
      
      No new tests - no new functionality. The feature is not yet enabled. When enabled, the relevant tests pass.
      
      * GNUmakefile.list.am: Add the BatteryProviderUPower(Client) build targets.
      * platform/glib/BatteryProviderUPower.cpp: Added.
      (powerDeviceAlterationCallback):
      (BatteryProviderUPower::BatteryProviderUPower):
      (BatteryProviderUPower::startUpdating):
      (BatteryProviderUPower::stopUpdating):
      (BatteryProviderUPower::updateBatteryStatus):
      * platform/glib/BatteryProviderUPower.h: Added.
      (WebCore):
      (BatteryProviderUPower):
      * platform/glib/BatteryProviderUPowerClient.h: Added.
      (WebCore):
      (BatteryProviderUPowerClient):
      
      Source/WebKit/gtk: 
      
      * GNUmakefile.am: Link the libwebkigtk library against the upower-glib library.
      
      Source/WebKit2: 
      
      * GNUmakefile.am: Link the libwebkit2gtk library against the upower-glib library.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160444 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0414f142
  3. 07 Nov, 2013 1 commit
    • mario@webkit.org's avatar
      [GTK] Glyphs in vertical text tests are rotated 90 degrees clockwise · 1795391d
      mario@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=50619
      
      Patch by Denis Nomiyama <d.nomiyama@samsung.com> on 2013-11-07
      Reviewed by Martin Robinson.
      
      Source/WebCore:
      
      Implemented the OPENTYPE_VERTICAL feature for the GTK+ port. It resolves
      the 90 degrees rotation problem of CJK characters when displaying
      vertical text.
      
      New tests are not required as the existing tests for vertical text will
      work properly now.
      
      * GNUmakefile.list.am: Added OpenTypeVerticalData.cpp and
      OpenTypeVerticalData.h to platformgtk_sources.
      * PlatformEfl.cmake: Added OpenTypeVerticalData.cpp.
      * PlatformGTK.cmake: Added OpenTypeVerticalData.cpp.
      * platform/graphics/FontCache.cpp: Originally the HashMap for
      OpenTypeVerticalData was designed with FontFileKey as integer in the
      Chromium port, which was an unique number provided by Skia. Since other
      ports use FontFileKey as string, new generic hash functions had to be
      implemented instead of using the specific ones for integers.
      (WebCore::FontVerticalDataCacheKeyHash::hash): New hash function for
      HashMap of OpenTypeVerticalData.
      (WebCore::FontVerticalDataCacheKeyHash::equal): New function for
      comparing hash indexes in the HashMap of OpenTypeVerticalData.
      (WebCore::FontVerticalDataCacheKeyTraits::emptyValue): New function for
      giving an empty FontFileKey.
      (WebCore::FontVerticalDataCacheKeyTraits::constructDeletedValue): New
      function to create a FontFileKey for deleted values.
      (WebCore::FontVerticalDataCacheKeyTraits::isDeletedValue): New function
      to check if a HashMap entry is available.
      * platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp:
      (WebCore::FontCustomPlatformData::fontPlatformData): Added font
      orientation as a parameter to the FontPlatformData constructor.
      * platform/graphics/freetype/FontPlatformData.h: Added m_orientation to
      store the font orientation and m_horizontalOrientationMatrix to store
      the Cairo matrix for horizontal orientation, which can be restored in
      setOrientation().
      (WebCore::FontPlatformData::FontPlatformData): Added font orientation as
      a parameter.
      (WebCore::FontPlatformData::orientation): Implemented this function
      based on m_orientation.
      * platform/graphics/freetype/FontPlatformDataFreeType.cpp: Added new
      helper function rotateCairoMatrixForVerticalOrientation() to rotate the
      Cairo matrix in case of vertical orientation.
      (WebCore::FontPlatformData::FontPlatformData): Initialized
      m_orientation.
      (WebCore::FontPlatformData::operator=): Added m_orientation and
      m_horizontalOrientationMatrix to the assignment operator.
      (WebCore::FontPlatformData::operator==): Added m_orientation to the
      equal operator.
      (WebCore::FontPlatformData::initializeWithFontFace): Rotated and
      translated fonts if orientation is vertical. Also stored the horizontal
      Cairo matrix.
      (WebCore::FontPlatformData::verticalData): Returned the vertical data
      from the font cache.
      (WebCore::FontPlatformData::openTypeTable): Loaded the font table into
      a shared buffer.
      (WebCore::FontPlatformData::setOrientation): Replaced the scaled font
      data by rotating fonts according to the new orientation.
      * platform/graphics/freetype/SimpleFontDataFreeType.cpp:
      (WebCore::SimpleFontData::platformInit): Set the glyph's height and
      width according to the font orientation. It also sets EM.
      (WebCore::SimpleFontData::platformCreateScaledFontData): Added
      orientation to the FontPlatformData constructor.
      (WebCore::SimpleFontData::platformWidthForGlyph): Returned the glyph's
      width according the orientation.
      * platform/graphics/harfbuzz/HarfBuzzFaceCairo.cpp:
      (WebCore::CairoGetGlyphWidthAndExtents): Obtained the character advance
      and extents according to the font orientation.
      
      Source/Platform:
      
      Added WebCore/platform/graphics/opentype to the include path.
      
      * GNUmakefile.am:
      
      Source/WTF:
      
      Enabled OPENTYPE_VERTICAL by default on GTK+ and EFL ports, which are
      currently using Freetype.
      
      * wtf/Platform.h:
      
      Source/WebKit:
      
      Added WebCore/platform/graphics/opentype to the include path.
      
      * PlatformEfl.cmake:
      
      Source/WebKit2:
      
      Added WebCore/platform/graphics/opentype to the include path.
      
      * PlatformEfl.cmake:
      * PlatformGTK.cmake:
      
      LayoutTests:
      
      Updated existing test results that uses vertical texts.
      
      * platform/gtk-wk1/fast/writing-mode/Kusa-Makura-background-canvas-expected.png: Added.
      * platform/gtk-wk1/fast/writing-mode/Kusa-Makura-background-canvas-expected.txt: Updated.
      * platform/gtk/editing/selection/vertical-lr-ltr-extend-line-backward-br-expected.png: Updated.
      * platform/gtk/editing/selection/vertical-lr-ltr-extend-line-backward-br-expected.txt: Updated.
      * platform/gtk/editing/selection/vertical-lr-ltr-extend-line-forward-br-expected.png: Updated.
      * platform/gtk/editing/selection/vertical-lr-ltr-extend-line-forward-br-expected.txt: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-backward-br-expected.png: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-backward-br-expected.txt: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-backward-p-expected.png: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-backward-p-expected.txt: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-backward-wrap-expected.png: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-backward-wrap-expected.txt: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-forward-br-expected.png: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-forward-br-expected.txt: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-forward-p-expected.png: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-forward-p-expected.txt: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-forward-wrap-expected.png: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-forward-wrap-expected.txt: Updated.
      * platform/gtk/fast/block/lineboxcontain/block-with-ideographs-expected.png: Updated.
      * platform/gtk/fast/block/lineboxcontain/block-with-ideographs-expected.txt: Updated.
      * platform/gtk/fast/css/relative-positioned-block-with-inline-ancestor-and-parent-dynamic-expected.png: Updated.
      * platform/gtk/fast/dynamic/text-combine-expected.png: Updated.
      * platform/gtk/fast/dynamic/text-combine-expected.txt: Updated.
      * platform/gtk/fast/html/details-writing-mode-expected.png: Updated.
      * platform/gtk/fast/repaint/japanese-rl-selection-clear-expected.png: Updated.
      * platform/gtk/fast/repaint/japanese-rl-selection-clear-expected.txt: Added.
      * platform/gtk/fast/repaint/japanese-rl-selection-repaint-expected.png: Updated.
      * platform/gtk/fast/repaint/japanese-rl-selection-repaint-expected.txt: Added.
      * platform/gtk/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.png: Updated.
      * platform/gtk/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.txt: Updated.
      * platform/gtk/fast/repaint/repaint-across-writing-mode-boundary-expected.png: Updated.
      * platform/gtk/fast/repaint/repaint-across-writing-mode-boundary-expected.txt: Updated.
      * platform/gtk/fast/ruby/base-shorter-than-text-expected.png: Updated.
      * platform/gtk/fast/ruby/base-shorter-than-text-expected.txt: Updated.
      * platform/gtk/fast/text/decorations-with-text-combine-expected.png: Updated.
      * platform/gtk/fast/text/decorations-with-text-combine-expected.txt: Updated.
      * platform/gtk/fast/text/emphasis-combined-text-expected.png: Updated.
      * platform/gtk/fast/text/emphasis-combined-text-expected.txt: Updated.
      * platform/gtk/fast/text/emphasis-vertical-expected.png: Updated.
      * platform/gtk/fast/text/emphasis-vertical-expected.txt: Updated.
      * platform/gtk/fast/text/international/text-combine-image-test-expected.png: Updated.
      * platform/gtk/fast/text/international/text-combine-image-test-expected.txt: Updated.
      * platform/gtk/fast/text/international/text-spliced-font-expected.png: Updated.
      * platform/gtk/fast/text/international/text-spliced-font-expected.txt: Updated.
      * platform/gtk/fast/text/international/vertical-text-glyph-test-expected.png: Updated.
      * platform/gtk/fast/text/international/vertical-text-glyph-test-expected.txt: Added.
      * platform/gtk/fast/text/justify-ideograph-vertical-expected.png: Updated.
      * platform/gtk/fast/text/justify-ideograph-vertical-expected.txt: Added.
      * platform/gtk/fast/text/orientation-sideways-expected.png: Updated.
      * platform/gtk/fast/text/orientation-sideways-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/Kusa-Makura-background-canvas-expected.png: Updated.
      * platform/gtk/fast/writing-mode/Kusa-Makura-background-canvas-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/border-vertical-lr-expected.png: Updated.
      * platform/gtk/fast/writing-mode/border-vertical-lr-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/broken-ideograph-small-caps-expected.png: Updated.
      * platform/gtk/fast/writing-mode/broken-ideograph-small-caps-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/broken-ideographic-font-expected.png: Updated.
      * platform/gtk/fast/writing-mode/broken-ideographic-font-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/fallback-orientation-expected.png: Updated.
      * platform/gtk/fast/writing-mode/fallback-orientation-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/japanese-lr-selection-expected.png: Updated.
      * platform/gtk/fast/writing-mode/japanese-lr-selection-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/japanese-lr-text-expected.png: Updated.
      * platform/gtk/fast/writing-mode/japanese-lr-text-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/japanese-rl-selection-expected.png: Updated.
      * platform/gtk/fast/writing-mode/japanese-rl-selection-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/japanese-rl-text-expected.png: Updated.
      * platform/gtk/fast/writing-mode/japanese-rl-text-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/japanese-rl-text-with-broken-font-expected.png: Updated.
      * platform/gtk/fast/writing-mode/japanese-rl-text-with-broken-font-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/japanese-ruby-vertical-lr-expected.png: Updated.
      * platform/gtk/fast/writing-mode/japanese-ruby-vertical-lr-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/japanese-ruby-vertical-rl-expected.png: Updated.
      * platform/gtk/fast/writing-mode/japanese-ruby-vertical-rl-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/text-orientation-basic-expected.png: Updated.
      * platform/gtk/fast/writing-mode/text-orientation-basic-expected.txt:
      * platform/gtk/fast/writing-mode/vertical-align-table-baseline-expected.png: Updated.
      * platform/gtk/fast/writing-mode/vertical-align-table-baseline-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/vertical-baseline-alignment-expected.png: Updated.
      * platform/gtk/fast/writing-mode/vertical-baseline-alignment-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/vertical-font-fallback-expected.png: Updated.
      * platform/gtk/fast/writing-mode/vertical-font-fallback-expected.txt: Updated.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158848 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1795391d
  4. 02 Jul, 2013 1 commit
    • kov@webkit.org's avatar
      [GTK] Remove unsupported AC backends · 30b49f1f
      kov@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=117362
      
      Patch by Gustavo Noronha Silva <gustavo.noronha@collabora.com> on 2013-07-01
      Reviewed by Martin Robinson.
      
      .:
      
      * Source/autotools/FindDependencies.m4: remove checks related to acceleration backend,
      turn them into a check for OpenGL being available, simply.
      * Source/autotools/ReadCommandLineArguments.m4: remove command line option to select
      accelerated backend, it's now auto-detected.
      * Source/autotools/SetupAutoconfHeader.m4: no longer defines USE_CLUTTER and
      USE_TEXTURE_MAPPER_CAIRO.
      * Source/autotools/SetupAutomake.m4: remove checks related to acceleration backend,
      turn them into a check for OpenGL being available, simply.
      * Source/autotools/Versions.m4: no longer check for clutter/clutter-gtk.
      
      Source/WebCore:
      
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * Source/WebCore/platform/graphics/PlatformLayer.h: Removed mentions of clutter
      and the texmap cairo backend.
      * platform/graphics/clutter/DrawingBufferClutter.cpp: Removed.
      * platform/graphics/clutter/GraphicsContext3DClutter.cpp: Removed.
      * platform/graphics/clutter/GraphicsContext3DPrivate.cpp: Removed.
      * platform/graphics/clutter/GraphicsContext3DPrivate.h: Removed.
      * platform/graphics/clutter/GraphicsLayerActor.cpp: Removed.
      * platform/graphics/clutter/GraphicsLayerActor.h: Removed.
      * platform/graphics/clutter/GraphicsLayerClutter.cpp: Removed.
      * platform/graphics/clutter/GraphicsLayerClutter.h: Removed.
      * platform/graphics/clutter/PlatformClutterAnimation.cpp: Removed.
      * platform/graphics/clutter/PlatformClutterAnimation.h: Removed.
      * platform/graphics/clutter/PlatformClutterLayerClient.h: Removed.
      * platform/graphics/clutter/TransformationMatrixClutter.cpp: Removed.
      * Source/WebCore/platform/graphics/transforms/TransformationMatrix.h: Removed cogl
      matrix type conversion.
      
      Source/WebKit/gtk:
      
      * GNUmakefile.am:
      * WebCoreSupport/AcceleratedCompositingContext.h: removed clutter and cairo
      additions.
      * WebCoreSupport/AcceleratedCompositingContextCairo.cpp: Removed.
      * WebCoreSupport/AcceleratedCompositingContextClutter.cpp: Removed.
      * webkit/webkitglobals.cpp:
      (webkitInit): removed clutter-gtk initialization.
      
      Tools:
      
      * gtk/jhbuild-optional.modules: no longer needs clutter-gtk, clutter
      and cogl, so removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152275 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      30b49f1f
  5. 14 Jun, 2013 1 commit
  6. 12 Jun, 2013 1 commit
    • zandobersek@gmail.com's avatar
      [GTK] Move more build targets for source code that's free of layer violations into libPlatform · 60be53da
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115936
      
      Reviewed by Martin Robinson.
      
      Source/Platform: 
      
      * GNUmakefile.am: Add additional Source/WebCore/platform subdirectories to the list of the directories
      that are specific to the platform layer but still located in WebCore. Add Enchant and Freetype dependencies'
      CFLAGS to the list of libPlatform CPPFLAGS. Add GStreamer dependency's CFLAGS to the list of libPlatformGtk
      CPPFLAGS.
      
      Source/WebCore: 
      
      No new tests - no new functionality.
      
      * GNUmakefile.list.am: Move more build targets under the platform_sources and platformgtk_sources listing.
      These build targets represent source files that are already free of platform layer violations and are as such
      ready to be pushed down from the WebCore layer into the Platform layer.
      
      Source/WebKit2: 
      
      * GNUmakefile.am: Add GStreamer dependency's CFLAGS to the list of libPlatformGtk2 CPPFLAGS.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151522 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60be53da
  7. 14 May, 2013 2 commits
    • zandobersek@gmail.com's avatar
      [GTK] Move generated ColorData.cpp, WebKitFontFamilyNames.(cpp|h) build targets into libPlatform · 6d888f8c
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115921
      
      Reviewed by Gustavo Noronha Silva.
      
      .: 
      
      * GNUmakefile.am: Add GENSOURCES_PLATFORM, platform_built_sources variables.
      
      Source/Platform: 
      
      * GNUmakefile.am: Move the ANGLE include directories under the new platform_cppflags variable,
      adding the DerivedSources/Platform directory. Add the generated sources' build targets to libPlatform
      under nodist_libPlatform_la_SOURCES. Add platform_cppflags to the list of libPlatformGtk CPPFLAGS.
      Add generation rules for the ColorData.cpp and WebKitFontFamilyNames.(cpp|h) source files, now generated
      into the DerivedSources/Platform directory.
      
      Source/WebCore: 
      
      No new tests - no new functionality.
      
      * GNUmakefile.am: Add platform_cppflags to the list of CPPFLAGS for libWebCoreSVG, libWebCore,
      libWebCorePlatform, libWebCoreGtk. Remove generation rules for ColorData.cpp and WebKitFontFamilyNames.(cpp|h).
      * GNUmakefile.list.am: Include the ColorData.cpp and WebKitFontFamilyNames.(cpp|h) build targers under
      platform_built_sources.
      * bindings/gobject/GNUmakefile.am: Add platform_cppflags to the list of libWebCoreDOM CPPFLAGS.
      
      Source/WebKit/gtk: 
      
      * GNUmakefile.am: Add platform_cppflags to the list of CPPFLAGS for libwebkit2gtk, libWebCoreGtk2,
      libPlatformGtk2 and WebKitPluginProcess.
      
      Source/WebKit2: 
      
      * GNUmakefile.am: Add platform_cppflags to the list of libwebkit2gtk CPPFLAGS.
      
      Tools: 
      
      * GNUmakefile.am: Add platform_cppflags to the list of CPPFLAGS for libWebCoreInternals and DumpRenderTree.
      * TestWebKitAPI/GNUmakefile.am: Add platform_cppflags to the list of TestGtk CPPFLAGS.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150074 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6d888f8c
    • zandobersek@gmail.com's avatar
      [GTK] libPlatform, libPlatformGtk must depend on the related GNUmakefiles · c4d16cb8
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115937
      
      Reviewed by Martin Robinson.
      
      Source/Platform: 
      
      * GNUmakefile.am: Set up an artifical dependency so that libPlatform and libPlatformGtk
      libraries take into account any changes in this GNUmakefile.am and the GNUmakefile.list.am
      located under Source/WebCore. The latter is included due to all the build targets for the
      two libraries being listed there.
      
      Source/WebCore: 
      
      No new tests - no new functionality.
      
      * GNUmakefile.am: Fix typos in two libraries' names - Webcore -> WebCore.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150073 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c4d16cb8
  8. 06 May, 2013 1 commit
  9. 24 Apr, 2013 1 commit
  10. 22 Apr, 2013 1 commit
    • zandobersek@gmail.com's avatar
      [GTK] Set up libPlatform.la · 25d930a1
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114168
      
      Reviewed by Martin Robinson.
      
      .: 
      
      * GNUmakefile.am: Define the platform_cppflags and platform_sources variables.
      
      Source/Platform: 
      
      * GNUmakefile.am: Set up the libPlatform.la static library to build the source files listed in platform_sources.
      As with the libPlatformGtk.la library, only the Source/WebCore/platform and its subdirectories are allowed to be
      searched for headers to include, providing a convenient way to detect any platform violations. These directories
      are listed in the platform_webcore_cppflags variable.
      
      Source/WebCore: 
      
      No new tests - no new functionality.
      
      * GNUmakefile.am: Also add the LevelDB-specific cppflags to the platform_cppflags if required as the LevelDB
      code is now built into the new libPlatform.la library.
      * GNUmakefile.list.am: Build a small set of non-GTK-specific platform source files that are already free of
      platform violations into the new libPlatform.la library.
      
      Source/WebKit/gtk: 
      
      * GNUmakefile.am: Add the new libPlatform.la library to the libwebkitgtk library.
      
      Source/WebKit2: 
      
      * GNUmakefile.am: Add the new libPlatform.la library to the libwebkitgtk library. Link the WebKitPluginProcess
      executable against libPlatform.la as well.
      
      Tools: 
      
      * GNUmakefile.am: Link the DumpRenderTree executable against both libPlatform.la and libPlatformGtk.la libraries.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148903 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      25d930a1
  11. 05 Apr, 2013 2 commits
    • benjamin@webkit.org's avatar
      Fix GTK+ for real after r147712 · dface958
      benjamin@webkit.org authored
      Reviewed by Ryosuke Niwa.
      
      .: 
      
      * GNUmakefile.am:
      * Source/Platform: Added.
      * Source/Platform/GNUmakefile.am: Added.
      
      Source/Platform: 
      
      * GNUmakefile.am: Added.
      * Platform: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147724 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dface958
    • rniwa@webkit.org's avatar
      Remove the top level gyp directory and Platform/chromium · caabc53f
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=113999
      
      Reviewed by Benjamin Poulain.
      
      .: 
      
      * Source/Platform: Removed.
      * Source/gyp: Removed.
      
      Source/Platform: 
      
      * Platform.gyp: Removed.
      * Platform.gyp/.gitignore: Removed.
      * Platform.gyp/Platform.gyp: Removed.
      * Platform.gypi: Removed.
      * chromium: Removed.
      * chromium/public: Removed.
      * chromium/public/Platform.h: Removed.
      * chromium/public/WebAnimation.h: Removed.
      * chromium/public/WebAnimationCurve.h: Removed.
      * chromium/public/WebAnimationDelegate.h: Removed.
      * chromium/public/WebAudioBus.h: Removed.
      * chromium/public/WebAudioDestinationConsumer.h: Removed.
      * chromium/public/WebAudioDevice.h: Removed.
      * chromium/public/WebBlobData.h: Removed.
      * chromium/public/WebBlobRegistry.h: Removed.
      * chromium/public/WebCString.h: Removed.
      * chromium/public/WebCanvas.h: Removed.
      * chromium/public/WebClipboard.h: Removed.
      * chromium/public/WebColor.h: Removed.
      * chromium/public/WebCommon.h: Removed.
      * chromium/public/WebCompositorOutputSurface.h: Removed.
      * chromium/public/WebCompositorSupport.h: Removed.
      * chromium/public/WebContentLayer.h: Removed.
      * chromium/public/WebContentLayerClient.h: Removed.
      * chromium/public/WebCookie.h: Removed.
      * chromium/public/WebCookieJar.h: Removed.
      * chromium/public/WebData.h: Removed.
      * chromium/public/WebDiscardableMemory.h: Removed.
      * chromium/public/WebDragData.h: Removed.
      * chromium/public/WebExternalTextureLayer.h: Removed.
      * chromium/public/WebExternalTextureLayerClient.h: Removed.
      * chromium/public/WebFileError.h: Removed.
      * chromium/public/WebFileInfo.h: Removed.
      * chromium/public/WebFileSystem.h: Removed.
      * chromium/public/WebFileSystemCallbacks.h: Removed.
      * chromium/public/WebFileSystemEntry.h: Removed.
      * chromium/public/WebFileSystemType.h: Removed.
      * chromium/public/WebFileUtilities.h: Removed.
      * chromium/public/WebFilterOperation.h: Removed.
      * chromium/public/WebFilterOperations.h: Removed.
      * chromium/public/WebFlingAnimator.h: Removed.
      * chromium/public/WebFloatAnimationCurve.h: Removed.
      * chromium/public/WebFloatKeyframe.h: Removed.
      * chromium/public/WebFloatPoint.h: Removed.
      * chromium/public/WebFloatQuad.h: Removed.
      * chromium/public/WebFloatRect.h: Removed.
      * chromium/public/WebFloatSize.h: Removed.
      * chromium/public/WebGamepad.h: Removed.
      * chromium/public/WebGamepads.h: Removed.
      * chromium/public/WebGestureCurve.h: Removed.
      * chromium/public/WebGestureCurveTarget.h: Removed.
      * chromium/public/WebGraphicsContext3D.h: Removed.
      * chromium/public/WebGraphicsMemoryAllocation.h: Removed.
      * chromium/public/WebGraphicsMemoryStats.h: Removed.
      * chromium/public/WebHTTPBody.h: Removed.
      * chromium/public/WebHTTPHeaderVisitor.h: Removed.
      * chromium/public/WebHTTPLoadInfo.h: Removed.
      * chromium/public/WebHyphenator.h: Removed.
      * chromium/public/WebImage.h: Removed.
      * chromium/public/WebImageLayer.h: Removed.
      * chromium/public/WebInputHandler.h: Removed.
      * chromium/public/WebInputHandlerClient.h: Removed.
      * chromium/public/WebLayer.h: Removed.
      * chromium/public/WebLayerPositionConstraint.h: Removed.
      * chromium/public/WebLayerScrollClient.h: Removed.
      * chromium/public/WebLayerTreeView.h: Removed.
      * chromium/public/WebLocalizedString.h: Removed.
      * chromium/public/WebMediaConstraints.h: Removed.
      * chromium/public/WebMediaStream.h: Removed.
      * chromium/public/WebMediaStreamCenter.h: Removed.
      * chromium/public/WebMediaStreamCenterClient.h: Removed.
      * chromium/public/WebMediaStreamSource.h: Removed.
      * chromium/public/WebMediaStreamSourcesRequest.h: Removed.
      * chromium/public/WebMediaStreamTrack.h: Removed.
      * chromium/public/WebMessagePortChannel.h: Removed.
      * chromium/public/WebMessagePortChannelClient.h: Removed.
      * chromium/public/WebMimeRegistry.h: Removed.
      * chromium/public/WebNonCopyable.h: Removed.
      * chromium/public/WebPluginListBuilder.h: Removed.
      * chromium/public/WebPoint.h: Removed.
      * chromium/public/WebPrerender.h: Removed.
      * chromium/public/WebPrerenderingSupport.h: Removed.
      * chromium/public/WebPrivateOwnPtr.h: Removed.
      * chromium/public/WebPrivatePtr.h: Removed.
      * chromium/public/WebRTCConfiguration.h: Removed.
      * chromium/public/WebRTCDTMFSenderHandler.h: Removed.
      * chromium/public/WebRTCDTMFSenderHandlerClient.h: Removed.
      * chromium/public/WebRTCDataChannelHandler.h: Removed.
      * chromium/public/WebRTCDataChannelHandlerClient.h: Removed.
      * chromium/public/WebRTCICECandidate.h: Removed.
      * chromium/public/WebRTCPeerConnectionHandler.h: Removed.
      * chromium/public/WebRTCPeerConnectionHandlerClient.h: Removed.
      * chromium/public/WebRTCSessionDescription.h: Removed.
      * chromium/public/WebRTCSessionDescriptionRequest.h: Removed.
      * chromium/public/WebRTCStatsRequest.h: Removed.
      * chromium/public/WebRTCStatsResponse.h: Removed.
      * chromium/public/WebRTCVoidRequest.h: Removed.
      * chromium/public/WebRect.h: Removed.
      * chromium/public/WebReferrerPolicy.h: Removed.
      * chromium/public/WebRenderingStats.h: Removed.
      * chromium/public/WebScreenInfo.h: Removed.
      * chromium/public/WebScrollbar.h: Removed.
      * chromium/public/WebScrollbarLayer.h: Removed.
      * chromium/public/WebScrollbarThemeGeometry.h: Removed.
      * chromium/public/WebScrollbarThemePainter.h: Removed.
      * chromium/public/WebSize.h: Removed.
      * chromium/public/WebSocketStreamError.h: Removed.
      * chromium/public/WebSocketStreamHandle.h: Removed.
      * chromium/public/WebSocketStreamHandleClient.h: Removed.
      * chromium/public/WebSolidColorLayer.h: Removed.
      * chromium/public/WebSpeechSynthesisUtterance.h: Removed.
      * chromium/public/WebSpeechSynthesisVoice.h: Removed.
      * chromium/public/WebSpeechSynthesizer.h: Removed.
      * chromium/public/WebSpeechSynthesizerClient.h: Removed.
      * chromium/public/WebStorageArea.h: Removed.
      * chromium/public/WebStorageNamespace.h: Removed.
      * chromium/public/WebString.h: Removed.
      * chromium/public/WebThread.h: Removed.
      * chromium/public/WebThreadSafeData.h: Removed.
      * chromium/public/WebTransformAnimationCurve.h: Removed.
      * chromium/public/WebTransformKeyframe.h: Removed.
      * chromium/public/WebTransformOperations.h: Removed.
      * chromium/public/WebURL.h: Removed.
      * chromium/public/WebURLError.h: Removed.
      * chromium/public/WebURLLoadTiming.h: Removed.
      * chromium/public/WebURLLoader.h: Removed.
      * chromium/public/WebURLLoaderClient.h: Removed.
      * chromium/public/WebURLRequest.h: Removed.
      * chromium/public/WebURLResponse.h: Removed.
      * chromium/public/WebUnitTestSupport.h: Removed.
      * chromium/public/WebVector.h: Removed.
      * chromium/public/WebWorkerRunLoop.h: Removed.
      * chromium/public/android: Removed.
      * chromium/public/android/WebSandboxSupport.h: Removed.
      * chromium/public/android/WebThemeEngine.h: Removed.
      * chromium/public/default: Removed.
      * chromium/public/default/WebThemeEngine.h: Removed.
      * chromium/public/linux: Removed.
      * chromium/public/linux/WebFontFamily.h: Removed.
      * chromium/public/linux/WebFontInfo.h: Removed.
      * chromium/public/linux/WebFontRenderStyle.h: Removed.
      * chromium/public/linux/WebSandboxSupport.h: Removed.
      * chromium/public/mac: Removed.
      * chromium/public/mac/WebSandboxSupport.h: Removed.
      * chromium/public/mac/WebThemeEngine.h: Removed.
      * chromium/public/win: Removed.
      * chromium/public/win/WebSandboxSupport.h: Removed.
      * chromium/public/win/WebThemeEngine.h: Removed.
      * chromium/src: Removed.
      * chromium/src/Platform.cpp: Removed.
      * chromium/src/WebActiveGestureAnimation.cpp: Removed.
      * chromium/src/WebActiveGestureAnimation.h: Removed.
      * chromium/src/WebCString.cpp: Removed.
      * chromium/src/WebFilterOperation.cpp: Removed.
      * chromium/src/WebFilterOperations.cpp: Removed.
      * chromium/src/WebFloatQuad.cpp: Removed.
      * chromium/src/WebPrerenderingSupport.cpp: Removed.
      * chromium/src/WebString.cpp: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147712 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      caabc53f
  12. 28 Mar, 2013 1 commit
    • zandobersek@gmail.com's avatar
      [GTK] Build GTK-specific, non-layer-violating source code into... · f12ef742
      zandobersek@gmail.com authored
      [GTK] Build GTK-specific, non-layer-violating source code into WebCore-independent libPlatformGtk.la
      https://bugs.webkit.org/show_bug.cgi?id=112546
      
      Reviewed by Martin Robinson.
      
      .: 
      
      * GNUmakefile.am: Define the new platform_webcore_cppflags.
      
      Source/Platform: 
      
      * GNUmakefile.am: Only specify the very minimal set of inclusion directories, containing the Source/WebCore/platform
      directory and its subdirectories. This will allow only for the WebCore-independent GTK-specific sources to be built into
      libPlatformGtk.la. Also include the GTK, libsecret and libsoup dependencies' cflags amongst the libPlatformGtk's
      CPPFLAGS.
      * GNUmakefile.list.am: Removed. The build targets are now listed (and will be listed until the migration) in the
      GNUmakefile.list.am under Source/WebCore, following the common sense of specifying the build target in the
      GNUmakefile.list.am placed in the same framework directory in which the source file is located.
      
      Source/WebCore: 
      
      No new tests - no new functionality.
      
      * GNUmakefile.am: Passing the DATA_DIR value through the cppflags is not required anymore as the affected source is now
      built into libPlatformGtk.la.
      * GNUmakefile.list.am: Build the GTK-specific source files that are already independent of WebCore into the
      libPlatformGtk.la by assigning the build targets listing to the platformgtk_sources variable.
      * platform/gtk/GtkVersioning.c: Renamed from Source/Platform/gtk/GtkVersioning.c.
      * platform/gtk/GtkVersioning.h: Renamed from Source/Platform/gtk/GtkVersioning.h.
      
      Source/WebKit/gtk: 
      
      * GNUmakefile.am: The GtkVersioning.c file has moved back under Source/WebCore/platform.
      
      Source/WebKit2: 
      
      * GNUmakefile.am: Reference the platform_webcore_cppflags and GTK, libsecret and libsoup dependencies' cflags amongst the
      libPlatformGtk2's CPPFLAGS.
      * Scripts/generate-forwarding-headers.pl: Remove the Platform framework from the list of the frameworks to be searched
      for forwarding headers, it's at the moment not necessary to be included.
      * Shared/gtk/ArgumentCodersGtk.cpp: Adjust the forwarding header for GtkVersioning.h that's been moved back under the
      WebCore framework.
      * Shared/gtk/WebEventFactory.cpp: Ditto.
      * UIProcess/API/gtk/WebKitWebViewBase.cpp: Ditto.
      * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp: Ditto.
      
      Tools: 
      
      * GNUmakefile.am: Reference the platformgtk_cppflags amongst the libWebCoreInternals' CPPFLAGS. GtkVersioning.c file has
      moved back to Source/WebCore/platform. Fix an indentation issue as well.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147137 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f12ef742
  13. 13 Mar, 2013 1 commit
  14. 12 Mar, 2013 1 commit
    • zandobersek@gmail.com's avatar
      [GTK] Set up the libPlatformGtk.la library · 6e0b8076
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=111738
      
      Reviewed by Martin Robinson.
      
      .: 
      
      * GNUmakefile.am: Define the two variables that will hold sources list and cppflags as required for the new library.
      Include the new GNUmakefile.am that's now available under Source/Platform.
      
      Source/Platform: 
      
      * GNUmakefile.am: Added. Set up the rules for building the new libPlatformGtk.la. For now it will be built in
      the same way as libWebCoreGtk.la and in parallel with it while the sources are moved from Source/WebCore/platform
      to Source/Platform/gtk and each migrated source file moves to be built in libPlatformGtk.la instead of libWebCoreGtk.la.
      * GNUmakefile.list.am: Added. Lists the build targets for the libPlatformGtk.la.
      * gtk/GtkVersioning.c: Renamed from Source/WebCore/platform/gtk/GtkVersioning.c. This file is independent of WebCore and can be moved
      and changed to be built into libPlatformGtk.la right away.
      * gtk/GtkVersioning.h: Renamed from Source/WebCore/platform/gtk/GtkVersioning.h. Ditto.
      
      Source/WebCore: 
      
      No new tests - no new functionality.
      
      * GNUmakefile.am: Reference platformgtk_cppflags, platformgtk_sources variables along with webcoregtk_cppflags, webcoregtk_sources variables.
      * GNUmakefile.list.am: Removing GtkVersioning.c and GtkVersioning.h from the sources list, these files have been moved under Source/Platform.
      * bindings/gobject/GNUmakefile.am: Ditto on the platformgtk_* variables.
      
      Source/WebKit/gtk: 
      
      * GNUmakefile.am: Reference platformgtk_cppflags variable, libPlatformGtk.la along with webcoregtk_cppflags variable, libWebCoreGtk.la.
      Adjust the path to GtkVersioning.c, the file has moved under Source/Platform.
      
      Source/WebKit2: 
      
      * GNUmakefile.am: Reference platformgtk_cppflags variable, libPlatformGtk.la along with webcoregtk_cppflags variable, libWebCoreGtk.la.
      Adjust the path to GtkVersioning.c, the file has moved under Source/Platform.
      
      Tools: 
      
      * GNUmakefile.am: Reference platformgtk_cppflags variable along with webcoregtk_cppflags variable.
      Adjust the path to GtkVersioning.c, the file has moved under Source/Platform.
      * TestWebKitAPI/GNUmakefile.am: Reference platformgtk_cppflags variable along with webcoregtk_cppflags variable.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145552 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6e0b8076