1. 22 Jan, 2014 40 commits
    • timothy@apple.com's avatar
      Improve collapsing of TimelineDataGridNode graphs up to ancestors. · aaddc8bd
      timothy@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127440
      
      Reviewed by Joseph Pecoraro.
      
      * UserInterface/TimelineDataGridNode.js:
      (WebInspector.TimelineDataGridNode.prototype.collapse):
      (WebInspector.TimelineDataGridNode.prototype.createCellContent):
      (WebInspector.TimelineDataGridNode.prototype.refresh):
      (WebInspector.TimelineDataGridNode.prototype.needsGraphRefresh):
      Notify the next visible ancestor it needs to refresh. Use needsGraphRefresh so ancestors
      are notified instead of directly calling refreshGraph in some places.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162564 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aaddc8bd
    • zalan@apple.com's avatar
      Unreviewed Apple Windows port gardering after r162553. · 72cce00c
      zalan@apple.com authored
      * platform/win/fast/repaint/reflection-redraw-expected.txt: Added.
      * platform/win/fast/table/dynamic-caption-add-remove-before-child-expected.txt: Added.
      * platform/win/fast/table/multiple-captions-display-expected.txt: Added.
      * platform/win/tables/mozilla/marvin/body_col-a-expected.txt: Added.
      * platform/win/tables/mozilla/marvin/x_th_valign_baseline-expected.txt: Added.
      * platform/win/tables/mozilla/other/body_col-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162563 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      72cce00c
    • andersca@apple.com's avatar
      WKProcessClass should create a WebContext · 26c7ef46
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127449
      <rdar://problem/15885582>
      
      Reviewed by Dan Bernstein.
      
      * Shared/Cocoa/APIObject.mm:
      (API::Object::newObject):
      * UIProcess/API/Cocoa/WKBrowsingContextController.h:
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
      * UIProcess/API/Cocoa/WKProcessClass.mm:
      (-[WKProcessClass initWithConfiguration:]):
      (-[WKProcessClass dealloc]):
      (-[WKProcessClass API::]):
      * UIProcess/API/Cocoa/WKProcessClassInternal.h: Renamed from Source/WebKit2/UIProcess/API/Cocoa/WKProcessGroupInternal.h.
      (WebKit::wrapper):
      * UIProcess/API/Cocoa/WKProcessGroup.mm:
      (-[WKProcessGroup initWithInjectedBundleURL:]):
      * UIProcess/API/ios/WKContentView.mm:
      (-[WKContentView _decidePolicyForGeolocationRequestFromOrigin:frame:request:]):
      * WebKit2.xcodeproj/project.pbxproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162562 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      26c7ef46
    • timothy@apple.com's avatar
      Don't include a hidden Timeline selection in the navigation path components. · 0a4afe21
      timothy@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127443
      
      Reviewed by Joseph Pecoraro.
      
      * UserInterface/GeneralTreeElementPathComponent.js:
      (WebInspector.GeneralTreeElementPathComponent.prototype.get previousSibling):
      (WebInspector.GeneralTreeElementPathComponent.prototype.get nextSibling):
      Skip hidden siblings.
      
      * UserInterface/OverviewTimelineView.js:
      (WebInspector.OverviewTimelineView.prototype.updateLayout):
      (WebInspector.OverviewTimelineView.prototype.get selectionPathComponents):
      Don't include hidden selection and dispatch SelectionPathComponentsDidChange event if hidden changes.
      
      * UserInterface/TimelineContentView.js:
      (WebInspector.TimelineContentView.prototype._timeRangeSelectionChanged):
      Dispatch SelectionPathComponentsDidChange event if hidden changes on the selected tree element.
      
      * UserInterface/TimelineView.js:
      (WebInspector.TimelineView.prototype.get selectionPathComponents):
      Don't include hidden selection.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162561 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0a4afe21
    • timothy@apple.com's avatar
      Support collapsing call site records into the resource timeline. · a8da91f0
      timothy@apple.com authored
      Also fix some filtering and graph issues.
      
      https://bugs.webkit.org/show_bug.cgi?id=127440
      
      Reviewed by Joseph Pecoraro.
      
      * UserInterface/NavigationSidebarPanel.js:
      (WebInspector.NavigationSidebarPanel.prototype.updateFilter):
      (WebInspector.NavigationSidebarPanel.prototype.applyFiltersToTreeElement.matchTextFilter):
      (WebInspector.NavigationSidebarPanel.prototype.applyFiltersToTreeElement.makeVisible):
      (WebInspector.NavigationSidebarPanel.prototype.applyFiltersToTreeElement):
      (WebInspector.NavigationSidebarPanel.prototype._updateFilter):
      Tweak how filtering happens so custom filters never expand to reveal and auto expanded
      tree elements will auto-collapse again later even with custom filters.
      
      * UserInterface/OverviewTimelineView.css:
      (.timeline-view.overview > .data-grid tr.parent:not(.expanded) td.graph-column .timeline-record-bar:not(.timeline-record-type-network) > .segment):
      (.timeline-view.overview > .data-grid tr.parent:not(.expanded).selected td.graph-column .timeline-record-bar:not(.timeline-record-type-network) > .segment):
      (.timeline-view.overview > .data-grid:focus tr.parent:not(.expanded).selected td.graph-column .timeline-record-bar:not(.timeline-record-type-network) > .segment):
      Add a shadow to provide some negative space between juxtaposed records. Only needed when not expanded and not netwrok records.
      
      * UserInterface/OverviewTimelineView.js:
      (WebInspector.OverviewTimelineView.prototype.updateLayout):
      (WebInspector.OverviewTimelineView.prototype._addResourceToTreeIfNeeded):
      Update the filter when current time changes and only auto expand the main resource.
      
      * UserInterface/ResourceTimelineDataGridNode.js:
      (WebInspector.ResourceTimelineDataGridNode):
      (WebInspector.ResourceTimelineDataGridNode.prototype._timelineRecordUpdated):
      Don't schedule a refresh of the graph if the record isn't visible.
      
      * UserInterface/SourceCodeTimelineTimelineDataGridNode.js:
      (WebInspector.SourceCodeTimelineTimelineDataGridNode):
      (WebInspector.SourceCodeTimelineTimelineDataGridNode.prototype._timelineRecordAdded):
      Don't schedule a refresh of the graph if the record isn't visible.
      
      * UserInterface/TimelineContentView.js:
      (WebInspector.TimelineContentView.prototype._timeRangeSelectionChanged):
      Remove the boolean for updateFilter.
      
      * UserInterface/TimelineDataGrid.js:
      (WebInspector.TimelineDataGrid.prototype._refreshDirtyDataGridNodes):
      (WebInspector.TimelineDataGrid.prototype._sort):
      Keep the hidden state in-sync between node and element.
      
      * UserInterface/TimelineDataGridNode.js:
      (WebInspector.TimelineDataGridNode.prototype.collapse):
      (WebInspector.TimelineDataGridNode.prototype.expand):
      (WebInspector.TimelineDataGridNode.prototype.appendChild):
      (WebInspector.TimelineDataGridNode.prototype.insertChild):
      (WebInspector.TimelineDataGridNode.prototype.removeChild):
      (WebInspector.TimelineDataGridNode.prototype.removeChildren):
      (WebInspector.TimelineDataGridNode.prototype.removeChildrenRecursive):
      (WebInspector.TimelineDataGridNode.prototype.refreshGraph.createBarsForRecords):
      (WebInspector.TimelineDataGridNode.prototype.refreshGraph.else.collectRecordsByType.get if):
      (WebInspector.TimelineDataGridNode.prototype.needsGraphRefresh):
      (WebInspector.TimelineDataGridNode.prototype.isRecordVisible):
      Support drawing the children records on the parent graph.
      
      * UserInterface/TimelineRecordBar.css:
      (.timeline-record-bar.unfinished > .segment):
      (:focus .selected .timeline-record-bar > .segment):
      (:focus .selected .timeline-record-bar > .segment.inactive):
      (:focus .selected .timeline-record-bar.has-inactive-segment > .segment:not(.inactive)):
      Tweaked styles to look bettwen when selected.
      
      * UserInterface/TimelineRecordBar.js:
      (WebInspector.TimelineRecordBar.recordsCannotBeCombined):
      (WebInspector.TimelineRecordBar.prototype.set records):
      (WebInspector.TimelineRecordBar.prototype.refresh):
      Drive-by fixes for some bug with bars being reused.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a8da91f0
    • zalan@apple.com's avatar
      [CSS Shapes] shape-inside rectangle layout can fail · 588b6e43
      zalan@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124784
      
      Reviewed by Darin Adler.
      
      Early subpixel rounding/flooring/ceiling can have unwanted
      side effect on the final pixel value. Delay pixel
      conversions as much as possible.
      
      Existing test is changed to reflect subpixel functionality.
      
      Source/WebCore:
      
      * rendering/shapes/RectangleShape.cpp:
      (WebCore::RectangleShape::firstIncludedIntervalLogicalTop):
      
      LayoutTests:
      
      * fast/shapes/shape-inside/shape-inside-subpixel-rectangle-top-expected.html:
      * platform/mac/TestExpectations:
      * platform/win/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162559 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      588b6e43
    • timothy_horton@apple.com's avatar
      Crashes in DrawingAreaProxy::setExposedRect (null DrawingAreaProxy) · 7e1519a7
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127445
      
      Reviewed by Anders Carlsson.
      
      * UIProcess/API/ios/WKContentView.mm:
      (-[WKContentView _updateViewExposedRect]):
      * UIProcess/API/mac/WKView.mm:
      (-[WKView _updateViewExposedRect]):
      Null-check.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7e1519a7
    • jochen@chromium.org's avatar
      Add protocolIsInHTTPFamily for strings and use it where appropriate · 7e94f53b
      jochen@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127336
      
      Reviewed by Alexey Proskuryakov.
      
      * html/HTMLAnchorElement.cpp:
      (WebCore::HTMLAnchorElement::parseAttribute):
      * page/ContentSecurityPolicy.cpp:
      (WebCore::CSPSource::schemeMatches):
      * page/SecurityPolicy.cpp:
      (WebCore::SecurityPolicy::generateReferrerHeader):
      * platform/URL.cpp:
      (WebCore::protocolIsInHTTPFamily):
      * platform/URL.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162555 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7e94f53b
    • andersca@apple.com's avatar
      Add WKWebView class · 747fe3bf
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127444
      <rdar://problem/15884418>
      
      Reviewed by Dan Bernstein.
      
      * UIProcess/API/Cocoa/WKWebView.h: Added.
      * UIProcess/API/Cocoa/WKWebView.mm: Added.
      (-[WKWebView initWithFrame:configuration:]):
      (-[WKWebView configuration]):
      * WebKit2.xcodeproj/project.pbxproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162554 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      747fe3bf
    • zalan@apple.com's avatar
      Subpixel Layout: SimpleLineLayout needs more position rounding to match InlineFlowBox layout. · cb83ac5c
      zalan@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127404
      
      Reviewed by Antti Koivisto.
      
      In order to produce a CSS pixel perfect layout, SimpleLineLayout needs to
      round line positions to CSS (integral) position similarly to InlineFlowBox.
      
      Source/WebCore:
      
      Existing tests cover it.
      
      * rendering/SimpleLineLayoutResolver.h:
      (WebCore::SimpleLineLayout::RunResolver::Run::rect):
      (WebCore::SimpleLineLayout::RunResolver::Run::baseline):
      
      LayoutTests:
      
      * platform/mac/css1/box_properties/padding-expected.txt:
      * platform/mac/css1/box_properties/padding_top-expected.txt:
      * platform/mac/css1/formatting_model/vertical_formatting-expected.txt:
      * platform/mac/css2.1/t080301-c411-vt-mrgn-00-b-expected.txt:
      * platform/mac/css2.1/t0804-c5510-padn-00-b-ag-expected.txt:
      * platform/mac/css2.1/t0905-c414-flt-wrap-00-e-expected.txt:
      * platform/mac/fast/css/empty-pseudo-class-expected.txt:
      * platform/mac/fast/css/fieldset-display-row-expected.txt:
      * platform/mac/fast/css/first-child-pseudo-class-expected.txt:
      * platform/mac/fast/css/last-child-pseudo-class-expected.txt:
      * platform/mac/fast/css/only-child-pseudo-class-expected.txt:
      * platform/mac/fast/repaint/reflection-redraw-expected.txt:
      * platform/mac/fast/shapes/shape-inside/shape-inside-subpixel-rectangle-top-expected.png: Removed.
      * platform/mac/fast/table/dynamic-caption-add-remove-before-child-expected.txt:
      * platform/mac/fast/table/multiple-captions-display-expected.txt:
      * platform/mac/tables/mozilla/marvin/body_col-expected.txt:
      * platform/mac/tables/mozilla/marvin/x_th_valign_baseline-expected.txt:
      * platform/mac/tables/mozilla/other/body_col-expected.txt:
      * platform/mac/tables/mozilla_expected_failures/bugs/bug10140-expected.txt:
      * platform/mac/tables/mozilla_expected_failures/bugs/bug10216-expected.txt:
      * platform/mac/tables/mozilla_expected_failures/core/captions3-expected.txt:
      * platform/mac/tables/mozilla_expected_failures/other/test4-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162553 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cb83ac5c
    • joepeck@webkit.org's avatar
      Unreviewed rollout of r162534, this caused inspector test failures. · ff08b7ad
      joepeck@webkit.org authored
      * bindings/js/PageScriptDebugServer.cpp:
      (WebCore::PageScriptDebugServer::addListener):
      (WebCore::PageScriptDebugServer::removeListener):
      (WebCore::PageScriptDebugServer::recompileAllJSFunctions):
      (WebCore::PageScriptDebugServer::didRemoveLastListener):
      * bindings/js/PageScriptDebugServer.h:
      * bindings/js/ScriptDebugServer.cpp:
      (WebCore::ScriptDebugServer::ScriptDebugServer):
      (WebCore::ScriptDebugServer::recompileAllJSFunctionsSoon):
      (WebCore::ScriptDebugServer::recompileAllJSFunctionsTimerFired):
      * bindings/js/ScriptDebugServer.h:
      * bindings/js/WorkerScriptDebugServer.cpp:
      (WebCore::WorkerScriptDebugServer::addListener):
      (WebCore::WorkerScriptDebugServer::recompileAllJSFunctions):
      (WebCore::WorkerScriptDebugServer::removeListener):
      * inspector/InspectorProfilerAgent.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162550 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ff08b7ad
    • andersca@apple.com's avatar
      Fix 32-bit build. · 11c799d2
      andersca@apple.com authored
      * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162549 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      11c799d2
    • timothy_horton@apple.com's avatar
      [wk2] Scroll pinning state is wrong until the first scroll event · b8eee002
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127437
      
      Reviewed by Simon Fraser.
      
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::didChangeScrollOffset):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::updateMainFrameScrollOffsetPinning):
      (WebKit::WebPage::didCommitLoad):
      * WebProcess/WebPage/WebPage.h:
      Rename WebPage::didChangeScrollOffsetForMainFrame to
      updateMainFrameScrollOffsetPinning, which better describes what it
      actually does. Call it when a load is committed, so that we have valid
      pinning state before the first scroll event comes in.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162548 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b8eee002
    • andersca@apple.com's avatar
      Add WKWebViewConfiguration class · 332743e3
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127436
      <rdar://problem/15882923>
      
      Reviewed by Tim Horton.
      
      * UIProcess/API/Cocoa/WKWebViewConfiguration.h: Added.
      * UIProcess/API/Cocoa/WKWebViewConfiguration.mm: Added.
      (-[WKWebViewConfiguration copyWithZone:]):
      * WebKit2.xcodeproj/project.pbxproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162547 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      332743e3
    • alice.liu@apple.com's avatar
      [WK2] add cocoa API for private browsing setting · a3ea4823
      alice.liu@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127391
      
      Reviewed by Sam Weinig.
      
      * UIProcess/API/Cocoa/WKBrowsingContextGroup.h:
      * UIProcess/API/Cocoa/WKBrowsingContextGroup.mm:
      (-[WKBrowsingContextGroup privateBrowsingEnabled]):
      (-[WKBrowsingContextGroup setPrivateBrowsingEnabled:]):
      Adding some API for the private Browsing setting. Reaches through
      to the WKPageGroup's preferences.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162546 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a3ea4823
    • mrobinson@webkit.org's avatar
      [GTK][CMake] build-webkit should try harder to avoid re-running cmake · 06f46f9a
      mrobinson@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127073
      
      Reviewed by Daniel Bates.
      
      * Scripts/build-webkit: Unify all the ports that call buildCMakeProjectOrExit with
      the new isCMakeBuild conditional. This allows us to share more code between ports.
      Pass the build arguments to the removeCMakeCache function.
      * Scripts/webkitdirs.pm:
      (runAutogenForAutotoolsProjectIfNecessary): Renamed mustReRunAutogen to cachedArgumentFileOutOfDate
      because it's now shared with the CMake build.
      (cachedArgumentFileOutOfDate): Renamed.
      (cmakeCachePath): Added this helper which gets the CMakeCache.txt path.
      (shouldRemoveCMakeCache): Tries to preserve current behavior for all ports,
      except GTK+ which examines the OptionsGTK.cmake and OptionsCommon.cmake file
      as well as checking if build-webkit has been run with different arguments.
      (removeCMakeCache): Call shouldRemoveCMakeCache now.
      (generateBuildSystemFromCMakeProject): Exit early if CMakeCache.txt exists for GTK+.
      (isCMakeBuild): Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162545 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      06f46f9a
    • commit-queue@webkit.org's avatar
      Crashes in setTextForIterator · fb21bf27
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127424
      
      Patch by peavo@outlook.com <peavo@outlook.com> on 2014-01-22
      Reviewed by Brent Fulgham.
      
      * platform/text/icu/UTextProviderLatin1.cpp:
      (WebCore::uTextLatin1Clone): Provide correct buffer size in utext_setup function call.
      (WebCore::uTextLatin1Access): Give correct buffer size to memset call.
      (WebCore::openLatin1UTextProvider): Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162544 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fb21bf27
    • ap@apple.com's avatar
      REGRESSION: fast/js/dfg-* typed array tests frequently time out on debug bots · 6e2fdd9e
      ap@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126166
      
      Rubber-stamped by Filip Pizlo.
      
      * TestExpectations: Skipped these tests in debug builds.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162543 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6e2fdd9e
    • andersca@apple.com's avatar
      Add WKProcessClass class · cd066fc7
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127433
      <rdar://problem/15882582>
      
      Reviewed by Dan Bernstein.
      
      Add a stubbed out WKProcessClass class.
      
      * Shared/API/Cocoa/WKFoundation.h:
      * UIProcess/API/Cocoa/WKProcessClass.h: Added.
      * UIProcess/API/Cocoa/WKProcessClass.mm: Added.
      (-[WKProcessClass initWithConfiguration:]):
      (-[WKProcessClass configuration]):
      * UIProcess/API/Cocoa/WKProcessClassConfiguration.mm:
      * WebKit2.xcodeproj/project.pbxproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162541 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd066fc7
    • jer.noble@apple.com's avatar
      [Mac] MediaPlayerPrivateMediaSourceAVFObjC::load ASSERTs on lots of tests · 86e07139
      jer.noble@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127430
      
      Reviewed by Eric Carlson.
      
      When other registered media engines cannot load a URL, the engine selection
      will eventually pick MediaPlayerPrivateMediaSourceAVFObjC and ask it to load
      the URL. Instead of ASSERTing here, simply reject the URL by setting the
      network state to FormatError.
      
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
      (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::load):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162540 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      86e07139
    • thiago.lacerda@openbossa.org's avatar
      [EFL][GTK] Get EFL and GTK compiling with ACCESSIBILITY disabled · 8e6984a4
      thiago.lacerda@openbossa.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127119
      
      Reviewed by Mario Sanchez Prada.
      
      Source/WebCore:
      
      At build time, the compiler was not able to determine which Timer's constructor to call in AXObjectCache when
      ACCESSIBILITY is not enabled, fixing that.
      Also guarding some members in AccessibilityObject that are only being used by EFL and GTK with ACCESSIBILITY.
      
      * accessibility/AXObjectCache.h:
      (WebCore::AXObjectCache::AXObjectCache):
      * accessibility/AccessibilityObject.h:
      
      Source/WebKit/gtk:
      
      Guarding ACCESSIBILITY code with HAVE(ACCESSIBILITY).
      
      * webkit/webkitwebview.cpp:
      (webkit_web_view_class_init):
      
      Source/WebKit2:
      
      Guarding ACCESSIBILITY code with HAVE(ACCESSIBILITY).
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::WebPage):
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebPage/gtk/WebPageGtk.cpp:
      (WebKit::WebPage::platformInitialize):
      
      Tools:
      
      Guarding ACCESSIBILITY code in DumpRenderTree and WebKitTestRunner with HAVE(ACCESSIBILITY).
      
      * DumpRenderTree/efl/DumpRenderTreeChrome.cpp:
      * DumpRenderTree/gtk/AccessibilityControllerGtk.cpp:
      * DumpRenderTree/gtk/DumpRenderTree.cpp:
      (resetDefaultsToConsistentValues):
      (webViewWindowObjectCleared):
      (main):
      * WebKitTestRunner/InjectedBundle/AccessibilityController.cpp:
      (WTR::AccessibilityController::platformName):
      * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
      (WTR::AccessibilityUIElement::isIndeterminate):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162538 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8e6984a4
    • commit-queue@webkit.org's avatar
      Refactor calculation of hasRx and hasRy values in SVGPathData · 3bc79669
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127423
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2014-01-22
      Reviewed by Darin Adler.
      
      This is a follow-up on https://bugs.webkit.org/show_bug.cgi?id=127337
      
      * rendering/svg/SVGPathData.cpp:
      (WebCore::updatePathFromRectElement):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162537 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3bc79669
    • mrobinson@webkit.org's avatar
      [GTK][CMake] Add support for building the NetworkProcess · 60736dcd
      mrobinson@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127195
      
      Reviewed by Daniel Bates.
      
      .:
      
      * Source/cmake/OptionsGTK.cmake: Turn on the network process and give it
      a name like the WebProcess.
      
      Source/WebKit2:
      
      * CMakeLists.txt: Add shared network process build instructions.
      * PlatformEfl.cmake: Move build instructions to the platform-independent file.
      * PlatformGTK.cmake: Add some files to the source lists.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162536 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60736dcd
    • mrobinson@webkit.org's avatar
      [GTK] Avoid a circular dependency when building webkitenumtypes.h · 77b995e8
      mrobinson@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127199
      
      Reviewed by Daniel Bates.
      
      * PlatformGTK.cmake: Create a new list of headers consisting of all installed headers
      except webkitenumtypes.h. Use this list when generating webkitenumtypes.h.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162535 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      77b995e8
    • joepeck@webkit.org's avatar
      Web Inspector: Remove recompileAllJSFunctions timer in ScriptDebugServer · 2b1f295b
      joepeck@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127409
      
      Reviewed by Timothy Hatcher.
      
      * bindings/js/ScriptDebugServer.h:
      * bindings/js/ScriptDebugServer.cpp:
      (WebCore::ScriptDebugServer::ScriptDebugServer):
      Remove m_recompileTimer and the recompile soon function.
      We can just recompile immediately in all existing cases.
      
      * bindings/js/PageScriptDebugServer.h:
      * bindings/js/PageScriptDebugServer.cpp:
      (WebCore::PageScriptDebugServer::addListener):
      (WebCore::PageScriptDebugServer::removeListener):
      (WebCore::PageScriptDebugServer::recompileAllJSFunctions):
      (WebCore::PageScriptDebugServer::didAddFirstListener):
      (WebCore::PageScriptDebugServer::didRemoveLastListener):
      Add a "didAddFirstListener" to match "didRemoveLastListener".
      Only recompile functions when we attach the debugger and when
      we detach the last listener.
      
      * bindings/js/WorkerScriptDebugServer.cpp:
      (WebCore::WorkerScriptDebugServer::addListener):
      (WebCore::WorkerScriptDebugServer::removeListener):
      (WebCore::WorkerScriptDebugServer::recompileAllJSFunctions):
      Same thing. Also rearrange the functions to read better.
      
      * inspector/InspectorProfilerAgent.cpp:
      Use the direct recompile function instead of the removed "soon" version.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162534 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2b1f295b
    • carlosgc@webkit.org's avatar
      REGRESSION(r162441): [GTK] ResourceLoader is broken when there aren't user extensions · 8ea340ad
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127422
      
      Reviewed by Anders Carlsson.
      
      * WebProcess/gtk/WebGtkExtensionManager.cpp:
      (WebKit::WebGtkExtensionManager::initialize): Always create the
      WebKitWebExtension object since it's used internally to implement
      the ResourceLoader client.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162533 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8ea340ad
    • m.pakula@samsung.com's avatar
      Unreviewed EFL gardening · 2a003201
      m.pakula@samsung.com authored
      Add some http/tests/websocket/tests/hybi tests to skipped list as they crash
      generating thousands lines of error messages.
      
      * platform/efl/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162532 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2a003201
    • jer.noble@apple.com's avatar
      [Mac][WK2] Unable to play video protected by session cookies · b3711302
      jer.noble@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127207
      
      Reviewed by Sam Weinig.
      
      Recent changes in our underlying media frameworks caused our shimmed methods
      in CookieStorageShim to stop being called. Insert an objective-c shim in addition
      to our original shim to intercept pulling cookies out of cookie storage.
      
      * Shared/mac/CookieStorageShim.mm: Renamed from Source/WebKit2/Shared/mac/CookieStorageShim.cpp.
      (WebKit::CookieStorageShim::initialize): Insert the shim.
      (-[WKNSURLSessionLocal _copyCookiesForRequestUsingAllAppropriateStorageSemantics:]):
          Pass through to webKitCookieStorageCopyRequestHeaderFieldsForURL().
      * WebKit2.xcodeproj/project.pbxproj: Rename CookieStorageShim.cpp -> .mm.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162531 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b3711302
    • commit-queue@webkit.org's avatar
      [curl] Improve detecting and handling of SSL client certificate · ba295c15
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125006
      
      Patch by Robert Sipka <sipka@inf.u-szeged.hu> on 2014-01-22
      Reviewed by Brent Fulgham.
      
      Add client certificate handling.
      
      * platform/network/ResourceHandle.h:
      * platform/network/curl/ResourceError.h:
      (WebCore::ResourceError::hasSSLConnectError):
      * platform/network/curl/ResourceHandleCurl.cpp:
      (WebCore::ResourceHandle::setClientCertificateInfo):
      * platform/network/curl/ResourceHandleManager.cpp:
      (WebCore::ResourceHandleManager::initializeHandle):
      * platform/network/curl/SSLHandle.cpp:
      (WebCore::addAllowedClientCertificate):
      (WebCore::setSSLClientCertificate):
      * platform/network/curl/SSLHandle.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162530 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba295c15
    • jae.park@company100.net's avatar
      Remove unnecessary include in Noncopyable.h · 97845d09
      jae.park@company100.net authored
      https://bugs.webkit.org/show_bug.cgi?id=127406
      
      Reviewed by Anders Carlsson.
      
      * wtf/Noncopyable.h: We don't need Compiler.h as of r162198.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162529 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      97845d09
    • timothy@apple.com's avatar
      Remember the Timeline Overview zoom and selection between sessions. · c59d95cb
      timothy@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127369
      
      Reviewed by Joseph Pecoraro.
      
      * UserInterface/TimelineOverview.js:
      (WebInspector.TimelineOverview):
      (WebInspector.TimelineOverview.prototype.set secondsPerPixel):
      (WebInspector.TimelineOverview.prototype._timeRangeSelectionChanged):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162528 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c59d95cb
    • timothy@apple.com's avatar
      Show the Resource and Record selection path in the navigation bar for Timeline views. · aab271fe
      timothy@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127367
      
      Reviewed by Joseph Pecoraro.
      
      * UserInterface/LayoutTimelineView.js:
      (WebInspector.LayoutTimelineView.prototype.treeElementPathComponentSelected):
      (WebInspector.LayoutTimelineView.prototype._dataGridNodeSelected):
      * UserInterface/NetworkTimelineView.js:
      (WebInspector.NetworkTimelineView.prototype.treeElementPathComponentSelected):
      (WebInspector.NetworkTimelineView.prototype._dataGridNodeSelected):
      * UserInterface/OverviewTimelineView.js:
      (WebInspector.OverviewTimelineView.prototype.get selectionPathComponents):
      (WebInspector.OverviewTimelineView.prototype.treeElementPathComponentSelected):
      (WebInspector.OverviewTimelineView.prototype._dataGridNodeSelected):
      * UserInterface/ScriptTimelineView.js:
      (WebInspector.ScriptTimelineView.prototype.treeElementPathComponentSelected):
      (WebInspector.ScriptTimelineView.prototype._dataGridNodeSelected):
      * UserInterface/TimelineContentView.js:
      (WebInspector.TimelineContentView.prototype._timelineViewSelectionPathComponentsDidChange):
      (WebInspector.TimelineContentView.prototype._showTimelineView):
      * UserInterface/TimelineDataGrid.js:
      (WebInspector.TimelineDataGrid.prototype.treeElementForDataGridNode):
      (WebInspector.TimelineDataGrid.prototype.dataGridNodeForTreeElement):
      * UserInterface/TimelineView.js:
      (WebInspector.TimelineView.prototype.get selectionPathComponents):
      (WebInspector.TimelineView.prototype.treeElementPathComponentSelected):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162527 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aab271fe
    • mitz@apple.com's avatar
      Build fix for iOS clients of WebUIDelegatePrivate.h. · 118a9a7a
      mitz@apple.com authored
      * WebView/WebUIDelegatePrivate.h: Ensure that ENABLE_DASHBOARD_SUPPORT is defined on iOS.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162525 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      118a9a7a
    • commit-queue@webkit.org's avatar
      [CSS Regions] layerOwner in RenderNamedFlowFragment cannot return null · 78d4631c
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127343
      
      Patch by Mihai Maerean <mmaerean@adobe.com> on 2014-01-22
      Reviewed by Sam Weinig.
      
      RenderNamedFlowFragment::layerOwner cannot return null because regions create stacking
      contexts which create layers.
      
      No new tests, no functional change.
      
      * rendering/RenderFlowThread.cpp:
      (WebCore::RenderFlowThread::hasCompositingRegionDescendant):
      * rendering/RenderLayer.cpp:
      (WebCore::RenderLayer::calculateClipRects):
      * rendering/RenderLayerBacking.cpp:
      (WebCore::RenderLayerBacking::adjustAncestorCompositingBoundsForFlowThread):
      * rendering/RenderLayerCompositor.cpp:
      (WebCore::RenderLayerCompositor::computeRegionCompositingRequirements):
      * rendering/RenderNamedFlowFragment.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162523 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      78d4631c
    • commit-queue@webkit.org's avatar
      https://bugs.webkit.org/show_bug.cgi?id=127380 · 155ba0f7
      commit-queue@webkit.org authored
      Add more methods to WKWebProcessPlugInNodeHandle.
      
      Patch by Yongjun Zhang <yongjun_zhang@apple.com> on 2014-01-22
      Reviewed by Sam Weinig.
      
      Add a static method that creates a WKWebProcessPlugInNodeHandle from a JSValue* and a JSContext*.  Also
      add a method to return the iframe's content frame from a WKWebProcessPlugInNodeHandle.
      
      * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.h:
      * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm:
      (+[WKWebProcessPlugInNodeHandle nodeHandleWithJSValue:inContext:]):
      (-[WKWebProcessPlugInNodeHandle htmlIFrameElementContentFrame]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162519 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      155ba0f7
    • antti@apple.com's avatar
      Avoid unthrottled layer flushes triggered by RenderLayerCompositor::ensureRootLayer · 3642be9f
      antti@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127426
      
      Reviewed by Anders Carlsson.
              
      * rendering/RenderLayerCompositor.cpp:
      (WebCore::RenderLayerCompositor::updateScrollLayerPosition):
      (WebCore::RenderLayerCompositor::frameViewDidScroll):
      
          Factor scroll layer position update to a function.
      
      (WebCore::RenderLayerCompositor::ensureRootLayer):
              
          Stop calling frameViewDidChangeSize/frameViewDidScroll. Instead call the relevent functions
          directly. This avoid unthrottled layer flush that is done when the view actually scrolls.
      
      * rendering/RenderLayerCompositor.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162518 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3642be9f
    • commit-queue@webkit.org's avatar
      [CSS Background Blending] -webkit-background-blend-mode fails for certain SVG files · 15e35e7a
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127350
      
      Patch by Mihai Tica <mitica@adobe.com> on 2014-01-22
      Reviewed by Dirk Schulze.
      
      Source/WebCore:
      
      The graphics context of the SVG inherits the blend mode set
      on the background layer. Fix consists in drawing the SVG
      in a transparency layer.
      
      Test: css3/compositing/background-blend-mode-svg.html
      
      * svg/graphics/SVGImage.cpp:
      (WebCore::SVGImage::draw): Begin a transparency layer if a blend mode is set.
      
      LayoutTests:
      
      * css3/compositing/background-blend-mode-svg-expected.html: Added.
      * css3/compositing/background-blend-mode-svg.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162517 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      15e35e7a
    • carlosgc@webkit.org's avatar
      [GTK] Add GUniquePtr · b726b8b0
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127170
      
      Reviewed by Gustavo Noronha Silva.
      
      Source/WTF:
      
      The idea is to replace GOwnPtr with a template alias of
      std:unique_ptr. Not everything can be replaced, though, because
      GOwnPtr::outPtr() doesn't seem to be possible to implement with
      unique_ptr. This smart pointer is more flexible than GOwnPtr and
      allows to transfer the ownership of the pointer using
      std::move().
      
      * GNUmakefile.list.am: Add new file to compilation.
      * wtf/gobject/GUniquePtr.h: Added.
      (WTF::GPtrDeleter::operator()):
      
      Tools:
      
      Add unit tests for GUniquePtr.
      
      * TestWebKitAPI/GNUmakefile.am: Add new file to compilation.
      * TestWebKitAPI/Tests/WTF/gobject/GUniquePtr.cpp: Added.
      (log):
      (takeLogStr):
      (TestWebKitAPI::TEST):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162516 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b726b8b0
    • antti@apple.com's avatar
      Update overlay scrollbars in single pass · df985172
      antti@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127289
      
      Source/WebCore: 
      
      Reviewed by Anders Carlsson.
      
      * platform/ScrollView.cpp:
      (WebCore::ScrollView::updateScrollbars):
              
          Multi-pass scrollbar resolution is only needed for traditional scrollbars. Overlay scrollbars don't affect layout.
      
      LayoutTests: 
      
      * platform/mac/accessibility/iframe-aria-hidden.html: 
              
          Try to keep this non-flaky by forcing layout. Real fix would probably be in the
          accessibility test framework.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162515 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      df985172
    • carlosgc@webkit.org's avatar
      Unreviewed. Fix GTK+ build with CUSTOM_PROTOCOL enabled after r162449. · 07c6de7e
      carlosgc@webkit.org authored
      * UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.h:
      Use override instead of OVERRIDE.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162514 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      07c6de7e