1. 08 Nov, 2013 8 commits
  2. 07 Nov, 2013 9 commits
    • andersca@apple.com's avatar
      Encode and decode NSURLResponse objects using NSCoder · 1bfa63cb
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124028
      
      Reviewed by Andreas Kling.
      
      * Shared/mac/WebCoreArgumentCodersMac.mm:
      (CoreIPC::::encodePlatformData):
      (CoreIPC::::decodePlatformData):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158895 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1bfa63cb
    • andersca@apple.com's avatar
      Move m_destinationID to MessageDecoder · e9f58c17
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124026
      
      Reviewed by Andreas Kling.
      
      * Platform/CoreIPC/ArgumentDecoder.h:
      * Platform/CoreIPC/MessageDecoder.h:
      (CoreIPC::MessageDecoder::destinationID):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158892 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e9f58c17
    • andersca@apple.com's avatar
      Get rid of the out-of-line memory attachment type · ade03559
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124023
      
      Reviewed by Andreas Kling.
      
      We're only using out-of-line memory for when the message body is too big, so
      isolate that code in Connection and get rid of the out of line attachment type.
      
      * Platform/CoreIPC/Attachment.cpp:
      (CoreIPC::Attachment::Attachment):
      * Platform/CoreIPC/Attachment.h:
      (CoreIPC::Attachment::port):
      (CoreIPC::Attachment::disposition):
      * Platform/CoreIPC/mac/ConnectionMac.cpp:
      (CoreIPC::Connection::sendOutgoingMessage):
      (CoreIPC::createMessageDecoder):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158890 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ade03559
    • simon.fraser@apple.com's avatar
      Lots of layers get solid color but transparent contents layers now · 9f2ac722
      simon.fraser@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=123537
      
      Source/WebCore:
      
      Reviewed by Tim Horton.
      
      We call rendererBackgroundColor() to determine the layer's background color,
      but on most elements this returns the transparent color (a valid color).
      This caused us to allocate a contentsLayer, and use the transparent color as its
      backgroundColor, which was wasteful.
      
      Fix by only making a background-color layer if the color is not transparent (zero alpha).
      
      Also avoid making a new contents layer on every color change, and make sure that
      we don't do implicit animations for backgroundColor, and some other properties
      that were omitted by mistake.
      
      Layer tree dumps don't dump content layers, so no way to test easily.
      
      * platform/graphics/ca/GraphicsLayerCA.cpp:
      (WebCore::GraphicsLayerCA::setContentsToSolidColor):
      * platform/graphics/ca/mac/PlatformCALayerMac.mm:
      (nullActionsDictionary):
      
      Source/WebKit2:
      
      Reviewed by Tim Horton.
      
      Add some properties to the list of things not to implicitly animate.
      
      * Shared/mac/RemoteLayerTreePropertyApplier.mm:
      (WebKit::RemoteLayerTreePropertyApplier::disableActionsForLayer):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158889 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9f2ac722
    • andersca@apple.com's avatar
      Remove more dead code · f4adb0d1
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124016
      
      Reviewed by Beth Dakin.
      
      We're always layer backed now so we never scroll using the PageClient.
      
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::canScrollView):
      (WebKit::PageClientImpl::scrollView):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158880 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f4adb0d1
    • andersca@apple.com's avatar
      Don't repaint the view when the web process crashes · 868061de
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124013
      
      Reviewed by Dan Bernstein.
      
      It's up to each individual port to decide whether the view should be repainted when the web process crashes.
      
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::setViewNeedsDisplay):
      (WebKit::PageClientImpl::displayView):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::resetStateAfterProcessExited):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158872 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      868061de
    • commit-queue@webkit.org's avatar
      Report error on unknown template class usage. · ab44c0d1
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=123096
      
      Patch by Tamas Gergely <gertom@inf.u-szeged.hu> on 2013-11-07
      Reviewed by Darin Adler.
      
      Report error when template class is not found in the dictionary.
      
      * Scripts/webkit2/messages.py:
      (class_template_headers):
      (class_template_headers.template):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158863 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ab44c0d1
    • 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
    • commit-queue@webkit.org's avatar
      [Gtk] Remove old takeFocus() method from PageClientImpl and mark methods as OVERRIDE · aa49c186
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=123919
      
      Patch by Brendan Long <b.long@cablelabs.com> on 2013-11-07
      Reviewed by Carlos Garcia Campos.
      
      * UIProcess/API/gtk/PageClientImpl.cpp: Remove takeFocus().
      * UIProcess/API/gtk/PageClientImpl.h: Remove takeFocus() and mark methods as OVERRIDE.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158827 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aa49c186
  3. 06 Nov, 2013 23 commits
    • mitz@apple.com's avatar
      Moved UIProcess/Cocoa to UIProcess/API/Cocoa. · 15dfcc55
      mitz@apple.com authored
      Rubber-stamped by Anders Carlsson.
      
      * UIProcess/API/Cocoa: Copied from Source/WebKit2/UIProcess/Cocoa.
      * UIProcess/Cocoa: Removed.
      * UIProcess/Cocoa/WKBackForwardList.h: Removed.
      * UIProcess/Cocoa/WKBackForwardList.mm: Removed.
      * UIProcess/Cocoa/WKBackForwardListInternal.h: Removed.
      * UIProcess/Cocoa/WKBackForwardListItem.h: Removed.
      * UIProcess/Cocoa/WKBackForwardListItem.mm: Removed.
      * UIProcess/Cocoa/WKBackForwardListItemInternal.h: Removed.
      * UIProcess/Cocoa/WKBrowsingContextHistoryDelegate.h: Removed.
      * UIProcess/Cocoa/WKNavigationData.h: Removed.
      * UIProcess/Cocoa/WKNavigationData.mm: Removed.
      * UIProcess/Cocoa/WKNavigationDataInternal.h: Removed.
      * WebKit2.xcodeproj/project.pbxproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158819 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      15dfcc55
    • commit-queue@webkit.org's avatar
      [Gtk][EFL] Fix build after r158759 · 899cf3ec
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=123910
      
      Patch by Brendan Long <b.long@cablelabs.com> on 2013-11-06
      Reviewed by Gyuyoung Kim.
      
      * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp:
      (WebKit::CoordinatedDrawingAreaProxy::incorporateUpdate): Remove call to flashBackingStoreUpdates().
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158817 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      899cf3ec
    • timothy_horton@apple.com's avatar
      Remote Layer Tree: RemoteLayerTreeDrawingArea doesn't make layers for fixedpos elements · 5426294d
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=123943
      
      Reviewed by Simon Fraser.
      
      * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
      * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
      (WebKit::RemoteLayerTreeDrawingArea::updatePreferences):
      Make fixed position elements create compositing layers and stacking contexts
      in the RemoteLayerTreeDrawingArea just like they do in TiledCoreAnimationDrawingArea.
      
      * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
      (WebKit::TiledCoreAnimationDrawingArea::updatePreferences):
      Fix the comment, since we have long since achieved this goal.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158808 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5426294d
    • andersca@apple.com's avatar
      Implement enough functionality so that NSURLRequest objects can be decoded · b4493ea2
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=123942
      
      Reviewed by Andreas Kling.
      
      * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
      (-[WKRemoteObjectEncoder requiresSecureCoding]):
      Add new method. Return YES.
      
      (-[WKRemoteObjectDecoder decodeValueOfObjCType:at:]):
      Add new method. This currently only handles 'i', but we'll add more variants as needed.
      
      (-[WKRemoteObjectDecoder decodeBoolForKey:]):
      Get a WebBoolean from the dictionary and return its value.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158806 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b4493ea2
    • andersca@apple.com's avatar
      Encoded object stream should be sequential · 98f365b8
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=123939
      
      Reviewed by Andreas Kling.
      
      Reserve space in the object stream for objects that are to be encoded, otherwise
      the object stream will not be sequential.
      
      * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
      (encodeToObjectStream):
      * Shared/ImmutableArray.h:
      (WebKit::ImmutableArray::entries):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158805 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      98f365b8
    • andersca@apple.com's avatar
      Allow property list classes to exist in containers · cbedbf67
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=123938
      
      Reviewed by Andreas Kling.
      
      * Shared/API/Cocoa/WKRemoteObjectInterface.mm:
      (isContainerClass):
      Return whether a given class is a container class.
      
      (propertyListClasses):
      Return the set of property list classes.
      
      (allowedArgumentClassesForMethod):
      Allow all property list classes for container type arguments.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158804 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cbedbf67
    • dbates@webkit.org's avatar
      [iOS] Upstream Letterpress effect · 5c168d75
      dbates@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=123932
      
      Reviewed by Sam Weinig.
      
      Source/JavaScriptCore:
      
      Add feature define ENABLE_LETTERPRESS disabled by default. We only enable
      letterpress on iOS.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      Test: platform/iphone-simulator/iphone/getComputedStyle-text-decoration-letterpress.html
      
      * Configurations/FeatureDefines.xcconfig: Add feature define ENABLE_LETTERPRESS disabled
      by default. We only enable letterpress on iOS.
      * css/CSSComputedStyleDeclaration.cpp:
      (WebCore::renderTextDecorationFlagsToCSSValue): Add support for CSS value -webkit-letterpress.
      * css/CSSParser.cpp:
      (WebCore::CSSParser::parseTextDecoration): Ditto.
      * css/CSSPrimitiveValueMappings.h:
      (WebCore::CSSPrimitiveValue::operator TextDecoration): Ditto.
      * css/CSSValueKeywords.in: Added CSS value -webkit-letterpress.
      * platform/graphics/GraphicsContext.h:
      * platform/graphics/mac/FontMac.mm:
      (WebCore::fillVectorWithHorizontalGlyphPositions): Added.
      (WebCore::shouldUseLetterpressEffect): Added.
      (WebCore::showLetterpressedGlyphsWithAdvances): Added.
      (WebCore::showGlyphsWithAdvances): Modified to call showLetterpressedGlyphsWithAdvances()
      to show a letterpressed glyph. I also included additional iOS-specific changes.
      (WebCore::Font::drawGlyphs):
      * rendering/TextPaintStyle.cpp:
      (WebCore::TextPaintStyle::TextPaintStyle):
      (WebCore::computeTextPaintStyle): Modified to compute letterpress effect style.
      (WebCore::updateGraphicsContext): Modified to apply/unapply letterpress effect drawing mode.
      * rendering/TextPaintStyle.h:
      * rendering/style/RenderStyleConstants.h:
      
      Source/WebKit/mac:
      
      Add feature define ENABLE_LETTERPRESS disabled by default. We only enable
      letterpress on iOS.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      Add feature define ENABLE_LETTERPRESS disabled by default. We only enable
      letterpress on iOS.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WTF:
      
      Add feature define ENABLE_LETTERPRESS disabled by default. We only enable
      letterpress on iOS.
      
      * wtf/FeatureDefines.h:
      
      LayoutTests:
      
      * platform/iphone-simulator/iphone/getComputedStyle-text-decoration-letterpress-expected.txt: Added.
      * platform/iphone-simulator/iphone/getComputedStyle-text-decoration-letterpress.html: Added.
      * platform/iphone-simulator/iphone/resources/getComputedStyle-text-decoration-letterpress.js: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158803 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5c168d75
    • mitz@apple.com's avatar
      Fixed multiple API test failures after r158764. · d13b3ae3
      mitz@apple.com authored
      Reviewed by Sam Weinig.
      
      * UIProcess/API/mac/WKBrowsingContextController.mm:
      (setUpPagePolicyClient): If the delegate isn’t set or doesn’t respond to a selector, respond
      with WKFramePolicyListenerUse().
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158799 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d13b3ae3
    • andersca@apple.com's avatar
      Move allowed classes handling to decodeObject · c1464eb4
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=123930
      
      Reviewed by Andreas Kling.
      
      * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
      (decodeObjectFromObjectStream):
      Pass allowed classes through to decodeObject.
      
      (decodeObject):
      Update to take an NSSet of allowed classes. If the set is nil, use the current set.
      
      (-[WKRemoteObjectDecoder decodeObjectOfClasses:forKey:]):
      Pass classes to decodeObject.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158797 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c1464eb4
    • commit-queue@webkit.org's avatar
      Fix EFL build after r158753 · c21bb817
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=123923
      
      r158753 renamed WKNavigationData.h as WKNavigationDataRef.h, so
      update it in UIProcess/API/efl/ewk_navigation_data_private.h.
      
      Patch by Sergio Correia <sergio.correia@openbossa.org> on 2013-11-06
      Reviewed by Csaba Osztrogonác.
      
      * UIProcess/API/efl/ewk_navigation_data_private.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158792 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c21bb817
    • andersca@apple.com's avatar
      Implement more decoding methods · b48f87da
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=123922
      
      Reviewed by Dan Bernstein.
      
      * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
      (-[WKRemoteObjectDecoder decodeObjectForKey:]):
      Call decodeObjectOfClasses:forKey: passing nil as the classes set.
      
      (-[WKRemoteObjectDecoder decodeInt64ForKey:]):
      Try to get a WebUInt64 and return its value.
      
      (-[WKRemoteObjectDecoder decodeDoubleForKey:]):
      Try to get a WebDouble and return its value.
      
      (-[WKRemoteObjectDecoder decodeBytesForKey:returnedLength:]):
      Move this method next to the other decoding methods.
      
      (-[WKRemoteObjectDecoder requiresSecureCoding]):
      Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158784 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b48f87da
    • commit-queue@webkit.org's avatar
      [Gtk][EFL] Fix build after r158759 · 521c7d2d
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=123910
      
      Patch by Brendan Long <b.long@cablelabs.com> on 2013-11-06
      Reviewed by Gustavo Noronha Silva.
      
      * UIProcess/API/gtk/PageClientImpl.cpp: Remove flashBackingStoreUpdates().
      * UIProcess/API/gtk/PageClientImpl.h: Same.
      * UIProcess/CoordinatedGraphics/WebView.cpp: Same.
      * UIProcess/CoordinatedGraphics/WebView.h: Same.
      * UIProcess/DrawingAreaProxyImpl.cpp:
      (WebKit::DrawingAreaProxyImpl::incorporateUpdate): Don't call flashBackingStoreUpdates().
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158782 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      521c7d2d
    • jer.noble@apple.com's avatar
      Unreviewed Mac build fix; include ResourceResponse. · 81d3016d
      jer.noble@apple.com authored
      * Shared/WebNavigationDataStore.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158781 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      81d3016d
    • andersca@apple.com's avatar
      Decode invocation arguments · 40eb4a94
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=123917
      
      Reviewed by Sam Weinig.
      
      * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
      (-[WKRemoteObjectDecoder initWithInterface:rootObjectDictionary:WebKit::]):
      Initialize the object stream.
      
      (decodeObjectFromObjectStream):
      Check that we're not reading past the end of the stream, then decode the object.
      
      (decodeInvocationArguments):
      Decode arguments from the object stream.
      
      (decodeInvocation):
      Call decodeInvocationArguments and set up the selector argument.
      
      * Shared/ImmutableArray.h:
      (WebKit::ImmutableArray::at):
      (WebKit::ImmutableArray::size):
      (WebKit::ImmutableArray::entries):
      Constify.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158780 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      40eb4a94
    • mitz@apple.com's avatar
      [Cocoa] Add -[WKNavigationData response] · 634f4981
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=123918
      
      Reviewed by Sam Weinig.
      
      * Shared/WebNavigationDataStore.h: Added a ResourceResponse data member.
      (WebKit::WebNavigationDataStore::encode): Encode the response.
      (WebKit::WebNavigationDataStore::decode): Decode the response.
      * UIProcess/Cocoa/WKNavigationData.h: Declared new property.
      * UIProcess/Cocoa/WKNavigationData.mm:
      (-[WKNavigationData response]): Added.
      * UIProcess/WebNavigationData.h:
      (WebKit::WebNavigationData::response): Added.
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::updateGlobalHistory): Set the response in the data store.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158779 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      634f4981
    • weinig@apple.com's avatar
      Fix the 32-bit build. · f9dc0df6
      weinig@apple.com authored
      * UIProcess/API/mac/WKBrowsingContextController.h:
      * UIProcess/API/mac/WKBrowsingContextController.mm:
      (-[WKBrowsingContextController dealloc]):
      (-[WKBrowsingContextController _initWithPageRef:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158776 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f9dc0df6
    • mitz@apple.com's avatar
      [Cocoa] Add -[WKBrowsingContextController unreachableURL] · 3fd6c869
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=123909
      
      Reviewed by Anders Carlsson.
      
      * UIProcess/API/mac/WKBrowsingContextController.h: Declared unreachableURL property.
      * UIProcess/API/mac/WKBrowsingContextController.mm:
      (-[WKBrowsingContextController unreachableURL]): Added.
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::unreachableURL): Added.
      * UIProcess/WebPageProxy.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158775 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3fd6c869
    • andersca@apple.com's avatar
      Encode parameters as objects · f8664e2f
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=123912
      
      Reviewed by Beth Dakin.
      
      We want to ensure that the objects have the right types when decoded, so just encode them as objects.
      
      * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
      (encodeInvocation):
      (-[WKRemoteObjectEncoder encodeValueOfObjCType:at:]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158772 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f8664e2f
    • weinig@apple.com's avatar
      Add WKBrowsingContextPolicyDelegate · 9aed29d1
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=123904
      
      Reviewed by Anders Carlsson.
      
      * UIProcess/API/mac/WKBrowsingContextController.h:
      * UIProcess/API/mac/WKBrowsingContextController.mm:
      Implement a WKPagePolicyClient in terms of the new WKBrowsingContextPolicyDelegate protocol.
              
      * UIProcess/API/mac/WKBrowsingContextPolicyDelegate.h: 
      Added.
      
      * UIProcess/API/mac/WebKit2.h:
      Add new #include of WKBrowsingContextPolicyDelegate.h
      
      * WebKit2.xcodeproj/project.pbxproj:
      Add new file.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9aed29d1
    • andersca@apple.com's avatar
      WKRemoteObjectInterface should keep track of allowed decodable classes · d50b65d5
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=123903
      
      Reviewed by Sam Weinig.
      
      * Shared/API/Cocoa/WKRemoteObjectInterface.mm:
      (allowedArgumentClassesForMethod):
      Helper function that returns a vector of sets of allowed classes for each method argument.
      
      (initializeAllowedArgumentClasses):
      Iterate over the methods in the protocol, get the extended method type encoding and create an
      NSMethodSignature from it. Finally, pass the signature to allowedArgumentClassesForMethod.
      
      (initializeAllowedArgumentClasses):
      Call the other initializeAllowedArgumentClasses twice, once for required methods,
      and once for optional methods.
      
      (-[WKRemoteObjectInterface initWithProtocol:identifier:]):
      Call initializeAllowedArgumentClasses.
      
      (-[WKRemoteObjectInterface _allowedArgumentClassesForSelector:]):
      Add new getter.
      
      * Shared/API/Cocoa/WKRemoteObjectInterfaceInternal.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158763 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d50b65d5
    • andersca@apple.com's avatar
      Remove dead code · 96343556
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=123902
      
      Reviewed by Tim Horton.
      
      Remove the PageClient::containingWindowGraphicsContext() as well as the
      WKPageSetDebugPaintFlags and WKPageGetDebugPaintFlags API functions.
      
      * UIProcess/API/C/WKPage.cpp:
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      * UIProcess/PageClient.h:
      * UIProcess/WebPageProxy.cpp:
      * UIProcess/WebPageProxy.h:
      * UIProcess/mac/WebPageProxyMac.mm:
      (WebKit::WebPageProxy::searchTheWeb):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158759 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      96343556
    • mitz@apple.com's avatar
      Promoted WKBrowsingContextHistoryDelegate.h to private. · 5b4668bf
      mitz@apple.com authored
      Rubber-stamped by Sam Weinig.
      
      * WebKit2.xcodeproj/project.pbxproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158756 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5b4668bf
    • mitz@apple.com's avatar
      [Cocoa] History delegate · 2cfc778b
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=123837
      
      Reviewed by Sam Weinig.
      
      * Shared/Cocoa/APIObject.mm:
      (WebKit::APIObject::newObject): Allocate a WKNavigationData if the object is a
      WebNavigationData.
      
      * Shared/Cocoa/WKNSString.h:
      (WebKit::wrapper): Added. Returns a WebString’s wrapper as an NSString.
      
      * Shared/Cocoa/WKNSURL.h:
      (WebKit::wrapper): Added. Returns a WebURL’s wrapper as an NSURL.
      
      * UIProcess/API/C/WKNavigationData.cpp: Renamed.
      * UIProcess/API/C/WKNavigationData.h: Renamed.
      * UIProcess/API/C/WKNavigationDataRef.cpp: Copied from Source/WebKit2/UIProcess/API/C/WKNavigationData.cpp.
      * UIProcess/API/C/WKNavigationDataRef.h: Copied from Source/WebKit2/UIProcess/API/C/WKNavigationData.h.
      
      * UIProcess/API/mac/WKBrowsingContextController.h: Declared historyDelegate property.
      
      * UIProcess/API/mac/WKProcessGroup.mm:
      (didNavigateWithNavigationData): Added history client callback that calls the browsing
      context’s history delegate.
      (didPerformClientRedirect): Ditto.
      (didPerformServerRedirect): Ditto.
      (didUpdateHistoryTitle): Ditto.
      (setUpHistoryClient): Added.
      (-[WKProcessGroup initWithInjectedBundleURL:]): Added call to setUpHistoryClient.
      (-[WKProcessGroup dealloc]): Clear the history client.
      
      * UIProcess/Cocoa/WKBrowsingContextHistoryDelegate.h: Added.
      
      * UIProcess/Cocoa/WKNavigationData.h: Added.
      * UIProcess/Cocoa/WKNavigationData.mm: Added.
      (-[WKNavigationData dealloc]): Calls the WebNavigationData destructor.
      (-[WKNavigationData title]): Added.
      (-[WKNavigationData originalRequest]): Added.
      (-[WKNavigationData destinationURL]): Added.
      (-[WKNavigationData _apiObject]): Returns the wrapped WebNavigationData.
      * UIProcess/Cocoa/WKNavigationDataInternal.h: Added.
      (WebKit::wrapper): Added. Returns a WebNavigationData’s wrapper as a WKNavigationData.
      * WebKit2.xcodeproj/project.pbxproj: Updated for renames and additions.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158753 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2cfc778b