1. 07 Sep, 2013 31 commits
    • andersca@apple.com's avatar
      VectorMover should use std::move · 2d655a2f
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120959
      
      Reviewed by Geoffrey Garen.
      
      Source/JavaScriptCore:
      
      Work around a bug in GCC by changing the type of the callType bitfield
      in CallLinkInfo to be unsigned instead of CallType.
      
      * bytecode/CallLinkInfo.h:
      
      Source/WTF:
      
      This lets the compiler use move constructors when moving data, which can be a performance improvement.
      If the vector element type isn't movable it will be copied instead.
      
      * wtf/Vector.h:
      (WTF::VectorTypeOperations::move):
      (WTF::VectorTypeOperations::moveOverlapping):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155258 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2d655a2f
    • mark.lam@apple.com's avatar
      Change fast/js/regress files to use pre and post js files in LayoutTests/resources. · a1e36412
      mark.lam@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120961.
      
      Rubber stamped by Filip Pizlo.
      
      * fast/js/regress/ArrayBuffer-DataView-alloc-large-long-lived.html:
      * fast/js/regress/ArrayBuffer-DataView-alloc-long-lived.html:
      * fast/js/regress/ArrayBuffer-Int32Array-byteOffset.html:
      * fast/js/regress/ArrayBuffer-Int8Array-alloc-huge-long-lived.html:
      * fast/js/regress/ArrayBuffer-Int8Array-alloc-large-long-lived-fragmented.html:
      * fast/js/regress/ArrayBuffer-Int8Array-alloc-large-long-lived.html:
      * fast/js/regress/ArrayBuffer-Int8Array-alloc-long-lived-buffer.html:
      * fast/js/regress/ArrayBuffer-Int8Array-alloc-long-lived.html:
      * fast/js/regress/ArrayBuffer-Int8Array-alloc.html:
      * fast/js/regress/DataView-custom-properties.html:
      * fast/js/regress/Float32Array-matrix-mult.html:
      * fast/js/regress/Float32Array-to-Float64Array-set.html:
      * fast/js/regress/Float64Array-alloc-long-lived.html:
      * fast/js/regress/Float64Array-to-Int16Array-set.html:
      * fast/js/regress/HashMap-put-get-iterate-keys.html:
      * fast/js/regress/HashMap-put-get-iterate.html:
      * fast/js/regress/HashMap-string-put-get-iterate.html:
      * fast/js/regress/Int16Array-alloc-long-lived.html:
      * fast/js/regress/Int16Array-bubble-sort-with-byteLength.html:
      * fast/js/regress/Int16Array-bubble-sort.html:
      * fast/js/regress/Int16Array-load-int-mul.html:
      * fast/js/regress/Int16Array-to-Int32Array-set.html:
      * fast/js/regress/Int32Array-Int8Array-view-alloc.html:
      * fast/js/regress/Int32Array-alloc-huge-long-lived.html:
      * fast/js/regress/Int32Array-alloc-huge.html:
      * fast/js/regress/Int32Array-alloc-large-long-lived.html:
      * fast/js/regress/Int32Array-alloc-large.html:
      * fast/js/regress/Int32Array-alloc-long-lived.html:
      * fast/js/regress/Int32Array-alloc.html:
      * fast/js/regress/Int8Array-alloc-long-lived.html:
      * fast/js/regress/Int8Array-load-with-byteLength.html:
      * fast/js/regress/Int8Array-load.html:
      * fast/js/regress/adapt-to-double-divide.html:
      * fast/js/regress/aliased-arguments-getbyval.html:
      * fast/js/regress/allocate-big-object.html:
      * fast/js/regress/arity-mismatch-inlining.html:
      * fast/js/regress/array-access-polymorphic-structure.html:
      * fast/js/regress/array-nonarray-polymorhpic-access.html:
      * fast/js/regress/array-nonarray-polymorphic-access.html:
      * fast/js/regress/array-with-double-add.html:
      * fast/js/regress/array-with-double-increment.html:
      * fast/js/regress/array-with-double-mul-add.html:
      * fast/js/regress/array-with-double-sum.html:
      * fast/js/regress/array-with-int32-add-sub.html:
      * fast/js/regress/array-with-int32-or-double-sum.html:
      * fast/js/regress/basic-set.html:
      * fast/js/regress/big-int-mul.html:
      * fast/js/regress/boolean-test.html:
      * fast/js/regress/branch-fold.html:
      * fast/js/regress/cast-int-to-double.html:
      * fast/js/regress/cell-argument.html:
      * fast/js/regress/cfg-simplify.html:
      * fast/js/regress/cmpeq-obj-to-obj-other.html:
      * fast/js/regress/constant-test.html:
      * fast/js/regress/delay-tear-off-arguments-strictmode.html:
      * fast/js/regress/direct-arguments-getbyval.html:
      * fast/js/regress/double-pollution-getbyval.html:
      * fast/js/regress/double-pollution-putbyoffset.html:
      * fast/js/regress/empty-string-plus-int.html:
      * fast/js/regress/emscripten-cube2hash.html:
      * fast/js/regress/emscripten-memops.html:
      * fast/js/regress/external-arguments-getbyval.html:
      * fast/js/regress/external-arguments-putbyval.html:
      * fast/js/regress/fold-double-to-int.html:
      * fast/js/regress/function-dot-apply.html:
      * fast/js/regress/function-test.html:
      * fast/js/regress/get-by-id-chain-from-try-block.html:
      * fast/js/regress/get-by-id-proto-or-self.html:
      * fast/js/regress/get-by-id-self-or-proto.html:
      * fast/js/regress/imul-double-only.html:
      * fast/js/regress/imul-int-only.html:
      * fast/js/regress/imul-mixed.html:
      * fast/js/regress/in-four-cases.html:
      * fast/js/regress/in-one-case-false.html:
      * fast/js/regress/in-one-case-true.html:
      * fast/js/regress/in-two-cases.html:
      * fast/js/regress/indexed-properties-in-objects.html:
      * fast/js/regress/inline-arguments-access.html:
      * fast/js/regress/inline-arguments-local-escape.html:
      * fast/js/regress/inline-get-scoped-var.html:
      * fast/js/regress/inlined-put-by-id-transition.html:
      * fast/js/regress/int-or-other-abs-then-get-by-val.html:
      * fast/js/regress/int-or-other-abs-zero-then-get-by-val.html:
      * fast/js/regress/int-or-other-add-then-get-by-val.html:
      * fast/js/regress/int-or-other-add.html:
      * fast/js/regress/int-or-other-div-then-get-by-val.html:
      * fast/js/regress/int-or-other-max-then-get-by-val.html:
      * fast/js/regress/int-or-other-min-then-get-by-val.html:
      * fast/js/regress/int-or-other-mod-then-get-by-val.html:
      * fast/js/regress/int-or-other-mul-then-get-by-val.html:
      * fast/js/regress/int-or-other-neg-then-get-by-val.html:
      * fast/js/regress/int-or-other-neg-zero-then-get-by-val.html:
      * fast/js/regress/int-or-other-sub-then-get-by-val.html:
      * fast/js/regress/int-or-other-sub.html:
      * fast/js/regress/int-overflow-local.html:
      * fast/js/regress/integer-divide.html:
      * fast/js/regress/integer-modulo.html:
      * fast/js/regress/lots-of-fields.html:
      * fast/js/regress/make-indexed-storage.html:
      * fast/js/regress/make-rope-cse.html:
      * fast/js/regress/marsaglia-osr-entry.html:
      * fast/js/regress/marsaglia.html:
      * fast/js/regress/method-on-number.html:
      * fast/js/regress/negative-zero-divide.html:
      * fast/js/regress/negative-zero-modulo.html:
      * fast/js/regress/negative-zero-negate.html:
      * fast/js/regress/nested-function-parsing-random.html:
      * fast/js/regress/nested-function-parsing.html:
      * fast/js/regress/new-array-buffer-dead.html:
      * fast/js/regress/new-array-buffer-push.html:
      * fast/js/regress/new-array-dead.html:
      * fast/js/regress/new-array-push.html:
      * fast/js/regress/number-test.html:
      * fast/js/regress/object-closure-call.html:
      * fast/js/regress/object-test.html:
      * fast/js/regress/poly-stricteq.html:
      * fast/js/regress/polymorphic-structure.html:
      * fast/js/regress/polyvariant-monomorphic-get-by-id.html:
      * fast/js/regress/put-by-val-large-index-blank-indexing-type.html:
      * fast/js/regress/rare-osr-exit-on-local.html:
      * fast/js/regress/register-pressure-from-osr.html:
      * fast/js/regress/simple-activation-demo.html:
      * fast/js/regress/slow-array-profile-convergence.html:
      * fast/js/regress/slow-convergence.html:
      * fast/js/regress/sparse-conditional.html:
      * fast/js/regress/splice-to-remove.html:
      * fast/js/regress/string-concat-object.html:
      * fast/js/regress/string-concat-pair-object.html:
      * fast/js/regress/string-concat-pair-simple.html:
      * fast/js/regress/string-concat-simple.html:
      * fast/js/regress/string-cons-repeat.html:
      * fast/js/regress/string-cons-tower.html:
      * fast/js/regress/string-equality.html:
      * fast/js/regress/string-get-by-val-big-char.html:
      * fast/js/regress/string-get-by-val-out-of-bounds-insane.html:
      * fast/js/regress/string-get-by-val-out-of-bounds.html:
      * fast/js/regress/string-get-by-val.html:
      * fast/js/regress/string-hash.html:
      * fast/js/regress/string-long-ident-equality.html:
      * fast/js/regress/string-repeat-arith.html:
      * fast/js/regress/string-sub.html:
      * fast/js/regress/string-test.html:
      * fast/js/regress/string-var-equality.html:
      * fast/js/regress/structure-hoist-over-transitions.html:
      * fast/js/regress/switch-char-constant.html:
      * fast/js/regress/switch-char.html:
      * fast/js/regress/switch-constant.html:
      * fast/js/regress/switch-string-basic-big-var.html:
      * fast/js/regress/switch-string-basic-big.html:
      * fast/js/regress/switch-string-basic-var.html:
      * fast/js/regress/switch-string-basic.html:
      * fast/js/regress/switch-string-big-length-tower-var.html:
      * fast/js/regress/switch-string-length-tower-var.html:
      * fast/js/regress/switch-string-length-tower.html:
      * fast/js/regress/switch-string-short.html:
      * fast/js/regress/switch.html:
      * fast/js/regress/tear-off-arguments-simple.html:
      * fast/js/regress/tear-off-arguments.html:
      * fast/js/regress/temporal-structure.html:
      * fast/js/regress/to-int32-boolean.html:
      * fast/js/regress/undefined-test.html:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155257 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a1e36412
    • commit-queue@webkit.org's avatar
      removing --dialog-element from build-webkit --help option message · ca57b9d3
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=120955
      
      Patch by Santosh Mahto <santosh.ma@samsung.com> on 2013-09-07
      Reviewed by Daniel Bates.
      
      --dialog-element option is useless while building as
      Dialog Element support has been removed in following changeset.
      http://trac.webkit.org/changeset/154835
      http://trac.webkit.org/changeset/154870
      
      * Scripts/webkitperl/FeatureList.pm:
      Removed --dialog-element option message.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155256 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ca57b9d3
    • mark.lam@apple.com's avatar
      Change fast/js/kde files to use pre and post js files in LayoutTests/resources. · d7ea5ac5
      mark.lam@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120960.
      
      Rubber stamped by Filip Pizlo.
      
      * fast/js/kde/Array.html:
      * fast/js/kde/Boolean.html:
      * fast/js/kde/Date-setYear.html:
      * fast/js/kde/Error.html:
      * fast/js/kde/GlobalObject.html:
      * fast/js/kde/Number.html:
      * fast/js/kde/Object.html:
      * fast/js/kde/Prototype.html:
      * fast/js/kde/RegExp.html:
      * fast/js/kde/StringObject.html:
      * fast/js/kde/arguments-scope.html:
      * fast/js/kde/assignments.html:
      * fast/js/kde/cast.html:
      * fast/js/kde/comment-1.html:
      * fast/js/kde/comment-2.html:
      * fast/js/kde/completion.html:
      * fast/js/kde/conditional.html:
      * fast/js/kde/const.html:
      * fast/js/kde/constructor_length.html:
      * fast/js/kde/crash-1.html:
      * fast/js/kde/crash-2.html:
      * fast/js/kde/delete.html:
      * fast/js/kde/empty.html:
      * fast/js/kde/encode_decode_uri.html:
      * fast/js/kde/eval.html:
      * fast/js/kde/evil-n.html:
      * fast/js/kde/exception_propagation.html:
      * fast/js/kde/exceptions.html:
      * fast/js/kde/func-decl.html:
      * fast/js/kde/function.html:
      * fast/js/kde/function_arguments.html:
      * fast/js/kde/function_constructor.html:
      * fast/js/kde/function_length.html:
      * fast/js/kde/garbage-n.html:
      * fast/js/kde/inbuilt_function_proto.html:
      * fast/js/kde/inbuilt_function_tostring.html:
      * fast/js/kde/iteration.html:
      * fast/js/kde/j-comment-3.html:
      * fast/js/kde/j-comment-4.html:
      * fast/js/kde/literals.html:
      * fast/js/kde/lval-exceptions.html:
      * fast/js/kde/math.html:
      * fast/js/kde/md5-1.html:
      * fast/js/kde/md5-2.html:
      * fast/js/kde/object_prototype.html:
      * fast/js/kde/object_prototype_tostring.html:
      * fast/js/kde/operators.html:
      * fast/js/kde/parse.html:
      * fast/js/kde/prototype_length.html:
      * fast/js/kde/prototype_proto.html:
      * fast/js/kde/scope.html:
      * fast/js/kde/statements.html:
      * fast/js/kde/string-1-n.html:
      * fast/js/kde/string-2-n.html:
      * fast/js/kde/var_decl_init.html:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155255 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d7ea5ac5
    • fpizlo@apple.com's avatar
      It should be possible to run-javascriptcore-tests with only a subset of the test suites · 46fe6591
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120918
      
      Reviewed by Dan Bernstein.
      
      * Scripts/run-javascriptcore-tests:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155254 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      46fe6591
    • antti@apple.com's avatar
      Remove unnecessary sibling text renderers after attach · eb42f534
      antti@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120953
      
      Source/WebCore: 
      
      Reviewed by the Swedish Review Team: Anders Carlsson and Andreas Kling.
      
      The current createTextRenderersForSiblingsAfterAttachIfNeeded code only adds text renderers, never removes them. 
      Style changes can go either way.
              
      The patch causes no visible changes in rendered output. The whitespace nodes that it affects are leftovers that
      have no rendering effect. However it does change results of many dumpAsText and render tree dump based layout
      tests as unnecessary text nodes disappear.
              
      The main goal is to make results of dynamic attach and parsing time attach produce more similar results. As
      an added bonus we get slightly simpler rendering trees.
              
      Rendering tree dumps show us still leaving behind empty anonymous blocks when removing whitespace text nodes.
      Those should collapse away too.
      
      * style/StyleResolveTree.cpp:
      (WebCore::Style::reattachTextRenderersForWhitespaceOnlySiblingsAfterAttachIfNeeded):
              
          Allow the code both create and remove text renderers.
          Tighten to bail out faster if case is not the exact one that matters.
          Use NodeRenderingTraversal to mirror textRendererIsNeeded.
          Renamed for clarity.
      
      (WebCore::Style::updateTextRendererAfterContentChange):
      (WebCore::Style::resolveLocal):
      (WebCore::Style::updateTextStyle):
      (WebCore::Style::attachRenderTree):
      
      LayoutTests: 
      
      Reviewed by Anders Carlsson and Andreas Kling.
      
      A bunch of spaces and empty lines disappear from dumpAsText test results.
      Empty RenderTexts disapper from render tree dumps.
      
      * css3/flexbox/flex-flow-auto-margins-expected.txt:
      * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt:
      * css3/flexbox/flex-flow-border-expected.txt:
      * css3/flexbox/flex-flow-margins-auto-size-expected.txt:
      * css3/flexbox/flex-flow-margins-expected.txt:
      * css3/flexbox/flex-flow-orientations-expected.txt:
      * css3/flexbox/flex-flow-overflow-expected.txt:
      * css3/flexbox/flex-flow-padding-expected.txt:
      * css3/flexbox/flexbox-ignore-firstLetter-expected.txt:
      * css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt:
      * css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt:
      * editing/selection/focus-crash-expected.txt:
              
          A few frame based tests also gain an extra space from alrgorithm fixes in creation direction.
      
      * editing/style/toggle-style-bold-italic-expected.txt:
      * editing/style/toggle-style-bold-italic-mixed-editability-expected.txt:
      * fast/block/float/intruding-float-not-removed-writing-mode-expected.txt:
      * fast/css/getComputedStyle/getComputedStyle-resolved-values-expected.txt:
      * fast/css/import-style-update-expected.txt:
      * fast/css/positioned-overflow-scroll-expected.txt:
      * fast/dom/HTMLLinkElement/resolve-url-on-insertion-expected.txt:
      * fast/dom/search-shadow-host-crash-expected.txt:
      * fast/dynamic/inline-to-block-crash-expected.txt:
      * fast/events/input-element-display-none-in-dragleave-crash-expected.txt:
      * fast/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt:
      * fast/forms/select-listbox-focus-displaynone-expected.txt:
      * fast/frames/repaint-display-none-crash-expected.txt:
      * fast/inline/inline-with-empty-inline-children-expected.txt:
      * fast/inline/out-of-flow-objects-and-whitespace-after-empty-inline-expected.txt:
      * fast/repaint/text-in-relative-positioned-inline-expected.txt:
      * fast/replaced/computed-image-width-with-percent-height-and-fixed-ancestor-expected.txt:
      * fast/replaced/computed-image-width-with-percent-height-and-fixed-ancestor-vertical-lr-expected.txt:
      * fast/replaced/preferred-widths-expected.txt:
      * fast/spatial-navigation/snav-tiny-table-traversal-expected.txt:
      * fast/table/min-max-width-preferred-size-expected.txt:
      * fast/xsl/import-non-document-node-expected.txt:
      * fullscreen/full-screen-fixed-pos-parent-expected.txt:
      * http/tests/appcache/auth-expected.txt:
      * http/tests/cache/subresource-expiration-1-expected.txt:
      * http/tests/cache/subresource-expiration-2-expected.txt:
      * http/tests/xmlhttprequest/send-array-buffer-expected.txt:
      * http/tests/xmlhttprequest/send-data-view-expected.txt:
      * http/tests/xmlhttprequest/send-undefined-and-null-expected.txt:
      * platform/mac/editing/input/firstrectforcharacterrange-plain-expected.txt:
      * platform/mac/editing/input/firstrectforcharacterrange-styled-expected.txt:
      * platform/mac/editing/pasteboard/4989774-expected.txt:
      * platform/mac/editing/pasteboard/paste-match-style-001-expected.txt:
      * platform/mac/editing/selection/caret-ltr-2-expected.txt:
      * platform/mac/editing/selection/caret-ltr-2-left-expected.txt:
      * platform/mac/editing/selection/caret-ltr-expected.txt:
      * platform/mac/editing/selection/caret-ltr-right-expected.txt:
      * platform/mac/editing/selection/caret-rtl-2-expected.txt:
      * platform/mac/editing/selection/caret-rtl-2-left-expected.txt:
      * platform/mac/editing/selection/caret-rtl-expected.txt:
      * platform/mac/editing/selection/caret-rtl-right-expected.txt:
      * platform/mac/editing/selection/vertical-rl-ltr-extend-line-backward-wrap-expected.txt:
      * platform/mac/editing/selection/vertical-rl-ltr-extend-line-forward-wrap-expected.txt:
      * platform/mac/editing/spelling/autocorrection-in-textarea-expected.txt:
      * platform/mac/editing/style/style-boundary-005-expected.txt:
      * platform/mac/fast/AppleScript/001-expected.txt:
      * platform/mac/fast/AppleScript/date-expected.txt:
      * platform/mac/fast/forms/formmove3-expected.txt:
      * platform/mac/fast/forms/input-align-image-expected.txt:
      * platform/mac/fast/forms/preserveFormDuringResidualStyle-expected.txt:
      * platform/mac/fast/invalid/003-expected.txt:
      * platform/mac/fast/text/attributed-substring-from-range-002-expected.txt:
      * platform/mac/tables/mozilla/bugs/bug647-expected.txt:
      * userscripts/user-script-all-frames-expected.txt:
      * userscripts/user-script-top-frame-only-expected.txt:
              
          Here too.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155253 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eb42f534
    • mark.lam@apple.com's avatar
      Change fast/js/resources files to use pre and post js files in LayoutTests/resources. · 3a62865f
      mark.lam@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120958.
      
      Rubber stamped by Filip Pizlo.
      
      * fast/js/resources/Promise-catch-in-workers.js:
      * fast/js/resources/Promise-fulfill-in-workers.js:
      * fast/js/resources/Promise-init-in-workers.js:
      * fast/js/resources/Promise-reject-in-workers.js:
      * fast/js/resources/Promise-resolve-in-workers.js:
      * fast/js/resources/Promise-simple-in-workers.js:
      * fast/js/resources/Promise-then-in-workers.js:
      * fast/js/resources/Promise-then-without-callbacks-in-workers.js:
      * fast/js/resources/document-all-between-frames-subframe.html:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155252 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3a62865f
    • andersca@apple.com's avatar
      Get rid of FastAllocBase.h · 3d185a87
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120952
      
      Reviewed by Antti Koivisto.
      
      Source/JavaScriptCore:
      
      Include FastMalloc.h instead of FastAllocBase.h.
      
      * assembler/LinkBuffer.h:
      * bytecode/CodeBlock.h:
      * bytecode/StructureStubClearingWatchpoint.h:
      * dfg/DFGFinalizer.h:
      * dfg/DFGLongLivedState.h:
      * dfg/DFGSlowPathGenerator.h:
      * ftl/FTLAbstractHeap.h:
      * heap/JITStubRoutineSet.h:
      * jit/CompactJITCodeMap.h:
      * profiler/ProfilerDatabase.h:
      * profiler/ProfilerExecutionCounter.h:
      
      Source/WebCore:
      
      Include FastMalloc.h instead of FastAllocBase.h.
      
      * Modules/webdatabase/SQLTransactionClient.h:
      * bindings/js/GCController.h:
      * bridge/Bridge.h:
      * bridge/IdentifierRep.h:
      * dom/DocumentStyleSheetCollection.h:
      * dom/TransformSource.h:
      * html/InputType.h:
      * inspector/InspectorCounters.h:
      * inspector/InstrumentingAgents.h:
      * inspector/WorkerInspectorController.h:
      * loader/cache/CachedResourceClient.h:
      * page/FrameActionScheduler.h:
      * platform/Length.h:
      * platform/MemoryPressureHandler.h:
      * platform/ScrollAnimator.h:
      * platform/SharedTimer.h:
      * platform/audio/gstreamer/FFTFrameGStreamer.cpp:
      * platform/cairo/WidgetBackingStore.h:
      * platform/graphics/Color.h:
      * platform/graphics/FontData.h:
      * platform/graphics/Path.h:
      * platform/graphics/qt/FontCustomPlatformData.h:
      * platform/graphics/transforms/AffineTransform.h:
      * platform/graphics/transforms/TransformationMatrix.h:
      * platform/gtk/GtkDragAndDropHelper.h:
      * platform/gtk/GtkPopupMenu.h:
      * platform/network/NetworkStateNotifier.h:
      * platform/sql/SQLiteTransaction.h:
      * platform/text/enchant/TextCheckerEnchant.h:
      * rendering/RenderArena.h:
      * rendering/TableLayout.h:
      * rendering/style/StyleCustomFilterProgram.h:
      * rendering/style/StyleCustomFilterProgramCache.h:
      * svg/SVGPathConsumer.h:
      * workers/WorkerScriptLoader.h:
      
      Source/WTF:
      
      FastAllocBase.h now only contains the WTF_MAKE_FAST_ALLOCATED macro.
      Move that macro to FastMalloc.h instead and remove FastAllocBase.h.
      
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.vcxproj/WTF.vcxproj.filters:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/DeferrableRefCounted.h:
      * wtf/FastAllocBase.h: Removed.
      * wtf/FastMalloc.h:
      * wtf/HashSet.h:
      * wtf/MediaTime.h:
      * wtf/PrintStream.h:
      * wtf/RefCounted.h:
      * wtf/RefPtr.h:
      * wtf/ThreadingPrimitives.h:
      * wtf/Vector.h:
      * wtf/gobject/GMutexLocker.h:
      * wtf/unicode/Collator.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155251 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3d185a87
    • mark.lam@apple.com's avatar
      Copy test pre and post js files to LayoutTests/resources. · d2675612
      mark.lam@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120957.
      
      Reviewed by Ryosuke Niwa.
      
      * resources/js-test-post-async.js: Copied from LayoutTests/fast/js/resources/js-test-post-async.js.
      * resources/js-test-post.js: Copied from LayoutTests/fast/js/resources/js-test-post.js.
      * resources/js-test-pre.js: Copied from LayoutTests/fast/js/resources/js-test-pre.js.
      * resources/standalone-post.js: Copied from LayoutTests/fast/js/resources/standalone-post.js.
      * resources/standalone-pre.js: Copied from LayoutTests/fast/js/resources/standalone-pre.js.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155250 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d2675612
    • eric.carlson@apple.com's avatar
      MediaStream should fire ended event when all tracks are ended · 1d6ed974
      eric.carlson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120871
      
      Reviewed by Jer Noble.
      
      Merge https://chromium.googlesource.com/chromium/blink/+/bebd179b65be69e46f2f434a3ec8b1e4aa85cc42
      
      Source/WebCore: 
      
      Test: fast/mediastream/MediaStream-onended.html
      
      * Modules/mediastream/MediaStream.cpp:
      (WebCore::MediaStream::trackEnded): New.
      * Modules/mediastream/MediaStream.h:
      
      * Modules/mediastream/MediaStreamTrack.cpp:
      (WebCore::MediaStreamTrack::sourceChangedState): Call didEndTrack when state changes to ReadyStateEnded. 
      (WebCore::MediaStreamTrack::didEndTrack): New.
      (WebCore::MediaStreamTrack::stop): Call didEndTrack.
      * Modules/mediastream/MediaStreamTrack.h:
      
      * platform/mediastream/MediaStreamDescriptor.h:
      (WebCore::MediaStreamDescriptor::MediaStreamDescriptor): Require didEndTrack.
      
      LayoutTests: 
      
      * fast/mediastream/MediaStream-onended-expected.txt: Added.
      * fast/mediastream/MediaStream-onended.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155249 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1d6ed974
    • commit-queue@webkit.org's avatar
      Get MEDIA_STREAM compiling for other ports (EFL and GTK) · c6b1f084
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=120811
      
      Patch by Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> on 2013-09-06
      Reviewed by Eric Carlson.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/mediastream/LocalMediaStream.h:
      * Modules/mediastream/MediaStreamRegistry.cpp:
      (WebCore::MediaStreamRegistry::lookupMediaStreamDescriptor):
      * Modules/mediastream/RTCStatsResponse.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155248 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c6b1f084
    • commit-queue@webkit.org's avatar
      Web Inspector: Download Archive button incorrectly styled when disabled and... · dd486746
      commit-queue@webkit.org authored
      Web Inspector: Download Archive button incorrectly styled when disabled and tree element is not-selected
      https://bugs.webkit.org/show_bug.cgi?id=120866
      
      Patch by Joseph Pecoraro <pecoraro@apple.com> on 2013-09-06
      Reviewed by Timothy Hatcher.
      
      * UserInterface/TreeElementStatusButton.css:
      (.item > .status > .status-button.disabled > svg *):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155247 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dd486746
    • zandobersek@gmail.com's avatar
      REGRESSION(r155143): Build failures on GTK port with Clang and libstdc++ < 4.8.1 · a973b185
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120896
      
      Reviewed by Anders Carlsson.
      
      The GTK port currently only permits using the libstdc++ standard library when compiling with
      Clang. After r155143, build failures are occurring when using Clang and libstdc++ that predates
      the 4.8.0 release due to the use of std::is_trivially_destructible that isn't available in
      libstdc++ < 4.8.0.
      
      To not add additional special casing, the GTK port should move onto requiring libstdc++ >= 4.8.1
      when compiling with the Clang compiler. Version 4.8.1 was chosen since it's C++11 feature-complete.
      This strict requirement is possible as compiling the GTK port with the Clang compiler is not really
      widespread, so we can afford to adjust the required dependencies to match other ports' progression
      instead of modifying the code.
      
      * Source/autotools/CheckSystemAndBasicDependencies.m4: If the detected compiler is Clang, also check
      that the libstdc++ standard library is used by testing for the __GLIBCXX__ macro that should be defined
      to the value lesser than the '20130531', the date stamp used by the 4.8.1 release of libstdc++. Since
      possible future releases of the 4.6 or 4.7 series of libstdc++ will also match this check due to a newer
      date stamp contained in __GLIBCXX__, the std::is_trivially_destructible struct is also used so the
      compilation will fail if the libstdc++ that's used is older than allowed (and therefor does not support
      the feature). If the check fails, a fatal error is thrown, describing the requirement. Everything carries
      on as normal otherwise.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155246 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a973b185
    • zandobersek@gmail.com's avatar
      [GTK] Bump the required Clang version to 3.2 · 95d2a311
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=112537
      
      Reviewed by Gustavo Noronha Silva.
      
      * Source/autotools/CheckSystemAndBasicDependencies.m4: Require the Clang 3.2 stack
      when the Clang compiler is specified.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155245 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      95d2a311
    • bjonesbe@adobe.com's avatar
      [CSS Shapes] Floats with shape-outside aren't painting in the correct order · 9869594e
      bjonesbe@adobe.com authored
      https://bugs.webkit.org/show_bug.cgi?id=118492
      
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      When removing the old positioning behavior, the code that makes a
      float with shape-outside gain a layer was left behind. This patch
      removes that, so now floats with shape-outside are painted just like
      floats without shape-outside.
      
      Also remove the isFloatingWithShapeOutside helper method because its
      use is now somewhat redundant, and the check it does is now only
      needed in one place.
      
      Test: fast/shapes/shape-outside-floats/shape-outside-floats-not-a-layer.html
      
      * rendering/RenderBox.h:
      (WebCore::RenderBox::shapeOutsideInfo):
      * rendering/RenderObject.h:
      * rendering/shapes/ShapeOutsideInfo.cpp:
      (WebCore::ShapeOutsideInfo::isEnabledFor):
      
      LayoutTests:
      
      Update tests to reflect correct painting order. Add a new test for the
      correct painting behavior.
      
      * csswg/submitted/shapes/shape-outside/shape-outside-floats-circle-000-expected.html:
      * csswg/submitted/shapes/shape-outside/shape-outside-floats-circle-000.html:
      * csswg/submitted/shapes/shape-outside/shape-outside-floats-ellipse-000-expected.html:
      * csswg/submitted/shapes/shape-outside/shape-outside-floats-ellipse-000.html:
      * csswg/submitted/shapes/shape-outside/shape-outside-floats-inset-rectangle-001-expected.html:
      * csswg/submitted/shapes/shape-outside/shape-outside-floats-inset-rectangle-001.html:
      * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-001-expected.html:
      * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-001.html:
      * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-002-expected.html:
      * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-002.html:
      * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-003-expected.html:
      * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-003.html:
      * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-004-expected.html:
      * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-004.html:
      * csswg/submitted/shapes/shape-outside/shape-outside-floats-stacked-000.html:
      * fast/shapes/shape-outside-floats/shape-outside-floats-not-a-layer-expected.html: Added.
      * fast/shapes/shape-outside-floats/shape-outside-floats-not-a-layer.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155244 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9869594e
    • fpizlo@apple.com's avatar
      FTL should support Call/Construct in the worst way possible · fa258dc0
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120916
      
      Reviewed by Oliver Hunt.
              
      This adds support for Call/Construct by just calling out to C code that uses
      the JSC::call/JSC::construct runtime functions for making calls. This is slow
      and terrible, but it dramatically extends FTL coverage.
              
      Supporting calls in a meaningful way meant also supporting
      GlobalVarWatchpoint.
              
      The extension of coverage helped to find a bunch of bugs:
              
      - ObjectOrOtherUse was claimed to be supported in the FTL but speculate()
        didn't support it. That means that any node with an ObjectOrOtherUse edge
        that got DCE'd would cause the FTL to ICE.
              
      - There was a bad fall-through compileCompareStrictEq() that led to ICE.
              
      - The OSR exit reconstruction code was assuming it could do fast checks on
        node->child1() before even determining the type of node; that crashes if
        the node is HasVarArgs. Fixed by checking HasVarArgs first.
              
      - The OSR exit compiler was using the wrong peekOffset for CArgumentGetter.
        The default is 1, which assumes that you didn't push anything onto the
        stack after getting called. The OSR exit thunks push FP, so the offset
        should be 2.
              
      This passes stress tests and is probably huge performance regression if you
      --useExperimentalFTL=true. The regression will be fixed in
      https://bugs.webkit.org/show_bug.cgi?id=113621.
      
      * dfg/DFGOperations.cpp:
      * dfg/DFGOperations.h:
      * ftl/FTLCapabilities.cpp:
      (JSC::FTL::canCompile):
      * ftl/FTLIntrinsicRepository.h:
      * ftl/FTLLowerDFGToLLVM.cpp:
      (JSC::FTL::LowerDFGToLLVM::compileNode):
      (JSC::FTL::LowerDFGToLLVM::compileGlobalVarWatchpoint):
      (JSC::FTL::LowerDFGToLLVM::compileCompareStrictEq):
      (JSC::FTL::LowerDFGToLLVM::compileCallOrConstruct):
      (JSC::FTL::LowerDFGToLLVM::speculate):
      (JSC::FTL::LowerDFGToLLVM::speculateObjectOrOther):
      (JSC::FTL::LowerDFGToLLVM::addExitArgumentForNode):
      * ftl/FTLOSRExitCompiler.cpp:
      (JSC::FTL::compileStub):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155243 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fa258dc0
    • andersca@apple.com's avatar
      Add a new smart pointer type for fastMalloc'ed memory · fb72153f
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120911
      
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      Update for WTF changes.
      
      * platform/network/cf/FormDataStreamCFNet.cpp:
      (WebCore::advanceCurrentStream):
      
      Source/WTF:
      
      Due to an oversight on my part, Vector::releaseBuffer() currently returns an OwnPtr
      which means that its data will be freed with operator delete instead of fastFree.
      
      Fix this by introducing a new MllocPtr smart pointer class and change Vector::releaseBuffer() to return it instead.
      
      * WTF.pro:
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.vcxproj/WTF.vcxproj.filters:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/CMakeLists.txt:
      * wtf/FastAllocBase.h:
      * wtf/MallocPtr.h: Added.
      * wtf/Vector.h:
      * wtf/text/StringBuffer.h:
      * wtf/text/StringImpl.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155242 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fb72153f
    • commit-queue@webkit.org's avatar
      Web Inspector: Lint JavaScript and CSS for minor issues · 8f88df5d
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=120884
      
      Patch by Joseph Pecoraro <pecoraro@apple.com> on 2013-09-06
      Reviewed by Timothy Hatcher.
      
      JS, caught a bunch of missing semicolons but at least one possible
      issue with duplicate object literal keys in CSSKeywordCompletions.
      
      CSS, cause some duplicate properties, an invalid property value,
      and some "0px" => "0" cleanup.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155241 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8f88df5d
    • krit@webkit.org's avatar
      Interpolate between CSS filter() and cached images · c194b777
      krit@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=120602
      
      Reviewed by Simon Fraser.
      
      Source/WebCore:
      
      Interpolate from a filter() image function to a url() image reference and
      the other way around, if the input image on the filter function is the same
      as the referenced image on url().
      
      * page/animation/CSSPropertyAnimation.cpp: Replaced old
          filterBlend function with blendFilter function which is more generic
          and can be reused in multiple places.
      (WebCore::blendFilterOperations):
      (WebCore::blendFunc):
      (WebCore::blendFilter):
      
      LayoutTests:
      
      Add aditional test for interpolation from url to a -webkit-filter function
      and the other way around. Added an additional test to make sure that different
      input images don't make start and end interpolate.
      
      * fast/filter-image/filter-image-animation.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155240 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c194b777
    • fpizlo@apple.com's avatar
      jsc shell should destroy VM as a workaround for LLVM's exit-time destructors · a5c3a94c
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120921
      
      Reviewed by Oliver Hunt.
              
      LLVM's exit-time destructors will fire when we exit. If there is an on-going
      FTL compile at exit, which will happen if the VM that triggered the compile
      isn't shut down, then we will crash.
              
      We should get rid of LLVM's exit-time destructors. But before we do that, we
      should just do a clean VM shutdown to suppress spurious crashes. This will
      help in expanding LLVM coverage for now.
      
      * jsc.cpp:
      (jscmain):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155239 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a5c3a94c
    • rniwa@webkit.org's avatar
      REGRESSION(r155100): animations/cross-fade-background-image.html fails · fcb15617
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=120923
      
      Add the failing test expectation.
      
      * platform/mac/TestExpectations:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155238 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fcb15617
    • rniwa@webkit.org's avatar
      compositing/overlap-blending//children-opacity-huge.html and... · 882f0720
      rniwa@webkit.org authored
      compositing/overlap-blending//children-opacity-huge.html and children-opacity-no-overlap.html are failing
      https://bugs.webkit.org/show_bug.cgi?id=120922
      
      Add the failing test expectations.
      
      * platform/mac/TestExpectations:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155237 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      882f0720
    • jinwoo7.song@samsung.com's avatar
      [EFL] Unreviewed gardening. · 29f763c7
      jinwoo7.song@samsung.com authored
      * platform/efl/TestExpectations: Removed passing test.
      * platform/efl/svg/text/text-overflow-ellipsis-svgfont-kerning-ligatures-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155236 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      29f763c7
    • rniwa@webkit.org's avatar
      Unreviewed, rolling out r155196. · 99e5de07
      rniwa@webkit.org authored
      http://trac.webkit.org/changeset/155196
      https://bugs.webkit.org/show_bug.cgi?id=120919
      
      Broke 16 tests on build.webkit.org (Requested by rniwa on
      #webkit).
      
      Patch by Commit Queue <commit-queue@webkit.org> on 2013-09-06
      
      * Scripts/webkitpy/layout_tests/controllers/manager.py:
      (Manager._set_up_run):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155235 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      99e5de07
    • rniwa@webkit.org's avatar
      Elements retained by AccessibilityImageMapLink leak · 0d48f3a1
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=120917
      
      Reviewed by Chris Fleizach.
      
      Merge https://chromium.googlesource.com/chromium/blink/+/df0bd288efe65e5e38425fbdcdfc68b5a2a79e42
      
      Unfortunately, the test added by the Blink change doesn't reproduce a leak in WebKit.
      
      * accessibility/AccessibilityImageMapLink.cpp:
      (WebCore::AccessibilityImageMapLink::detachFromParent):
      * accessibility/AccessibilityImageMapLink.h:
      * accessibility/AccessibilityMockObject.h:
      (WebCore::AccessibilityMockObject::detachFromParent):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155234 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0d48f3a1
    • akling@apple.com's avatar
      Make Obj-C bindings generator less #include-happy. · 9ff1761e
      akling@apple.com authored
      <https://webkit.org/b/120913>
      
      Reviewed by Anders Carlsson.
      
      Knock out an old FIXME in CodeGeneratorObjC.pm and avoid including unrelated
      interface declarations from implementation files where they are not needed.
      
      * bindings/scripts/CodeGeneratorObjC.pm:
      (GenerateImplementation):
      
          Only include DOMFooInternal.h relevant to the current interface.
      
      * bindings/scripts/test/ObjC/*
      
          Rebaseline Obj-C bindings tests now that they include fewer things.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155233 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9ff1761e
    • akling@apple.com's avatar
      Remove old workaround for Nokia's Harmattan GCC on Qt/ARM. · 6c0e938f
      akling@apple.com authored
      <https://webkit.org/b/37253>
      
      Reviewed by Anders Carlsson.
      
      Apparently this was a workaround for GCC getting stuck in an infinite loop
      when building for ARM in a Nokia SDK over 2 years ago.
      
      I think it's safe to remove this now, but if I'm wrong, and you're reading
      this ChangeLog wondering why I did this to you, feel free to put it back in.
      
      * wtf/PassRefPtr.h:
      (WTF::refIfNotNull):
      (WTF::derefIfNotNull):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155232 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6c0e938f
    • akling@apple.com's avatar
      Remove unused RefPtr(PlacementNewAdopt) constructor. · bab752f4
      akling@apple.com authored
      <https://webkit.org/b/120914>
      
      Reviewed by Anders Carlsson.
      
      * wtf/RefPtr.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155231 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bab752f4
    • akling@apple.com's avatar
      Rebaseline bindings tests after Swedish breakage. · 054a24aa
      akling@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155230 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      054a24aa
    • akling@apple.com's avatar
      Don't include Document.h from JSDOMBinding.h · 751d79e7
      akling@apple.com authored
      <https://webkit.org/b/120909>
      
      Reviewed by Anders Carlsson.
      
      Move DOMConstructorWithDocument out of JSDOMBinding.h to its own header.
      This was the only part of JSDOMBinding.h that needed Document's definition.
      
      This reduces the include dependency graph of many bindings files.
      
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/DOMConstructorWithDocument.h:
      * bindings/js/JSDOMBinding.cpp:
      * bindings/js/JSDOMBinding.h:
      * bindings/scripts/CodeGeneratorJS.pm:
      * bindings/scripts/CodeGeneratorGObject.pm:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155229 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      751d79e7
    • rniwa@webkit.org's avatar
      Range::ownerDocument should return Document& · 55f28e5e
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=120908
      
      Reviewed by Andreas Kling.
      
      Source/WebCore: 
      
      Return Document& in Range::ownerDocument(). Also make setDocument take Document& so that this invariant is self-evident.
      
      * bindings/objc/DOM.mm:
      (-[DOMRange boundingBox]):
      (-[DOMRange renderedImageForcingBlackText:]):
      (-[DOMRange textRects]):
      * dom/Range.cpp:
      (WebCore::Range::setDocument):
      (WebCore::Range::setStart):
      (WebCore::Range::setEnd):
      (WebCore::Range::selectNode):
      (WebCore::Range::selectNodeContents):
      * dom/Range.h:
      (WebCore::Range::ownerDocument):
      * editing/AlternativeTextController.cpp:
      (WebCore::AlternativeTextController::handleAlternativeTextUIResult):
      * editing/Editor.cpp:
      (WebCore::Editor::avoidIntersectionWithDeleteButtonController):
      (WebCore::isFrameInRange):
      (WebCore::Editor::countMatchesForText):
      * editing/EditorCommand.cpp:
      (WebCore::unionDOMRanges):
      * editing/TextCheckingHelper.cpp:
      (WebCore::TextCheckingHelper::unifiedTextCheckerEnabled):
      * editing/TextIterator.cpp:
      (WebCore::plainText):
      (WebCore::findPlainText):
      * editing/htmlediting.cpp:
      (WebCore::extendRangeToWrappingNodes):
      * editing/markup.cpp:
      (WebCore::createMarkup):
      (WebCore::createFragmentFromText):
      * page/DragController.cpp:
      (WebCore::documentFragmentFromDragData):
      (WebCore::DragController::concludeEditDrag):
      * page/Page.cpp:
      (WebCore::Page::rangeOfString):
      * rendering/RenderObject.cpp:
      (WebCore::RenderObject::absoluteBoundingBoxRectForRange):
      * testing/Internals.cpp:
      (WebCore::Internals::addTextMatchMarker):
      
      Source/WebKit/blackberry: 
      
      * WebKitSupport/InPageSearchManager.cpp:
      (BlackBerry::WebKit::InPageSearchManager::findNextString):
      (BlackBerry::WebKit::InPageSearchManager::findAndMarkText):
      (BlackBerry::WebKit::InPageSearchManager::clearTextMatches):
      (BlackBerry::WebKit::InPageSearchManager::setActiveMatchAndMarker):
      (BlackBerry::WebKit::InPageSearchManager::frameUnloaded):
      (BlackBerry::WebKit::InPageSearchManager::scopeStringMatches):
      
      Source/WebKit/mac: 
      
      * WebView/WebPDFView.mm:
      (isFrameInRange):
      
      Source/WebKit2: 
      
      * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm:
      (-[WKDOMRange textRects]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155228 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      55f28e5e
  2. 06 Sep, 2013 9 commits
    • bfulgham@apple.com's avatar
      [Windows] StructuredExceptionHandlerSuppressor Causes Bad Interactions with Support Libraries · 9d82db6d
      bfulgham@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120901
      
      Reviewed by Anders Carlsson.
      
      Change from old "crash on any exception" implementation to a new version that leaves normal
      exception handling infrastructure in place for use by support libraries. We check exceptions
      and decide whether to abort or not based on the failure type.
      
      * WebCore.vcxproj/WebCore.vcxproj: Add new implementation files.
      * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
      * platform/graphics/ca/win/LayerChangesFlusher.cpp:
      (WebCore::LayerChangesFlusher::hookCallback): Allocate handler struct on stack.
      * platform/win/StructuredExceptionHandlerSuppressor.cpp: Added.
      (exceptionShouldTerminateProgram): New.
      (exceptionHandler): New.
      (WebCore::StructuredExceptionHandlerSuppressor::StructuredExceptionHandlerSuppressor): Moved
      from header, and updated to add our new exception handler.
      (WebCore::StructuredExceptionHandlerSuppressor::~StructuredExceptionHandlerSuppressor): Moved
      from header.
      * platform/win/StructuredExceptionHandlerSuppressor.h: Move implementation of constructor and
      destructor from header file.
      * platform/win/makesafeseh.asm: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155226 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d82db6d
    • vivek.vg@samsung.com's avatar
      Refactor XMLDocumentParser to defer creation of XMLErrors until error occurs · 5bfdbbf1
      vivek.vg@samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120850
      
      Reviewed by Darin Adler.
      
      XMLErrors is created as soon as XMLDocumentParser is constructed. It may not be required
      for all the valid XML documents. Deferring its creation until an error for the invalid
      XML document.
      
      No new tests as code refactoring.
      
      * xml/parser/XMLDocumentParser.cpp:
      (WebCore::XMLDocumentParser::handleError):
      (WebCore::XMLDocumentParser::insertErrorMessageBlock):
      * xml/parser/XMLDocumentParser.h:
      * xml/parser/XMLDocumentParserLibxml2.cpp:
      (WebCore::XMLDocumentParser::XMLDocumentParser):
      * xml/parser/XMLDocumentParserQt.cpp:
      (WebCore::XMLDocumentParser::XMLDocumentParser):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155224 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5bfdbbf1
    • ddkilzer@apple.com's avatar
      BUILD FIX (r155171): INSTALL_PATH_PREFIX should no longer be used beneath... · 6ade346d
      ddkilzer@apple.com authored
      BUILD FIX (r155171): INSTALL_PATH_PREFIX should no longer be used beneath BUILT_PRODUCTS_DIR in HEADER_SEARCH_PATHS for iOS
      
      * Configurations/Base.xcconfig:
      (HEADER_SEARCH_PATHS): Change
      $(BUILT_PRODUCTS_DIR)/$(INSTALL_PATH_PREFIX)/usr/local/include to
      $(BUILT_PRODUCTS_DIR)/usr/local/include.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155223 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6ade346d
    • fpizlo@apple.com's avatar
      FTL ArithMod Int32Use doesn't check for negative zero correctly · 73bf3390
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120905
      
      Reviewed by Mark Hahnenberg.
      
      * ftl/FTLLowerDFGToLLVM.cpp:
      (JSC::FTL::LowerDFGToLLVM::compileArithMod):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155222 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      73bf3390
    • andersca@apple.com's avatar
      Remove fastNew/fastDelete · 721e0082
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120904
      
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      Call operator delete directly.
      
      * css/CSSSelectorList.cpp:
      (WebCore::CSSSelectorList::adoptSelectorVector):
      
      Source/WTF:
      
      Remove the various variants of fastNew and fastDelete.
      
      * wtf/FastAllocBase.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155221 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      721e0082
    • fpizlo@apple.com's avatar
      FTL ArithNeg Int32Use doesn't check negative zero · d3eab7da
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120900
      
      Reviewed by Mark Hahnenberg.
      
      Source/JavaScriptCore: 
      
      * ftl/FTLLowerDFGToLLVM.cpp:
      (JSC::FTL::LowerDFGToLLVM::compileArithNegate):
      
      LayoutTests: 
      
      * fast/js/regress/script-tests/negative-zero-modulo.js:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155220 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d3eab7da
    • andersca@apple.com's avatar
      Stop using fastNew/fastDelete in JavaScriptCore · f17c511b
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120898
      
      Reviewed by Oliver Hunt.
      
      Source/JavaScriptCore:
      
      Change all the hash table members in ExecState to be OwnPtrs and use
      adoptPtr instead. Also, since none of the hash tables can be null, change their getters
      to return references and propagate the reference types wherever we know that a HashTable can't be null.
      
      * interpreter/CallFrame.h:
      (JSC::ExecState::arrayConstructorTable):
      (JSC::ExecState::arrayPrototypeTable):
      (JSC::ExecState::booleanPrototypeTable):
      (JSC::ExecState::dataViewTable):
      (JSC::ExecState::dateTable):
      (JSC::ExecState::dateConstructorTable):
      (JSC::ExecState::errorPrototypeTable):
      (JSC::ExecState::globalObjectTable):
      (JSC::ExecState::jsonTable):
      (JSC::ExecState::numberConstructorTable):
      (JSC::ExecState::numberPrototypeTable):
      (JSC::ExecState::objectConstructorTable):
      (JSC::ExecState::privateNamePrototypeTable):
      (JSC::ExecState::regExpTable):
      (JSC::ExecState::regExpConstructorTable):
      (JSC::ExecState::regExpPrototypeTable):
      (JSC::ExecState::stringConstructorTable):
      (JSC::ExecState::promisePrototypeTable):
      (JSC::ExecState::promiseConstructorTable):
      (JSC::ExecState::promiseResolverPrototypeTable):
      * runtime/ClassInfo.h:
      (JSC::ClassInfo::propHashTable):
      * runtime/Lookup.h:
      (JSC::getStaticPropertySlot):
      (JSC::getStaticFunctionSlot):
      (JSC::getStaticValueSlot):
      (JSC::lookupPut):
      * runtime/VM.cpp:
      (JSC::VM::VM):
      (JSC::VM::~VM):
      * runtime/VM.h:
      
      Source/WebCore:
      
      Update for changes to JavaScriptCore.
      
      * bindings/js/DOMObjectHashTableMap.h:
      (WebCore::DOMObjectHashTableMap::get):
      * bindings/js/JSDOMBinding.cpp:
      (WebCore::getHashTableForGlobalData):
      * bindings/js/JSDOMBinding.h:
      * bindings/js/JSDOMWindowCustom.cpp:
      (WebCore::JSDOMWindow::put):
      * bindings/js/JSPluginElementFunctions.h:
      (WebCore::pluginElementCustomGetOwnPropertySlot):
      * bindings/js/JSStorageCustom.cpp:
      (WebCore::JSStorage::deleteProperty):
      (WebCore::JSStorage::putDelegate):
      * bindings/scripts/CodeGeneratorJS.pm:
      (hashTableAccessor):
      (prototypeHashTableAccessor):
      (constructorHashTableAccessor):
      (GenerateGetOwnPropertySlotBody):
      (GenerateImplementation):
      (GenerateConstructorHelperMethods):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155219 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f17c511b
    • fpizlo@apple.com's avatar
      The 'failed' file should report collectionName/testName rather than just · 58e70191
      fpizlo@apple.com authored
      testName.
      
      Rubber stamped by Mark Hahnenberg.
      
      * Scripts/run-jsc-stress-tests:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155218 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      58e70191
    • akling@apple.com's avatar
      Include Frame.h in fewer places. · 4d3b9899
      akling@apple.com authored
      <https://webkit.org/b/120868>
      
      Reviewed by Anders Carlsson.
      
      - Move JSMainThreadExecState::instrumentFunctionCall() to a separate header.
        This avoids including InspectorInstrumentation.h from JSMainThreadExecState.h
        which caused all JS and Objective-C bindings to depend on Frame.h
      
      - Out-of-line the three methods on FrameView that were operating on Frames.
        Most of the call sites were in FrameView.cpp so they will still get inlined.
      
      - Removed GenericBinding.h, nothing was using it anyway.
      
      After this, touching Frame.h and doing a (debug) rebuild goes from 9m30 to 3m30
      on my laptop.
      
      * GNUmakefile.list.am:
      * WebCore.exp.in:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/generic/GenericBinding.h: Removed.
      * bindings/js/JSCallbackData.cpp:
      * bindings/js/JSEventListener.cpp:
      * bindings/js/JSMainThreadExecState.h:
      * bindings/js/JSMainThreadExecStateInstrumentation.h: Added.
      (WebCore::JSMainThreadExecState::instrumentFunctionCall):
      * bindings/js/JSMutationCallback.cpp:
      * bindings/js/ScheduledAction.cpp:
      * css/DeprecatedStyleBuilder.cpp:
      * css/ElementRuleCollector.cpp:
      * css/MediaQueryEvaluator.cpp:
      * css/SelectorChecker.h:
      * dom/StyledElement.cpp:
      * html/HTMLPlugInImageElement.cpp:
      * inspector/InspectorPageAgent.h:
      * inspector/NetworkResourcesData.h:
      * inspector/PageRuntimeAgent.cpp:
      * loader/cache/CachedImage.cpp:
      * page/FrameView.cpp:
      (WebCore::FrameView::renderView):
      (WebCore::FrameView::mapFromLayoutToCSSUnits):
      (WebCore::FrameView::mapFromCSSToLayoutUnits):
      * page/FrameView.h:
      * page/TouchAdjustment.cpp:
      * rendering/RenderBoxModelObject.cpp:
      * rendering/RenderLayer.cpp:
      * rendering/RenderLayerCompositor.h:
      * rendering/RenderText.cpp:
      * svg/graphics/SVGImage.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155217 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4d3b9899