1. 11 Oct, 2013 28 commits
    • akling@apple.com's avatar
      Pass VM instead of ExecState to JSGenericTypedArrayViewPrototype. · bcb2e852
      akling@apple.com authored
      <https://webkit.org/b/122632>
      
      Reviewed by Sam Weinig.
      
      This code was only using the ExecState to find the VM.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157301 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bcb2e852
    • darin@apple.com's avatar
      Do a bit of optimization and cleanup in the HTMLElement class · d8db0877
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122640
      
      Reviewed by Andreas Kling.
      
      * html/HTMLElement.cpp:
      (WebCore::unicodeBidiAttributeForDirAuto): Take a reference.
      (WebCore::HTMLElement::collectStyleForPresentationAttribute): Pass one.
      (WebCore::mergeWithNextTextNode): Take a reference to a Text node instead
      of a PassRefPtr to a Node. Also removed unnecessary check of parentNode.
      Also update to new calling convention for mergeWithNextTextNode.
      (WebCore::HTMLElement::setOuterHTML): Use parentElement instead of
      parentNode, since Antti says that's the future, and either will work here.
      Also use nullptr.
      (WebCore::HTMLElement::textToFragment): Fix indentation and use nullptr.
      (WebCore::HTMLElement::setOuterText): Use a RefPtr for the parent here,
      since otherwise there is no guarantee it survives. Also use nullptr and
      update to new calling convention for mergeWithNextTextNode.
      (WebCore::HTMLElement::insertAdjacent): Use nullptr.
      (WebCore::HTMLElement::insertAdjacentElement): Use nullptr.
      (WebCore::contextElementForInsertion): Use nullptr.
      (WebCore::HTMLElement::contentEditable): Use ASCIILiteral.
      (WebCore::HTMLElement::setContentEditable): Use AtomicString::ConstructFromLiteral.
      (WebCore::HTMLElement::draggable): Use fastGetAttribute.
      (WebCore::HTMLElement::setDraggable): Use AtomicString::ConstructFromLiteral.
      (WebCore::HTMLElement::setSpellcheck): Use AtomicString::ConstructFromLiteral.
      (WebCore::HTMLElement::click): Use nullptr.
      (WebCore::HTMLElement::accessKeyAction): Use nullptr.
      (WebCore::HTMLElement::title): Use fastGetAttribute.
      (WebCore::HTMLElement::translateAttributeMode): Use fastGetAttribute, isNull,
      and isEmpty.
      (WebCore::HTMLElement::translate): Use parentElement and toHTMLElement.
      Use early-continue style instead of nesting the whole loop body inside an if.
      (WebCore::setHasDirAutoFlagRecursively): Use nullptr.
      (WebCore::HTMLElement::hasDirectionAuto): Use isNull.
      (WebCore::HTMLElement::directionality): Use nullptr.
      (WebCore::HTMLElement::adjustDirectionalityIfNeededAfterChildrenChanged): Use nullptr.
      (WebCore::HTMLElement::addHTMLLengthToStyle): Use longer variable names.
      
      * html/HTMLTableCellElement.cpp:
      (WebCore::HTMLTableCellElement::abbr): Use fastGetAttribute.
      (WebCore::HTMLTableCellElement::axis): Ditto.
      (WebCore::HTMLTableCellElement::headers): Ditto.
      (WebCore::HTMLTableCellElement::scope): Ditto.
      * html/HTMLTableColElement.cpp:
      (WebCore::HTMLTableColElement::width): Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157300 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d8db0877
    • dino@apple.com's avatar
      Source/WebCore: Use after free in WebCore::DisplayRefreshMonitorClient::fireDisplayRefreshIfNeeded · 0717e0de
      dino@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121033
      
      Patch by Darin Adler <darin@apple.com> on 2013-10-10
      Reviewed by Dean Jackson.
      
      For safe iteration, use a set rather than a vector, and remove the clients from
      the set if they are removed during iteration.
      
      Test: fast/animation/request-animation-frame-remove-client.html
      
      * platform/graphics/DisplayRefreshMonitor.cpp:
      (WebCore::DisplayRefreshMonitor::DisplayRefreshMonitor): Initialize the
      m_clientsToBeNotified pointer to null.
      (WebCore::DisplayRefreshMonitor::removeClient): If there is a m_clientsToBeNotified
      set, remove from it as well as the real m_clients set.
      (WebCore::DisplayRefreshMonitor::displayDidRefresh): Use a HashSet instead of a
      vector for the copy of the clients set we iterate.
      
      * platform/graphics/DisplayRefreshMonitor.h: Moved some of the BlackBerry-specific
      part of this out of the header. Added a new HashSet pointer, m_clientsToBeNotified,
      to be used to remove clients during the notification process. Also added a FIXME.
      
      * platform/graphics/blackberry/DisplayRefreshMonitorBlackBerry.cpp: Moved the
      DisplayAnimationClient class in here.
      
      LayoutTests: Use after free in WebCore::DisplayRefreshMonitorClient::fireDisplayRefreshIfNeeded
      http://webkit.org/b/121033
      
      Update test to indicate it no longer crashes.
      
      * TestExpectations: Mark test as passing.
      * fast/animation/request-animation-frame-remove-client-expected.txt:
      * fast/animation/request-animation-frame-remove-client.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157299 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0717e0de
    • dino@apple.com's avatar
      Use after free in WebCore::DisplayRefreshMonitorClient::fireDisplayRefreshIfNeeded · 90e5f745
      dino@apple.com authored
      http://webkit.org/b/121033
      
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      Add an ASSERT to detect if an animation client will be removed
      during the callback dispatch.
      
      Test: fast/animation/request-animation-frame-remove-client.html
      
      * platform/graphics/DisplayRefreshMonitor.cpp:
      (WebCore::DisplayRefreshMonitor::displayDidRefresh):
      
      LayoutTests:
      
      Test that assertion fires if you try to remove potential client while in a
      animation dispatch.
      
      * TestExpectations: Mark test as crashing.
      * fast/animation/request-animation-frame-remove-client-expected.txt: Added.
      * fast/animation/request-animation-frame-remove-client.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157298 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      90e5f745
    • akling@apple.com's avatar
      Make RenderLayer not arena-allocated. · 11154163
      akling@apple.com authored
      <https://webkit.org/b/87523>
      
      Reviewed by Antti Koivisto.
      
      Let RenderLayerModelObject store its RenderLayer in a unique_ptr.
      Layers are relatively low-volume objects and this looks neutral
      on our performance tests.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157297 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      11154163
    • zalan@apple.com's avatar
      REGRESSION (r155607): Javascript site does not load visually on panerabread.com · d07b231f
      zalan@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122461
      
      Reviewed by Simon Fraser.
      
      Do not modify the composited layer backing's internal layer structure directly
      when the clipping behaviour changes.
      
      When we directly create/destroy RenderLayerBacking::m_ancestorClippingLayer to
      reflect the new clipping state, other, depending layers need updating. In order to
      not to corrupt the internal hierarchy, mark the compositing layers dirty and let
      the normal updating mechanism take care of creating/destroying the ancestor layers.
      
      Source/WebCore:
      
      Existing tests are extended.
      
      * rendering/RenderLayer.cpp:
      (WebCore::RenderLayer::checkIfDescendantClippingContextNeedsUpdate):
      (WebCore::RenderLayer::styleChanged):
      * rendering/RenderLayer.h:
      * rendering/RenderLayerBacking.h:
      
      LayoutTests:
      
      * compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants-expected.txt:
      * compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants.html:
      * compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants2-expected.txt:
      * compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants2.html:
      * platform/mac/compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants-expected.txt:
      * platform/mac/compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants2-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157296 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d07b231f
    • commit-queue@webkit.org's avatar
      [sh4] Fix build after r157209. · df750b8d
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=122643
      
      Patch by Julien Brianceau <jbriance@cisco.com> on 2013-10-11
      Reviewed by Ryosuke Niwa.
      
      * assembler/MacroAssemblerSH4.h: Add framePointerRegister declaration.
      * assembler/SH4Assembler.h: Add firstRegister() declaration.
      (JSC::SH4Assembler::firstRegister):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157295 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      df750b8d
    • rniwa@webkit.org's avatar
      Make EventPath private to EventDispatcher.cpp · 3fc4373e
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=122638
      
      Reviewed by Darin Adler.
      
      Move the declaration of EventPath into EventDispatcher.cpp since EventPath is only used in this file.
      Also make EventDispatcher a namespace since it is never instantiated since r157250.
      
      * dom/EventDispatcher.cpp:
      (WebCore::EventPath::isEmpty):
      (WebCore::EventPath::size):
      (WebCore::EventPath::contextAt):
      (WebCore::EventPath::lastContextIfExists):
      * dom/EventDispatcher.h:
      * inspector/InspectorInstrumentation.h:
      (WebCore::InspectorInstrumentation::willDispatchEvent):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157294 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3fc4373e
    • fpizlo@apple.com's avatar
      FTL shouldn't pass i1's into llvm.webkit.stackmap's · bee20f54
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122629
      <rdar://problem/15203037>
      
      Reviewed by Sam Weinig and Nadav Rotem.
              
      LLVM's stackmap support requires that we only pass operands with legal types (i.e. types
      that are hardware-representable). i1, which the FTL previously used for Booleans, is not
      legal.
              
      We have two options: either add support in LLVM to legalize stackmap operands, or add
      support to the FTL to legalize stackmap operands. It's easier to fix this in FTL, and
      that's what this patch does.
      
      * ftl/FTLLowerDFGToLLVM.cpp:
      (JSC::FTL::LowerDFGToLLVM::addExitArgumentForNode):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157293 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bee20f54
    • commit-queue@webkit.org's avatar
      contentEditable with "position:relative" paragraphs is buggy · c8932f89
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=33950
      
      Patch by Santosh Mahto <santosh.ma@samsung.com> on 2013-10-10
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      When paragraph is positioned(relative/absolute/fixed) then deleting
      that paragraph cause wrong merging of other(below) paragraphs. This is
      happening because positioned element is treated as special element and
      on deletion complete paragraph element is removed. The ranges become
      paragraph. This issue happens when all the content of special element
      are deleted. So the merging of paragraph is avoided in this scenario.
      
      Test: editing/deleting/deleting-relative-positioned-special-element.html
      
      * editing/DeleteSelectionCommand.cpp:
      (WebCore::DeleteSelectionCommand::initializeStartEnd):Avoid merging
      block when special candidate are included in deletion range
      
      LayoutTests:
      
      LayoutTests:
      
      Added a testcase to verify that when paragraph is relative positioned
      then deleting the all content of paragraph should not incorrectly collapse the
      others(below) paragraphs.
      And Rebaseline the test expectation.
      
      * editing/deleting/5546763-expected.txt: Updated.
      * editing/deleting/deleting-relative-positioned-special-element-expected.txt: Added.
      * editing/deleting/deleting-relative-positioned-special-element.html: Added.
      * editing/unsupported-content/table-delete-001.html: Adjusted to dump
      as markup.
      * editing/unsupported-content/table-delete-003.html: Adjusted to dump
      as markup.
      
      Below tests had wrong cursor position previously now corrected and
      both expected file has been changed to markup dump.
      * platform/mac/editing/unsupported-content/table-delete-001-expected.txt:
      * platform/mac/editing/unsupported-content/table-delete-003-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157292 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c8932f89
    • ap@apple.com's avatar
      Layout Test fast/css/font-face-download-error.html is flaky · c8ea5d14
      ap@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122636
      
      Reviewed by Darin Adler.
      
      * fast/css/font-face-download-error-expected.txt: TEST COMPLETE is now printed
      after the test is complete.
      
      * fast/css/font-face-download-error.html: Changed to properly wait for fonts to load.
      Also, updated to use a proper async test implementation.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157291 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c8ea5d14
    • commit-queue@webkit.org's avatar
      Track controls show metadata and chapter tracks · e9e9f05d
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=122468
      
      Patch by Brendan Long <b.long@cablelabs.com> on 2013-10-10
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      Test: media/video-controls-captions-trackmenu-only-captions-descriptions-and-subtitles.html
      
      * page/CaptionUserPreferences.cpp:
      (WebCore::CaptionUserPreferences::sortedTrackListForMenu): Only show captions, descriptions and subtitles in the track controls.
      
      LayoutTests:
      
      Add a test to make sure we don't show metadata and chapter tracks in the track controls.
      
      * media/video-controls-captions-trackmenu-only-captions-descriptions-and-subtitles-expected.txt: Added.
      * media/video-controls-captions-trackmenu-only-captions-descriptions-and-subtitles.html: Added.
      * platform/efl/TestExpectations: Skip, uses caption button, not track menu.
      * platform/mac/TestExpectations: Skip, track menu tests all fail on Mac.
      * platform/win/TestExpectations: Same.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157290 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e9e9f05d
    • bw80.lee@samsung.com's avatar
      [EFL][WK2] Separate dispatch context from WorkQueue. · c508962f
      bw80.lee@samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115332
      
      Reviewed by Anders Carlsson.
      
      Refactor WorkQueue to prevent dangling workqueue access.
      
      Previously, the WorkQueue class had all context about dispatch.
      WorkQueue had dispatch item queue and socket event handler,
      and those were accessed on the work queue thread through WorkQueue
      instance.
      
      With reference countable WorkQueue concept, this implementation
      complicates handling workqueue ref-counting and causes dangling
      workqueue access problem.
      
      To make it easy to handle WorkQueue reference count and to prevent
      dangling access problem, DispatchQueue class is added to handle
      dispatch tasks, and the WorkQueue instance and DispatchQueue thread
      will have the reference count of the DispatchQueue instance to prevent
      dangling access.
      
      * Platform/WorkQueue.h:
      * Platform/efl/DispatchQueueEfl.cpp: Added.
      (DispatchQueue::ThreadContext::start):
      (DispatchQueue::ThreadContext::ThreadContext):
      (DispatchQueue::ThreadContext::function):
      (DispatchQueue::create):
      (DispatchQueue::DispatchQueue):
      (DispatchQueue::~DispatchQueue):
      (DispatchQueue::dispatch):
      (DispatchQueue::stopThread):
      (DispatchQueue::setSocketEventHandler):
      (DispatchQueue::clearSocketEventHandler):
      (DispatchQueue::performWork):
      (DispatchQueue::performTimerWork):
      (DispatchQueue::performFileDescriptorWork):
      (DispatchQueue::insertTimerWorkItem):
      (DispatchQueue::dispatchQueueThread):
      (DispatchQueue::wakeUpThread):
      (DispatchQueue::getNextTimeOut):
      * Platform/efl/DispatchQueueEfl.h: Added.
      * Platform/efl/DispatchQueueWorkItemEfl.h: Added.
      (WorkItem::create):
      (WorkItem::dispatch):
      (WorkItem::WorkItem):
      (TimerWorkItem::create):
      (TimerWorkItem::expirationTimeSeconds):
      (TimerWorkItem::hasExpired):
      (TimerWorkItem::TimerWorkItem):
      * Platform/efl/WorkQueueEfl.cpp:
      (WorkQueue::platformInitialize):
      (WorkQueue::platformInvalidate):
      (WorkQueue::registerSocketEventHandler):
      (WorkQueue::unregisterSocketEventHandler):
      (WorkQueue::dispatch):
      (WorkQueue::dispatchAfterDelay):
      * PlatformEfl.cmake:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157289 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c508962f
    • rniwa@webkit.org's avatar
      EventContext should be used only in EventDispatcher.cpp · e818fd71
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=122631
      
      Reviewed by Anders Carlsson.
      
      Merged WindowEventContext into EventDispatcher. Moved the code to avoid dispatching load event on
      window into dispatchEventInDOM so that WindowEventContext's constructor doesn't need Event.
      
      Also replaced DOMWindow, Node, and EventPath arguments to InspectorInstrumentation::willDispatchEvent
      by a single boolean indicating whether window, the origin, or the event path has an event listener.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * dom/DOMAllInOne.cpp:
      * dom/EventDispatcher.cpp:
      (WebCore::WindowEventContext::window): Moved from WindowEventContext.
      (WebCore::WindowEventContext::target): Ditto.
      (WebCore::WindowEventContext::WindowEventContext): Ditto; removed the code to avoid dispatching load
      event on window since that's checked in dispatchEventInDOM now.
      (WebCore::WindowEventContext::handleLocalEvents): Ditto.
      (WebCore::dispatchEventInDOM): Avoid calling handleLocalEvent on a load event with WindowEventContext.
      (WebCore::EventDispatcher::dispatchEvent): Pass a boolean to indicate whether window, the origin, or
      the event path contains any event listener to InspectorInstrumentation::willDispatchEvent to hide
      EventPath from the inspector code.
      * dom/EventDispatcher.h:
      * dom/Node.cpp:
      * dom/Node.h:
      * dom/WindowEventContext.cpp: Removed.
      * dom/WindowEventContext.h: Removed.
      * inspector/InspectorDOMAgent.cpp:
      * inspector/InspectorInstrumentation.cpp:
      (WebCore::InspectorInstrumentation::willDispatchEventImpl):
      * inspector/InspectorInstrumentation.h:
      (WebCore::InspectorInstrumentation::willDispatchEvent):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157288 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e818fd71
    • darin@apple.com's avatar
      REGRESSION (r157205?): Leaks in XPath · bf3a9b52
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122609
      
      Reviewed by Andreas Kling.
      
      * xml/XPathGrammar.y: Fixed warnings by adding missing "$$ = $1" to various rules.
      Added local unique_ptr for NodeTest and ArgumentList in three rules, so they
      won't be leaked.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157287 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bf3a9b52
    • gyuyoung.kim@samsung.com's avatar
      Add toSVGColor|Paint() to cleanup static_cast<>, and use it · 44dab3e8
      gyuyoung.kim@samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122630
      
      Reviewed by Andreas Kling.
      
      SVGColor and SVGPaint can't use CSS_VALUE_TYPE_CASTS(), this cl adds
      toSVGColor() and toSVGPaint() manually. Those functions will help to
      detect bad type cast.
      
      * css/CSSValue.cpp:
      (WebCore::CSSValue::cssText):
      (WebCore::CSSValue::destroy):
      (WebCore::CSSValue::cloneForCSSOM):
      * css/SVGCSSStyleSelector.cpp:
      (WebCore::StyleResolver::applySVGProperty):
      * svg/SVGColor.h:
      (WebCore::toSVGColor):
      * svg/SVGPaint.h:
      (WebCore::toSVGPaint):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157286 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      44dab3e8
    • akling@apple.com's avatar
      Kill WebCore::BindingState. · ccaffe28
      akling@apple.com authored
      <https://webkit.org/b/122606>
      
      Reviewed by Darin Adler.
      
      Just use JSC::ExecState directly instead.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157285 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ccaffe28
    • kov@webkit.org's avatar
      webkit-patch failure-reason has a quite low limit for 'too many failures' · 22939c98
      kov@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=122556
      
      Patch by Gustavo Noronha Silva <gustavo.noronha@collabora.com> on 2013-10-10
      Reviewed by Darin Adler.
      
      * Scripts/webkitpy/tool/commands/queries.py:
      (FailureReason._explain_failures_for_builder): adjust the number of too many failures
      to match what the layout test runners use these days.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157284 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      22939c98
    • kov@webkit.org's avatar
      webkit-patch failure-reason should allow specifying failures one is interested in · c8eda59a
      kov@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=122554
      
      Patch by Gustavo Noronha Silva <gustavo.noronha@collabora.com> on 2013-10-10
      Reviewed by Darin Adler.
      
      * Scripts/webkitpy/tool/commands/queries.py:
      (FailureReason):
      (FailureReason._explain_failures_for_builder): keep track of explained failures and drop out of the
      loop if the ones we're interested in been explained.
      (FailureReason._done_explaining): check the failures we're interested in have been explained, if any.
      (FailureReason.execute): initialize failures to explain and the explained set.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157283 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c8eda59a
    • rniwa@webkit.org's avatar
      Remove EventRetargeter.h/cpp · d3054072
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=122625
      
      Reviewed by Anders Carlsson.
      
      Merged the remaining contents of EventRetargeter.h and EventRetargter.cpp into EventDispatcher.cpp.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Modules/indieui/UIRequestEvent.cpp:
      * WebCore.xcodeproj/project.pbxproj:
      * dom/DOMAllInOne.cpp:
      * dom/Event.cpp:
      * dom/Event.h:
      * dom/EventDispatcher.cpp:
      (WebCore::eventTargetRespectingTargetRules):
      (WebCore::shouldEventCrossShadowBoundary):
      (WebCore::nodeOrHostIfPseudoElement):
      (WebCore::EventPath::EventPath):
      (WebCore::buildRelatedNodeMap):
      (WebCore::addRelatedNodeForUnmapedTreeScopes):
      (WebCore::calculateAdjustedNodes):
      (WebCore::updateTouchListsInEventPath):
      (WebCore::EventPath::updateTouchLists):
      (WebCore::EventPath::setRelatedTarget):
      * dom/EventRetargeter.cpp: Removed.
      * dom/EventRetargeter.h: Removed.
      * dom/FocusEvent.cpp:
      * dom/GestureEvent.h:
      * dom/KeyboardEvent.h:
      * dom/MouseEvent.cpp:
      * dom/MouseEvent.h:
      * dom/TouchEvent.cpp:
      * dom/UIEvent.cpp:
      * dom/WheelEvent.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157282 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d3054072
    • rniwa@webkit.org's avatar
      Windows build fix attempt. · 79fbf0ac
      rniwa@webkit.org authored
      * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157281 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      79fbf0ac
    • commit-queue@webkit.org's avatar
      Making the base implementation of isAudioStreamSource, in MediaStreamSource,... · 35c3cf65
      commit-queue@webkit.org authored
      Making the base implementation of isAudioStreamSource, in MediaStreamSource, return the correct value
      https://bugs.webkit.org/show_bug.cgi?id=122612
      
      Patch by Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> on 2013-10-10
      Reviewed by Jer Noble.
      
      There is no reason for this implementation, in the base class, to always return false
      if we already have the information about the type of the source.
      
      No new tests needed.
      
      * Modules/webaudio/MediaStreamAudioSource.h:
      * platform/mediastream/MediaStreamSource.h:
      (WebCore::MediaStreamSource::isAudioStreamSource):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157280 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      35c3cf65
    • simon.fraser@apple.com's avatar
      Always force layout before flushing compositing layers · d3873554
      simon.fraser@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122626
      
      Reviewed by Tim Horton.
      
      [m_webView _flushCompositingChanges] only actually flushes compositing
      layers if the FrameView does not need layout (FrameView::flushCompositingStateForThisFrame()
      returns in this case). In this situation, flushLayers() does actually try
      to force a layout, but on some platforms it's possible for something else
      to dirty layout before the runloop observer fires again. This can result
      in flushLayers() never actually managing to flush, which stalls visual
      updates.
      
      Fix by always calling -viewWillDraw (which updates layout) before flushing
      layers. This now matches WebKit2 behavior.
      
      * WebView/WebView.mm:
      (LayerFlushController::flushLayers):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157279 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d3873554
    • timothy@apple.com's avatar
      Web Inspector: Remove the old front-end from WebKit. · d3c5d791
      timothy@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122295
      
      * inspector/front-end/AceTextEditor.js: Removed.
      * inspector/front-end/AdvancedSearchController.js: Removed.
      * inspector/front-end/ApplicationCacheItemsView.js: Removed.
      * inspector/front-end/ApplicationCacheModel.js: Removed.
      * inspector/front-end/AuditCategories.js: Removed.
      * inspector/front-end/AuditController.js: Removed.
      * inspector/front-end/AuditFormatters.js: Removed.
      * inspector/front-end/AuditLauncherView.js: Removed.
      * inspector/front-end/AuditResultView.js: Removed.
      * inspector/front-end/AuditRules.js: Removed.
      * inspector/front-end/AuditsPanel.js: Removed.
      * inspector/front-end/BottomUpProfileDataGridTree.js: Removed.
      * inspector/front-end/BreakpointManager.js: Removed.
      * inspector/front-end/BreakpointsSidebarPane.js: Removed.
      * inspector/front-end/CPUProfileView.js: Removed.
      * inspector/front-end/CSSMetadata.js: Removed.
      * inspector/front-end/CSSNamedFlowCollectionsView.js: Removed.
      * inspector/front-end/CSSNamedFlowView.js: Removed.
      * inspector/front-end/CSSSelectorProfileView.js: Removed.
      * inspector/front-end/CSSStyleModel.js: Removed.
      * inspector/front-end/CallStackSidebarPane.js: Removed.
      * inspector/front-end/CanvasProfileView.js: Removed.
      * inspector/front-end/Checkbox.js: Removed.
      * inspector/front-end/CodeMirrorTextEditor.js: Removed.
      * inspector/front-end/Color.js: Removed.
      * inspector/front-end/CompilerScriptMapping.js: Removed.
      * inspector/front-end/ConsoleMessage.js: Removed.
      * inspector/front-end/ConsoleModel.js: Removed.
      * inspector/front-end/ConsolePanel.js: Removed.
      * inspector/front-end/ConsoleView.js: Removed.
      * inspector/front-end/ContentProvider.js: Removed.
      * inspector/front-end/ContentProviderBasedProjectDelegate.js: Removed.
      * inspector/front-end/ContentProviders.js: Removed.
      * inspector/front-end/ContextMenu.js: Removed.
      * inspector/front-end/CookieItemsView.js: Removed.
      * inspector/front-end/CookieParser.js: Removed.
      * inspector/front-end/CookiesTable.js: Removed.
      * inspector/front-end/DOMAgent.js: Removed.
      * inspector/front-end/DOMBreakpointsSidebarPane.js: Removed.
      * inspector/front-end/DOMCountersGraph.js: Removed.
      * inspector/front-end/DOMExtension.js: Removed.
      * inspector/front-end/DOMPresentationUtils.js: Removed.
      * inspector/front-end/DOMStorage.js: Removed.
      * inspector/front-end/DOMStorageItemsView.js: Removed.
      * inspector/front-end/DOMSyntaxHighlighter.js: Removed.
      * inspector/front-end/DataGrid.js: Removed.
      * inspector/front-end/Database.js: Removed.
      * inspector/front-end/DatabaseQueryView.js: Removed.
      * inspector/front-end/DatabaseTableView.js: Removed.
      * inspector/front-end/DebuggerModel.js: Removed.
      * inspector/front-end/DebuggerScriptMapping.js: Removed.
      * inspector/front-end/DefaultScriptMapping.js: Removed.
      * inspector/front-end/DefaultTextEditor.js: Removed.
      * inspector/front-end/Dialog.js: Removed.
      * inspector/front-end/DirectoryContentView.js: Removed.
      * inspector/front-end/DockController.js: Removed.
      * inspector/front-end/Drawer.js: Removed.
      * inspector/front-end/ElementsPanel.js: Removed.
      * inspector/front-end/ElementsPanelDescriptor.js: Removed.
      * inspector/front-end/ElementsTreeOutline.js: Removed.
      * inspector/front-end/EmptyView.js: Removed.
      * inspector/front-end/EventListenersSidebarPane.js: Removed.
      * inspector/front-end/ExtensionAPI.js: Removed.
      * inspector/front-end/ExtensionAuditCategory.js: Removed.
      * inspector/front-end/ExtensionPanel.js: Removed.
      * inspector/front-end/ExtensionRegistryStub.js: Removed.
      * inspector/front-end/ExtensionServer.js: Removed.
      * inspector/front-end/ExtensionView.js: Removed.
      * inspector/front-end/FileContentView.js: Removed.
      * inspector/front-end/FileManager.js: Removed.
      * inspector/front-end/FileMapping.js: Removed.
      * inspector/front-end/FileSystemMapping.js: Removed.
      * inspector/front-end/FileSystemModel.js: Removed.
      * inspector/front-end/FileSystemProjectDelegate.js: Removed.
      * inspector/front-end/FileSystemView.js: Removed.
      * inspector/front-end/FileUtils.js: Removed.
      * inspector/front-end/FilteredItemSelectionDialog.js: Removed.
      * inspector/front-end/FlameChart.js: Removed.
      * inspector/front-end/FontView.js: Removed.
      * inspector/front-end/GoToLineDialog.js: Removed.
      * inspector/front-end/HAREntry.js: Removed.
      * inspector/front-end/HandlerRegistry.js: Removed.
      * inspector/front-end/HeapSnapshot.js: Removed.
      * inspector/front-end/HeapSnapshotDataGrids.js: Removed.
      * inspector/front-end/HeapSnapshotGridNodes.js: Removed.
      * inspector/front-end/HeapSnapshotLoader.js: Removed.
      * inspector/front-end/HeapSnapshotProxy.js: Removed.
      * inspector/front-end/HeapSnapshotView.js: Removed.
      * inspector/front-end/HeapSnapshotWorker.js: Removed.
      * inspector/front-end/HeapSnapshotWorkerDispatcher.js: Removed.
      * inspector/front-end/HelpScreen.js: Removed.
      * inspector/front-end/ImageView.js: Removed.
      * inspector/front-end/Images/addIcon.png: Removed.
      * inspector/front-end/Images/applicationCache.png: Removed.
      * inspector/front-end/Images/back.png: Removed.
      * inspector/front-end/Images/breakpointBorder.png: Removed.
      * inspector/front-end/Images/breakpointConditionalBorder.png: Removed.
      * inspector/front-end/Images/breakpointConditionalCounterBorder.png: Removed.
      * inspector/front-end/Images/breakpointCounterBorder.png: Removed.
      * inspector/front-end/Images/checker.png: Removed.
      * inspector/front-end/Images/closeButtons.png: Removed.
      * inspector/front-end/Images/cookie.png: Removed.
      * inspector/front-end/Images/database.png: Removed.
      * inspector/front-end/Images/databaseTable.png: Removed.
      * inspector/front-end/Images/debuggerContinue.png: Removed.
      * inspector/front-end/Images/debuggerPause.png: Removed.
      * inspector/front-end/Images/debuggerStepInto.png: Removed.
      * inspector/front-end/Images/debuggerStepOut.png: Removed.
      * inspector/front-end/Images/debuggerStepOver.png: Removed.
      * inspector/front-end/Images/deleteIcon.png: Removed.
      * inspector/front-end/Images/disclosureTriangleSmallDown.png: Removed.
      * inspector/front-end/Images/disclosureTriangleSmallDownBlack.png: Removed.
      * inspector/front-end/Images/disclosureTriangleSmallDownWhite.png: Removed.
      * inspector/front-end/Images/disclosureTriangleSmallRight.png: Removed.
      * inspector/front-end/Images/disclosureTriangleSmallRightBlack.png: Removed.
      * inspector/front-end/Images/disclosureTriangleSmallRightDown.png: Removed.
      * inspector/front-end/Images/disclosureTriangleSmallRightDownBlack.png: Removed.
      * inspector/front-end/Images/disclosureTriangleSmallRightDownWhite.png: Removed.
      * inspector/front-end/Images/disclosureTriangleSmallRightWhite.png: Removed.
      * inspector/front-end/Images/domain.png: Removed.
      * inspector/front-end/Images/errorIcon.png: Removed.
      * inspector/front-end/Images/errorMediumIcon.png: Removed.
      * inspector/front-end/Images/errorRedDot.png: Removed.
      * inspector/front-end/Images/fileSystem.png: Removed.
      * inspector/front-end/Images/forward.png: Removed.
      * inspector/front-end/Images/frame.png: Removed.
      * inspector/front-end/Images/glossyHeader.png: Removed.
      * inspector/front-end/Images/glossyHeaderPressed.png: Removed.
      * inspector/front-end/Images/glossyHeaderSelected.png: Removed.
      * inspector/front-end/Images/glossyHeaderSelectedPressed.png: Removed.
      * inspector/front-end/Images/goArrow.png: Removed.
      * inspector/front-end/Images/graphLabelCalloutLeft.png: Removed.
      * inspector/front-end/Images/graphLabelCalloutRight.png: Removed.
      * inspector/front-end/Images/indexedDB.png: Removed.
      * inspector/front-end/Images/indexedDBIndex.png: Removed.
      * inspector/front-end/Images/indexedDBObjectStore.png: Removed.
      * inspector/front-end/Images/localStorage.png: Removed.
      * inspector/front-end/Images/namedFlowOverflow.png: Removed.
      * inspector/front-end/Images/navigatorShowHideButton.png: Removed.
      * inspector/front-end/Images/paneAddButtons.png: Removed.
      * inspector/front-end/Images/paneBottomGrow.png: Removed.
      * inspector/front-end/Images/paneBottomGrowActive.png: Removed.
      * inspector/front-end/Images/paneElementStateButtons.png: Removed.
      * inspector/front-end/Images/paneFilterButtons.png: Removed.
      * inspector/front-end/Images/paneGrowHandleLine.png: Removed.
      * inspector/front-end/Images/paneRefreshButtons.png: Removed.
      * inspector/front-end/Images/paneSettingsButtons.png: Removed.
      * inspector/front-end/Images/popoverArrows.png: Removed.
      * inspector/front-end/Images/popoverBackground.png: Removed.
      * inspector/front-end/Images/profileGroupIcon.png: Removed.
      * inspector/front-end/Images/profileIcon.png: Removed.
      * inspector/front-end/Images/profileSmallIcon.png: Removed.
      * inspector/front-end/Images/profilesSilhouette.png: Removed.
      * inspector/front-end/Images/programCounterBorder.png: Removed.
      * inspector/front-end/Images/radioDot.png: Removed.
      * inspector/front-end/Images/regionEmpty.png: Removed.
      * inspector/front-end/Images/regionFit.png: Removed.
      * inspector/front-end/Images/regionOverset.png: Removed.
      * inspector/front-end/Images/resourceCSSIcon.png: Removed.
      * inspector/front-end/Images/resourceDocumentIcon.png: Removed.
      * inspector/front-end/Images/resourceDocumentIconSmall.png: Removed.
      * inspector/front-end/Images/resourceJSIcon.png: Removed.
      * inspector/front-end/Images/resourcePlainIcon.png: Removed.
      * inspector/front-end/Images/resourcePlainIconSmall.png: Removed.
      * inspector/front-end/Images/resourcesSizeGraphIcon.png: Removed.
      * inspector/front-end/Images/resourcesTimeGraphIcon.png: Removed.
      * inspector/front-end/Images/scriptsSilhouette.png: Removed.
      * inspector/front-end/Images/searchNext.png: Removed.
      * inspector/front-end/Images/searchPrev.png: Removed.
      * inspector/front-end/Images/searchSmallBlue.png: Removed.
      * inspector/front-end/Images/searchSmallBrightBlue.png: Removed.
      * inspector/front-end/Images/searchSmallGray.png: Removed.
      * inspector/front-end/Images/searchSmallWhite.png: Removed.
      * inspector/front-end/Images/segment.png: Removed.
      * inspector/front-end/Images/segmentEnd.png: Removed.
      * inspector/front-end/Images/segmentHover.png: Removed.
      * inspector/front-end/Images/segmentHoverEnd.png: Removed.
      * inspector/front-end/Images/segmentSelected.png: Removed.
      * inspector/front-end/Images/segmentSelectedEnd.png: Removed.
      * inspector/front-end/Images/sessionStorage.png: Removed.
      * inspector/front-end/Images/spinner.gif: Removed.
      * inspector/front-end/Images/spinnerActive.gif: Removed.
      * inspector/front-end/Images/spinnerActiveSelected.gif: Removed.
      * inspector/front-end/Images/spinnerInactive.gif: Removed.
      * inspector/front-end/Images/spinnerInactiveSelected.gif: Removed.
      * inspector/front-end/Images/splitviewDimple.png: Removed.
      * inspector/front-end/Images/splitviewDividerBackground.png: Removed.
      * inspector/front-end/Images/statusbarButtonGlyphs.png: Removed.
      * inspector/front-end/Images/statusbarButtonGlyphs2x.png: Removed.
      * inspector/front-end/Images/statusbarResizerHorizontal.png: Removed.
      * inspector/front-end/Images/statusbarResizerVertical.png: Removed.
      * inspector/front-end/Images/successGreenDot.png: Removed.
      * inspector/front-end/Images/thumbActiveHoriz.png: Removed.
      * inspector/front-end/Images/thumbActiveVert.png: Removed.
      * inspector/front-end/Images/thumbHoriz.png: Removed.
      * inspector/front-end/Images/thumbHoverHoriz.png: Removed.
      * inspector/front-end/Images/thumbHoverVert.png: Removed.
      * inspector/front-end/Images/thumbVert.png: Removed.
      * inspector/front-end/Images/tickMark.png: Removed.
      * inspector/front-end/Images/timelineHollowPillBlue.png: Removed.
      * inspector/front-end/Images/timelineHollowPillGray.png: Removed.
      * inspector/front-end/Images/timelineHollowPillGreen.png: Removed.
      * inspector/front-end/Images/timelineHollowPillOrange.png: Removed.
      * inspector/front-end/Images/timelineHollowPillPurple.png: Removed.
      * inspector/front-end/Images/timelineHollowPillRed.png: Removed.
      * inspector/front-end/Images/timelineHollowPillYellow.png: Removed.
      * inspector/front-end/Images/timelinePillBlue.png: Removed.
      * inspector/front-end/Images/timelinePillGray.png: Removed.
      * inspector/front-end/Images/timelinePillGreen.png: Removed.
      * inspector/front-end/Images/timelinePillOrange.png: Removed.
      * inspector/front-end/Images/timelinePillPurple.png: Removed.
      * inspector/front-end/Images/timelinePillRed.png: Removed.
      * inspector/front-end/Images/timelinePillYellow.png: Removed.
      * inspector/front-end/Images/toolbarIcons.png: Removed.
      * inspector/front-end/Images/toolbarIconsSmall.png: Removed.
      * inspector/front-end/Images/toolbarItemSelected.png: Removed.
      * inspector/front-end/Images/trackHoriz.png: Removed.
      * inspector/front-end/Images/trackVert.png: Removed.
      * inspector/front-end/Images/treeDownTriangleBlack.png: Removed.
      * inspector/front-end/Images/treeDownTriangleWhite.png: Removed.
      * inspector/front-end/Images/treeRightTriangleBlack.png: Removed.
      * inspector/front-end/Images/treeRightTriangleWhite.png: Removed.
      * inspector/front-end/Images/treeUpTriangleBlack.png: Removed.
      * inspector/front-end/Images/treeUpTriangleWhite.png: Removed.
      * inspector/front-end/Images/userInputIcon.png: Removed.
      * inspector/front-end/Images/userInputPreviousIcon.png: Removed.
      * inspector/front-end/Images/userInputResultIcon.png: Removed.
      * inspector/front-end/Images/warningIcon.png: Removed.
      * inspector/front-end/Images/warningMediumIcon.png: Removed.
      * inspector/front-end/Images/warningOrangeDot.png: Removed.
      * inspector/front-end/Images/warningsErrors.png: Removed.
      * inspector/front-end/IndexedDBModel.js: Removed.
      * inspector/front-end/IndexedDBViews.js: Removed.
      * inspector/front-end/InspectElementModeController.js: Removed.
      * inspector/front-end/InspectorBackend.js: Removed.
      * inspector/front-end/InspectorBackendCommands.qrc: Removed.
      * inspector/front-end/InspectorFrontendAPI.js: Removed.
      * inspector/front-end/InspectorFrontendHostStub.js: Removed.
      * inspector/front-end/InspectorView.js: Removed.
      * inspector/front-end/IsolatedFileSystem.js: Removed.
      * inspector/front-end/IsolatedFileSystemManager.js: Removed.
      * inspector/front-end/JSHeapSnapshot.js: Removed.
      * inspector/front-end/JavaScriptFormatter.js: Removed.
      * inspector/front-end/JavaScriptSourceFrame.js: Removed.
      * inspector/front-end/KeyboardShortcut.js: Removed.
      * inspector/front-end/Linkifier.js: Removed.
      * inspector/front-end/LiveEditSupport.js: Removed.
      * inspector/front-end/MemoryStatistics.js: Removed.
      * inspector/front-end/MetricsSidebarPane.js: Removed.
      * inspector/front-end/NativeBreakpointsSidebarPane.js: Removed.
      * inspector/front-end/NativeHeapSnapshot.js: Removed.
      * inspector/front-end/NativeMemoryGraph.js: Removed.
      * inspector/front-end/NavigatorOverlayController.js: Removed.
      * inspector/front-end/NavigatorView.js: Removed.
      * inspector/front-end/NetworkItemView.js: Removed.
      * inspector/front-end/NetworkLog.js: Removed.
      * inspector/front-end/NetworkManager.js: Removed.
      * inspector/front-end/NetworkPanel.js: Removed.
      * inspector/front-end/NetworkPanelDescriptor.js: Removed.
      * inspector/front-end/NetworkRequest.js: Removed.
      * inspector/front-end/NetworkUISourceCodeProvider.js: Removed.
      * inspector/front-end/Object.js: Removed.
      * inspector/front-end/ObjectPopoverHelper.js: Removed.
      * inspector/front-end/ObjectPropertiesSection.js: Removed.
      * inspector/front-end/OverridesView.js: Removed.
      * inspector/front-end/OverviewGrid.js: Removed.
      * inspector/front-end/Panel.js: Removed.
      * inspector/front-end/PanelEnablerView.js: Removed.
      * inspector/front-end/ParsedURL.js: Removed.
      * inspector/front-end/Placard.js: Removed.
      * inspector/front-end/Popover.js: Removed.
      * inspector/front-end/PresentationConsoleMessageHelper.js: Removed.
      * inspector/front-end/ProfileDataGridTree.js: Removed.
      * inspector/front-end/ProfileLauncherView.js: Removed.
      * inspector/front-end/ProfilesPanel.js: Removed.
      * inspector/front-end/ProfilesPanelDescriptor.js: Removed.
      * inspector/front-end/Progress.js: Removed.
      * inspector/front-end/ProgressIndicator.js: Removed.
      * inspector/front-end/PropertiesSection.js: Removed.
      * inspector/front-end/PropertiesSidebarPane.js: Removed.
      * inspector/front-end/RawSourceCode.js: Removed.
      * inspector/front-end/RemoteObject.js: Removed.
      * inspector/front-end/RequestCookiesView.js: Removed.
      * inspector/front-end/RequestHTMLView.js: Removed.
      * inspector/front-end/RequestHeadersView.js: Removed.
      * inspector/front-end/RequestJSONView.js: Removed.
      * inspector/front-end/RequestPreviewView.js: Removed.
      * inspector/front-end/RequestResponseView.js: Removed.
      * inspector/front-end/RequestTimingView.js: Removed.
      * inspector/front-end/RequestView.js: Removed.
      * inspector/front-end/Resource.js: Removed.
      * inspector/front-end/ResourceScriptMapping.js: Removed.
      * inspector/front-end/ResourceTreeModel.js: Removed.
      * inspector/front-end/ResourceType.js: Removed.
      * inspector/front-end/ResourceUtils.js: Removed.
      * inspector/front-end/ResourceView.js: Removed.
      * inspector/front-end/ResourceWebSocketFrameView.js: Removed.
      * inspector/front-end/ResourcesPanel.js: Removed.
      * inspector/front-end/RevisionHistoryView.js: Removed.
      * inspector/front-end/RuntimeModel.js: Removed.
      * inspector/front-end/SASSSourceMapping.js: Removed.
      * inspector/front-end/ScopeChainSidebarPane.js: Removed.
      * inspector/front-end/Script.js: Removed.
      * inspector/front-end/ScriptFormatter.js: Removed.
      * inspector/front-end/ScriptFormatterWorker.js: Removed.
      * inspector/front-end/ScriptSnippetModel.js: Removed.
      * inspector/front-end/ScriptsNavigator.js: Removed.
      * inspector/front-end/ScriptsPanel.js: Removed.
      * inspector/front-end/ScriptsPanelDescriptor.js: Removed.
      * inspector/front-end/ScriptsSearchScope.js: Removed.
      * inspector/front-end/SearchController.js: Removed.
      * inspector/front-end/Section.js: Removed.
      * inspector/front-end/Settings.js: Removed.
      * inspector/front-end/SettingsScreen.js: Removed.
      * inspector/front-end/ShortcutsScreen.js: Removed.
      * inspector/front-end/ShowMoreDataGridNode.js: Removed.
      * inspector/front-end/SidebarOverlay.js: Removed.
      * inspector/front-end/SidebarPane.js: Removed.
      * inspector/front-end/SidebarTreeElement.js: Removed.
      * inspector/front-end/SidebarView.js: Removed.
      * inspector/front-end/SimpleWorkspaceProvider.js: Removed.
      * inspector/front-end/SnippetJavaScriptSourceFrame.js: Removed.
      * inspector/front-end/SnippetStorage.js: Removed.
      * inspector/front-end/SoftContextMenu.js: Removed.
      * inspector/front-end/SourceCSSTokenizer.js: Removed.
      * inspector/front-end/SourceCSSTokenizer.re2js: Removed.
      * inspector/front-end/SourceFrame.js: Removed.
      * inspector/front-end/SourceHTMLTokenizer.js: Removed.
      * inspector/front-end/SourceHTMLTokenizer.re2js: Removed.
      * inspector/front-end/SourceJavaScriptTokenizer.js: Removed.
      * inspector/front-end/SourceJavaScriptTokenizer.re2js: Removed.
      * inspector/front-end/SourceMap.js: Removed.
      * inspector/front-end/SourceMapping.js: Removed.
      * inspector/front-end/SourceTokenizer.js: Removed.
      * inspector/front-end/Spectrum.js: Removed.
      * inspector/front-end/SplitView.js: Removed.
      * inspector/front-end/StatusBarButton.js: Removed.
      * inspector/front-end/StyleSheetOutlineDialog.js: Removed.
      * inspector/front-end/StylesSidebarPane.js: Removed.
      * inspector/front-end/StylesSourceMapping.js: Removed.
      * inspector/front-end/SuggestBox.js: Removed.
      * inspector/front-end/TabbedEditorContainer.js: Removed.
      * inspector/front-end/TabbedPane.js: Removed.
      * inspector/front-end/TestController.js: Removed.
      * inspector/front-end/TextEditor.js: Removed.
      * inspector/front-end/TextEditorHighlighter.js: Removed.
      * inspector/front-end/TextEditorModel.js: Removed.
      * inspector/front-end/TextPrompt.js: Removed.
      * inspector/front-end/TextUtils.js: Removed.
      * inspector/front-end/TimelineFrameController.js: Removed.
      * inspector/front-end/TimelineGrid.js: Removed.
      * inspector/front-end/TimelineManager.js: Removed.
      * inspector/front-end/TimelineModel.js: Removed.
      * inspector/front-end/TimelineOverviewPane.js: Removed.
      * inspector/front-end/TimelinePanel.js: Removed.
      * inspector/front-end/TimelinePanelDescriptor.js: Removed.
      * inspector/front-end/TimelinePresentationModel.js: Removed.
      * inspector/front-end/Toolbar.js: Removed.
      * inspector/front-end/TopDownProfileDataGridTree.js: Removed.
      * inspector/front-end/UISourceCode.js: Removed.
      * inspector/front-end/UISourceCodeFrame.js: Removed.
      * inspector/front-end/UIString.js: Removed.
      * inspector/front-end/UIUtils.js: Removed.
      * inspector/front-end/UglifyJS/parse-js.js: Removed.
      * inspector/front-end/UserAgentSupport.js: Removed.
      * inspector/front-end/UserMetrics.js: Removed.
      * inspector/front-end/View.js: Removed.
      * inspector/front-end/ViewportControl.js: Removed.
      * inspector/front-end/WatchExpressionsSidebarPane.js: Removed.
      * inspector/front-end/WebKit.qrc: Removed.
      * inspector/front-end/WorkerManager.js: Removed.
      * inspector/front-end/WorkersSidebarPane.js: Removed.
      * inspector/front-end/Workspace.js: Removed.
      * inspector/front-end/ace/LICENSE.txt: Removed.
      * inspector/front-end/ace/ace.js: Removed.
      * inspector/front-end/ace/acedevtools.css: Removed.
      * inspector/front-end/ace/mode_css.js: Removed.
      * inspector/front-end/ace/mode_html.js: Removed.
      * inspector/front-end/ace/mode_javascript.js: Removed.
      * inspector/front-end/ace/theme_textmate.js: Removed.
      * inspector/front-end/auditsPanel.css: Removed.
      * inspector/front-end/breadcrumbList.css: Removed.
      * inspector/front-end/breakpointsList.css: Removed.
      * inspector/front-end/buildSystemOnly.js: Removed.
      * inspector/front-end/canvasProfiler.css: Removed.
      * inspector/front-end/cm/LICENSE: Removed.
      * inspector/front-end/cm/closebrackets.js: Removed.
      * inspector/front-end/cm/cmdevtools.css: Removed.
      * inspector/front-end/cm/codemirror.css: Removed.
      * inspector/front-end/cm/codemirror.js: Removed.
      * inspector/front-end/cm/css.js: Removed.
      * inspector/front-end/cm/htmlmixed.js: Removed.
      * inspector/front-end/cm/javascript.js: Removed.
      * inspector/front-end/cm/matchbrackets.js: Removed.
      * inspector/front-end/cm/xml.js: Removed.
      * inspector/front-end/cssNamedFlows.css: Removed.
      * inspector/front-end/dataGrid.css: Removed.
      * inspector/front-end/dialog.css: Removed.
      * inspector/front-end/elementsPanel.css: Removed.
      * inspector/front-end/externs.js: Removed.
      * inspector/front-end/filteredItemSelectionDialog.css: Removed.
      * inspector/front-end/flameChart.css: Removed.
      * inspector/front-end/heapProfiler.css: Removed.
      * inspector/front-end/helpScreen.css: Removed.
      * inspector/front-end/indexedDBViews.css: Removed.
      * inspector/front-end/inspector.css: Removed.
      * inspector/front-end/inspector.html: Removed.
      * inspector/front-end/inspector.js: Removed.
      * inspector/front-end/inspectorCommon.css: Removed.
      * inspector/front-end/inspectorSyntaxHighlight.css: Removed.
      * inspector/front-end/jsdifflib.js: Removed.
      * inspector/front-end/navigatorView.css: Removed.
      * inspector/front-end/networkLogView.css: Removed.
      * inspector/front-end/networkPanel.css: Removed.
      * inspector/front-end/panelEnablerView.css: Removed.
      * inspector/front-end/popover.css: Removed.
      * inspector/front-end/profilesPanel.css: Removed.
      * inspector/front-end/resourceView.css: Removed.
      * inspector/front-end/resourcesPanel.css: Removed.
      * inspector/front-end/revisionHistory.css: Removed.
      * inspector/front-end/scriptsPanel.css: Removed.
      * inspector/front-end/sidebarPane.css: Removed.
      * inspector/front-end/spectrum.css: Removed.
      * inspector/front-end/splitView.css: Removed.
      * inspector/front-end/tabbedPane.css: Removed.
      * inspector/front-end/test-runner.html: Removed.
      * inspector/front-end/textEditor.css: Removed.
      * inspector/front-end/textPrompt.css: Removed.
      * inspector/front-end/timelinePanel.css: Removed.
      * inspector/front-end/treeoutline.js: Removed.
      * inspector/front-end/utilities.js: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157278 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d3c5d791
    • rniwa@webkit.org's avatar
      Add failing expectations to some tests on Mac Lion. · cf717e04
      rniwa@webkit.org authored
      * platform/mac-lion/TestExpectations:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157277 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cf717e04
    • andersca@apple.com's avatar
      Fix build. · 79a6a9db
      andersca@apple.com authored
      * Interfaces/WebKit.idl:
      Oops, didn't mean to remove the uuid for WebURLResponse.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157276 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      79a6a9db
    • commit-queue@webkit.org's avatar
      Web Inspector: Remove the old front-end from WebKit · c5efc5dd
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=122295
      
      Patch by Marcelo Morais <m.morais@samsung.com> on 2013-10-10
      Reviewed by Timothy Hatcher.
      
      .:
      
      * Source/PlatformGTK.cmake: Removed. This file was using files from the
      old inspector, not needed anymore.
      
      Source/WebCore:
      
      Updating the project files to remove all references from the old
      inspector front-end.
      
      * WebCore.vcxproj/WebCore.vcxproj: Removed the references for the old
      inspector front-end.
      * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
      * WebCore.xcodeproj/project.pbxproj: Ditto.
      * inspector/compile-front-end.py: Removed.
      
      Source/WebKit:
      
      * PlatformBlackBerry.cmake: Removed the references for the old
      inspector front-end.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157275 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c5efc5dd
    • ryuan.choi@samsung.com's avatar
      Unreviewed build fix with ENABLE_DEVICE_ORIENTATION after r157215 · 00df8d8d
      ryuan.choi@samsung.com authored
      Now, impl() return reference instead of a pointer.
      
      * bindings/js/JSDeviceMotionEventCustom.cpp:
      (WebCore::JSDeviceMotionEvent::acceleration):
      (WebCore::JSDeviceMotionEvent::accelerationIncludingGravity):
      (WebCore::JSDeviceMotionEvent::rotationRate):
      (WebCore::JSDeviceMotionEvent::interval):
      (WebCore::JSDeviceMotionEvent::initDeviceMotionEvent):
      * bindings/js/JSDeviceOrientationEventCustom.cpp:
      (WebCore::JSDeviceOrientationEvent::alpha):
      (WebCore::JSDeviceOrientationEvent::beta):
      (WebCore::JSDeviceOrientationEvent::gamma):
      (WebCore::JSDeviceOrientationEvent::absolute):
      (WebCore::JSDeviceOrientationEvent::initDeviceOrientationEvent):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157274 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      00df8d8d
  2. 10 Oct, 2013 12 commits
    • commit-queue@webkit.org's avatar
      [MediaStream API] update MediaStream object to match spec · 2e8285f7
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=121939
      
      Patch by Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> on 2013-10-10
      Reviewed by Jer Noble.
      
      Source/WebCore:
      
      Test: fast/mediastream/MediaStream-clone.html
      
      * Modules/mediastream/MediaStream.cpp:
      (WebCore::MediaStream::MediaStream):
      (WebCore::MediaStream::ended):
      (WebCore::MediaStream::clone):
      (WebCore::MediaStream::cloneMediaStreamTrackVector):
      (WebCore::MediaStream::contextDestroyed):
      (WebCore::MediaStream::scheduledEventTimerFired):
      * Modules/mediastream/MediaStream.h:
      * Modules/mediastream/MediaStream.idl:
      
      LayoutTests:
      
      * TestExpectations:
      * fast/mediastream/MediaStream-add-remove-tracks-expected.txt:
      * fast/mediastream/MediaStream-add-remove-tracks.html:
      * fast/mediastream/MediaStream-clone.html: Added.
      * fast/mediastream/MediaStreamConstructor-expected.txt:
      * fast/mediastream/MediaStreamConstructor.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157273 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2e8285f7
    • bdakin@apple.com's avatar
      Calling setUsePresentationValue on MountainLion results in unrecognized selector · 9c342c69
      bdakin@apple.com authored
      warnings
      https://bugs.webkit.org/show_bug.cgi?id=122624
      
      Reviewed by Tim Horton.
      
      Only call setUsePresentationValue if the scrollbar supports updates on a secondary 
      thread.
      * platform/mac/ScrollAnimatorMac.mm:
      (-[WebScrollbarPainterDelegate scrollerImp:animateKnobAlphaTo:duration:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157272 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9c342c69
    • roger_fong@apple.com's avatar
      Validate uniform input when setting texture sampler uniforms. · a4d75f7c
      roger_fong@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122610.
      
      Reviewed by Dean Jackson.
      
      Covered by Khronos Conformance Suite 1.0.2.
      Specifically, conformance/uniforms/uniform-samplers-test.html.
      
      * html/canvas/WebGLRenderingContext.cpp:
      (WebCore::WebGLRenderingContext::uniform1i):
      (WebCore::WebGLRenderingContext::uniform1iv):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157271 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a4d75f7c
    • seokju@webkit.org's avatar
      Unreviewed build fix after r157250 · 8ae1e830
      seokju@webkit.org authored
      * dom/EventDispatcher.cpp:
      (WebCore::EventDispatcher::dispatchEvent):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157270 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8ae1e830
    • commit-queue@webkit.org's avatar
      Web Inspector: content views and managers should save/restore view state. · 10c778d0
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=122546
      
      To restore the same content view and sidebars when re-opening the
      inspector, a cookie is saved whenever a new content view is shown
      in the main content browser. Previously, this cookie was created
      and restored using navigation sidebar-specific logic. This has two
      major flaws: non-default sidebars for a represented object are not
      restored correctly; and it centralizes storage of view-specific
      state such as subview selections.
      
      This patch adds ContentView methods for saving a key for the
      view's represented object, and saving/restoring any view-specific
      state as the view is shown. The 'type' field of the cookie
      specifies the manager which deserializes the cookie into a
      represented object.
      
      Patch by Brian J. Burg <burg@cs.washington.edu> on 2013-10-10
      Reviewed by Timothy Hatcher.
      
      * UserInterface/ApplicationCacheFrameContentView.js:
      (WebInspector.ApplicationCacheFrameContentView):
      (WebInspector.ApplicationCacheFrameContentView.prototype.saveToCookie):
      (WebInspector.ApplicationCacheFrameContentView.prototype._maybeUpdate):
      (WebInspector.ApplicationCacheFrameContentView.prototype._updateStatus):
      (WebInspector.ApplicationCacheFrameContentView.prototype.updateStatus):
      (WebInspector.ApplicationCacheFrameContentView.prototype._updateCallback):
      * UserInterface/ApplicationCacheManager.js:
      (WebInspector.ApplicationCacheManager.prototype.networkStateUpdated):
      (WebInspector.ApplicationCacheManager.prototype.applicationCacheStatusUpdated):
      (WebInspector.ApplicationCacheManager.prototype.):
      (WebInspector.ApplicationCacheManager.prototype.requestApplicationCache):
      (WebInspector.ApplicationCacheManager.prototype.objectForCookie):
      (WebInspector.ApplicationCacheManager.prototype._manifestForFrameLoaded):
      (WebInspector.ApplicationCacheManager.prototype._framesWithManifestsLoaded):
      (WebInspector.ApplicationCacheManager.prototype._frameManifestUpdated):
      * UserInterface/BackForwardEntry.js:
      (WebInspector.BackForwardEntry):
      (WebInspector.BackForwardEntry.prototype._restoreFromCookie):
      * UserInterface/ContentBrowser.js:
      (WebInspector.ContentBrowser.prototype.showContentViewForRepresentedObject):
      (WebInspector.ContentBrowser.prototype.showContentView):
      * UserInterface/ContentView.js:
      (WebInspector.ContentView.prototype.saveToCookie):
      (WebInspector.ContentView.prototype.restoreFromCookie):
      * UserInterface/ContentViewContainer.js:
      (WebInspector.ContentViewContainer.prototype.showContentView):
      * UserInterface/CookieStorageContentView.js:
      (WebInspector.CookieStorageContentView.prototype.update):
      (WebInspector.CookieStorageContentView.prototype.saveToCookie):
      (WebInspector.CookieStorageContentView.prototype._rebuildTable):
      (WebInspector.CookieStorageContentView.prototype._filterCookies):
      * UserInterface/DOMStorageContentView.js:
      (WebInspector.DOMStorageContentView.prototype.saveToCookie):
      * UserInterface/DatabaseContentView.js:
      (WebInspector.DatabaseContentView.prototype.saveToCookie):
      (WebInspector.DatabaseContentView.prototype._messagesClicked):
      * UserInterface/DatabaseTableContentView.js:
      (WebInspector.DatabaseTableContentView):
      (WebInspector.DatabaseTableContentView.prototype.saveToCookie):
      * UserInterface/FrameContentView.js:
      (WebInspector.FrameContentView.prototype.saveToCookie):
      (WebInspector.FrameContentView.prototype.restoreFromCookie):
      * UserInterface/FrameResourceManager.js:
      (WebInspector.FrameResourceManager.prototype.objectForCookie):
      * UserInterface/InstrumentSidebarPanel.js:
      (WebInspector.InstrumentSidebarPanel):
      (WebInspector.InstrumentSidebarPanel.prototype.showTimeline):
      (WebInspector.InstrumentSidebarPanel.prototype.shown):
      (WebInspector.InstrumentSidebarPanel.prototype._timelinesTreeElementSelected):
      * UserInterface/Main.js:
      (WebInspector.loaded):
      (WebInspector.contentLoaded):
      (WebInspector.openURL):
      (WebInspector._updateCurrentContentViewCookie):
      (WebInspector._showContentViewForCookie.lastAttemptToRestoreFromCookie):
      (WebInspector._showContentViewForCookie):
      (WebInspector._resolveAndShowPendingContentViewCookie.delayedWork):
      (WebInspector._resolveAndShowPendingContentViewCookie):
      (WebInspector.elementDragStart):
      (WebInspector.elementDragEnd):
      (WebInspector.createMessageTextView):
      (WebInspector.linkifyStringAsFragment):
      * UserInterface/NavigationSidebarPanel.js:
      * UserInterface/ResourceClusterContentView.js:
      (WebInspector.ResourceClusterContentView.prototype.saveToCookie):
      (WebInspector.ResourceClusterContentView.prototype.restoreFromCookie):
      * UserInterface/ResourceSidebarPanel.js:
      (WebInspector.ResourceSidebarPanel.prototype.showSourceCode):
      (WebInspector.ResourceSidebarPanel.prototype._mainFrameDidChange):
      (WebInspector.ResourceSidebarPanel.prototype._domStorageObjectWasAdded):
      (WebInspector.ResourceSidebarPanel.prototype._databaseWasAdded):
      (WebInspector.ResourceSidebarPanel.prototype._cookieStorageObjectWasAdded):
      (WebInspector.ResourceSidebarPanel.prototype._frameManifestAdded):
      * UserInterface/ScriptContentView.js:
      (WebInspector.ScriptContentView.prototype.saveToCookie):
      (WebInspector.ScriptContentView.prototype.restoreFromCookie):
      * UserInterface/StorageManager.js:
      (WebInspector.StorageManager.prototype.findMatchingObjectInArray):
      (WebInspector.StorageManager.prototype.objectForCookie):
      * UserInterface/TimelineManager.js:
      (WebInspector.TimelineManager):
      (WebInspector.TimelineManager.prototype.get timelines):
      (WebInspector.TimelineManager.prototype.objectForCookie):
      * UserInterface/TimelinesContentView.js:
      (WebInspector.TimelinesContentView.prototype.saveToCookie):
      (WebInspector.TimelinesContentView.prototype.restoreFromCookie):
      (WebInspector.TimelinesContentView.prototype._makeColumnScopeBar):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157269 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      10c778d0
    • commit-queue@webkit.org's avatar
      Create MediaStream object with ended attribute set if all tracks that are... · aadaf7a6
      commit-queue@webkit.org authored
      Create MediaStream object with ended attribute set if all tracks that are being used on its creation are ended
      https://bugs.webkit.org/show_bug.cgi?id=122358
      
      Patch by Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> on 2013-10-10
      Reviewed by Jer Noble.
      
      Source/WebCore:
      
      Spec tells that if all tracks that belongs to a new MediaStream object being created are ended,
      then the ended attribute of this MediaStream must be set to true.
      http://www.w3.org/TR/mediacapture-streams/#widl-MediaStream-ended
      
      Since there is no port supporting MediaStream yet, we are skipping this test for now.
      
      Test: fast/mediastream/MediaStream-construct-with-ended-tracks.html
      
      * Modules/mediastream/MediaStream.cpp:
      (WebCore::createFromSourceVectors):
      (WebCore::MediaStream::create):
      * Modules/webaudio/MediaStreamAudioDestinationNode.cpp:
      (WebCore::MediaStreamAudioDestinationNode::MediaStreamAudioDestinationNode):
      * platform/mediastream/MediaStreamDescriptor.cpp:
      (WebCore::MediaStreamDescriptor::create):
      (WebCore::MediaStreamDescriptor::MediaStreamDescriptor):
      * platform/mediastream/MediaStreamDescriptor.h:
      * platform/mock/MockMediaStreamCenter.cpp:
      (WebCore::MockMediaStreamCenter::createMediaStream):
      
      LayoutTests:
      
      Since there is no port supporting MediaStream yet, we are skipping this test for now.
      
      * TestExpectations:
      * fast/mediastream/MediaStream-construct-with-ended-tracks.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157268 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aadaf7a6
    • oliver@apple.com's avatar
      Further improve ArrayIterator performance · 585c400c
      oliver@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122575
      
      Reviewed by Mark Hahnenberg.
      
      Source/JavaScriptCore:
      
      Add an assembly thunk for ArrayIterator.@@next so that we
      can avoid marshalling costs when iterating arrays.
      
      * jit/SpecializedThunkJIT.h:
      (JSC::SpecializedThunkJIT::SpecializedThunkJIT):
      (JSC::SpecializedThunkJIT::loadSpecificClassArgument):
      * jit/ThunkGenerators.cpp:
      (JSC::arrayIteratorNextThunkGenerator):
      * jit/ThunkGenerators.h:
      * runtime/ArrayIteratorPrototype.cpp:
      (JSC::ArrayIteratorPrototype::finishCreation):
      * runtime/Intrinsic.h:
      * runtime/JSArrayIterator.h:
      (JSC::JSArrayIterator::offsetOfIterationKind):
      (JSC::JSArrayIterator::offsetOfIteratedObject):
      (JSC::JSArrayIterator::offsetOfNextIndex):
      * runtime/JSCJSValue.h:
      (JSC::JSValue::offsetOfPayload):
      * runtime/JSGlobalObject.cpp:
      (JSC::JSGlobalObject::reset):
      * runtime/JSGlobalObject.h:
      (JSC::JSGlobalObject::iteratorResultStructureOffset):
      * runtime/VM.cpp:
      (JSC::thunkGeneratorForIntrinsic):
      
      LayoutTests:
      
      Add a few new tests to make sure the new asm thunk correctly
      handles non-arrays.
      
      * js/array-iterators-expected.txt:
      * js/script-tests/array-iterators.js:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157267 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      585c400c
    • msaboff@apple.com's avatar
      transition cti_op_* methods returning int to JIT operations. · c8dd3f72
      msaboff@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122563
      
      Reviewed by Oliver Hunt.
      
      Moved serveral operationCompare* functions from DFGOperations to JITOperations as well as changing
      dfgConvertJSValueToBoolean to operationConvertJSValueToBoolean so that they can be shared with the baseline JIT.
      Added JITOperation operationHasProperty().  Added needed callOperation helpers and transitioned baseline JIT code
      to use the new operations.
              
      * dfg/DFGOperations.cpp:
      * dfg/DFGOperations.h:
      * dfg/DFGSpeculativeJIT32_64.cpp:
      (JSC::DFG::SpeculativeJIT::compileLogicalNot):
      (JSC::DFG::SpeculativeJIT::emitBranch):
      * dfg/DFGSpeculativeJIT64.cpp:
      (JSC::DFG::SpeculativeJIT::compileLogicalNot):
      (JSC::DFG::SpeculativeJIT::emitBranch):
      * jit/JIT.h:
      * jit/JITArithmetic.cpp:
      (JSC::JIT::emitSlow_op_jless):
      (JSC::JIT::emitSlow_op_jlesseq):
      (JSC::JIT::emitSlow_op_jgreater):
      (JSC::JIT::emitSlow_op_jgreatereq):
      (JSC::JIT::emitSlow_op_jnless):
      (JSC::JIT::emitSlow_op_jnlesseq):
      (JSC::JIT::emitSlow_op_jngreater):
      (JSC::JIT::emitSlow_op_jngreatereq):
      (JSC::JIT::emit_compareAndJumpSlow):
      * jit/JITArithmetic32_64.cpp:
      (JSC::JIT::emit_compareAndJumpSlow):
      * jit/JITInlines.h:
      (JSC::JIT::callOperation):
      * jit/JITOpcodes.cpp:
      (JSC::JIT::emit_op_next_pname):
      (JSC::JIT::emitSlow_op_jfalse):
      (JSC::JIT::emitSlow_op_jtrue):
      (JSC::JIT::emitSlow_op_eq):
      (JSC::JIT::emitSlow_op_neq):
      * jit/JITOpcodes32_64.cpp:
      (JSC::JIT::emitSlow_op_jfalse):
      (JSC::JIT::emitSlow_op_jtrue):
      (JSC::JIT::emitSlow_op_eq):
      (JSC::JIT::emitSlow_op_neq):
      (JSC::JIT::emit_op_next_pname):
      * jit/JITOperations.cpp:
      * jit/JITOperations.h:
      * jit/JITStubs.cpp:
      * jit/JITStubs.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157266 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c8dd3f72
    • aestes@apple.com's avatar
      Add SPI for telling WebKit to prefer pictograph glyphs over monochrome ones · 765bd952
      aestes@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122608
      
      Reviewed by Dan Bernstein.
      
      Based on patches by Dan Bernstein.
      
      Source/WebCore:
      
      Test: fonts/font-fallback-prefers-pictographs.html
      
      Created a mechanism to append a font to the end of a font's fallback
      list, before the system fallback list. This mechanism is used when
      Settings::fontFallbackPrefersPictographs() is true to insert a
      pictograph font ahead of a monochrome one from the system fallback list.
      
      * WebCore.exp.in: Moved
      __ZN7WebCore8Settings33setFontFallbackPrefersPictographsEb outside of
      an iOS platform guard.
      * css/CSSFontSelector.cpp:
      (WebCore::CSSFontSelector::fallbackFontDataCount): Retuned 1 if
      pictograph fonts are preferred.
      (WebCore::CSSFontSelector::getFallbackFontData): Returned the
      pictograph font's FontData if it is preferred.
      * css/CSSFontSelector.h:
      * page/Settings.cpp:
      (WebCore::Settings::Settings): Initialized
      m_fontFallbackPrefersPictographs to false.
      (WebCore::Settings::setFontFallbackPrefersPictographs): Set
      m_fontFallbackPrefersPictographs and called
      Page::setNeedsRecalcStyleInAllFrames().
      * page/Settings.h:
      (WebCore::Settings::fontFallbackPrefersPictographs):
      * platform/graphics/FontGlyphs.cpp:
      (WebCore::FontGlyphs::realizeFontDataAt): Realized the selector's
      fallback font if necessary.
      * platform/graphics/FontSelector.h:
      * style/StyleResolveTree.cpp:
      (WebCore::Style::resolveTree): Removed iOS platform guards.
      * testing/InternalSettings.cpp:
      (WebCore::InternalSettings::setFontFallbackPrefersPictographs): Set the
      corresponding WebCore::Setting.
      * testing/InternalSettings.h: Defined an internal setting for the test.
      * testing/InternalSettings.idl: Ditto.
      
      Source/WebKit/mac:
      
      * WebView/WebView.mm:
      (-[WebView _setFontFallbackPrefersPictographs:]): Called
      WebCore::Settings::setFontFallbackPrefersPictographs().
      * WebView/WebViewPrivate.h:
      
      LayoutTests:
      
      * fonts/font-fallback-prefers-pictographs-expected.html: Added.
      * fonts/font-fallback-prefers-pictographs.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157265 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      765bd952
    • fpizlo@apple.com's avatar
      OSR exit using llvm.webkit.stackmap should pass more tests · 50cd41c0
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122518
      
      Reviewed by Mark Hahnenberg.
              
      - Make the X86Assembler capable of dealing with all XMM registers.
              
      - Make the StackMaps code on WebKit's side capable of dealing with XMM registers.
              
      - Factor out most of the smarts of StackMaps::Location into a self-contained object.
        Previously you needed both StackMaps::Location and a StackMaps reference to do most
        things since the Location might have referred to a constant. Now you can just get a
        self-contained Location object.
              
      - Fix a bug where OSR exit generation thunk generator was assuming that the call frame
        register is already in argumentGPR0. In the future, the call frame will just be the
        machine FP and we won't have to do anything special. But for now the "call frame" is
        just a normal value in LLVM IR and may end up in any register. Make the OSR exit
        generation thunk generator polymorphic over the call frame argument's Location.
              
      - Move the stuff that depends on the polymorphic OSR exit generation thunk generator
        into the finalizer, since generating and linking one of those thunks requires a cache
        flush and we need to do that on the main thread.
      
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * assembler/ARMv7Assembler.h:
      (JSC::ARMv7Assembler::firstRegister):
      (JSC::ARMv7Assembler::lastRegister):
      (JSC::ARMv7Assembler::firstFPRegister):
      (JSC::ARMv7Assembler::lastFPRegister):
      * assembler/AbstractMacroAssembler.h:
      (JSC::AbstractMacroAssembler::firstFPRegister):
      (JSC::AbstractMacroAssembler::lastFPRegister):
      * assembler/MacroAssembler.h:
      (JSC::MacroAssembler::nextFPRegister):
      * assembler/MacroAssemblerARMv7.h:
      * assembler/MacroAssemblerX86Common.h:
      * assembler/X86Assembler.h:
      (JSC::X86Assembler::firstFPRegister):
      (JSC::X86Assembler::lastFPRegister):
      * dfg/DFGDriver.cpp:
      (JSC::DFG::compileImpl):
      * ftl/FTLCompile.cpp:
      (JSC::FTL::fixFunctionBasedOnStackMaps):
      * ftl/FTLExitThunkGenerator.cpp:
      (JSC::FTL::ExitThunkGenerator::emitThunk):
      (JSC::FTL::ExitThunkGenerator::emitThunks):
      * ftl/FTLJITFinalizer.cpp:
      (JSC::FTL::JITFinalizer::finalizeFunction):
      * ftl/FTLJITFinalizer.h:
      * ftl/FTLLink.cpp:
      (JSC::FTL::link):
      * ftl/FTLLocation.cpp: Added.
      (JSC::FTL::Location::forStackmaps):
      (JSC::FTL::Location::dump):
      (JSC::FTL::Location::involvesGPR):
      (JSC::FTL::Location::isGPR):
      (JSC::FTL::Location::gpr):
      (JSC::FTL::Location::isFPR):
      (JSC::FTL::Location::fpr):
      (JSC::FTL::Location::restoreInto):
      (WTF::printInternal):
      * ftl/FTLLocation.h: Added.
      (JSC::FTL::Location::Location):
      (JSC::FTL::Location::forRegister):
      (JSC::FTL::Location::forIndirect):
      (JSC::FTL::Location::forConstant):
      (JSC::FTL::Location::kind):
      (JSC::FTL::Location::hasDwarfRegNum):
      (JSC::FTL::Location::dwarfRegNum):
      (JSC::FTL::Location::hasOffset):
      (JSC::FTL::Location::offset):
      (JSC::FTL::Location::hasConstant):
      (JSC::FTL::Location::constant):
      (JSC::FTL::Location::operator!):
      (JSC::FTL::Location::isHashTableDeletedValue):
      (JSC::FTL::Location::operator==):
      (JSC::FTL::Location::hash):
      (JSC::FTL::LocationHash::hash):
      (JSC::FTL::LocationHash::equal):
      * ftl/FTLLowerDFGToLLVM.cpp:
      (JSC::FTL::LowerDFGToLLVM::appendOSRExit):
      (JSC::FTL::LowerDFGToLLVM::linkOSRExitsAndCompleteInitializationBlocks):
      * ftl/FTLSaveRestore.cpp:
      (JSC::FTL::bytesForFPRs):
      (JSC::FTL::requiredScratchMemorySizeInBytes):
      (JSC::FTL::offsetOfFPR):
      (JSC::FTL::saveAllRegisters):
      (JSC::FTL::restoreAllRegisters):
      * ftl/FTLSaveRestore.h:
      * ftl/FTLStackMaps.cpp:
      (JSC::FTL::StackMaps::Location::restoreInto):
      * ftl/FTLStackMaps.h:
      * ftl/FTLState.h:
      * ftl/FTLThunks.cpp:
      (JSC::FTL::osrExitGenerationWithoutStackMapThunkGenerator):
      (JSC::FTL::osrExitGenerationWithStackMapThunkGenerator):
      * ftl/FTLThunks.h:
      (JSC::FTL::generateIfNecessary):
      (JSC::FTL::Thunks::getOSRExitGenerationThunk):
      * runtime/VM.cpp:
      (JSC::VM::VM):
      * runtime/VM.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157264 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      50cd41c0
    • andersca@apple.com's avatar
      Remove WebScrollBar · f5b35b1f
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122623
      
      Reviewed by Brent Fulgham.
      
      Source/WebKit:
      
      Remove files from VS projects.
      
      * WebKit.vcxproj/Interfaces/Interfaces.vcxproj:
      * WebKit.vcxproj/Interfaces/Interfaces.vcxproj.filters:
      * WebKit.vcxproj/WebKit/WebKit.vcxproj:
      * WebKit.vcxproj/WebKit/WebKit.vcxproj.filters:
      
      Source/WebKit/win:
      
      WebScrollBar isn't used by anyone, remove it.
      
      * ForEachCoClass.h:
      * Interfaces/IWebScrollBarDelegatePrivate.idl: Removed.
      * Interfaces/IWebScrollBarPrivate.idl: Removed.
      * Interfaces/WebKit.idl:
      * WebKitClassFactory.cpp:
      (WebKitClassFactory::CreateInstance):
      * WebScrollBar.cpp: Removed.
      * WebScrollBar.h: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157263 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f5b35b1f
    • fpizlo@apple.com's avatar
      Tools: Make sure that DataTypes.h is in the binary drop. · 5dbf9f12
      fpizlo@apple.com authored
      Rubber stamped by Michael Saboff.
      
      * Scripts/export-llvm-build:
      
      WebKitLibraries: Update the binary drops to the latest version of LLVM, built without -fvisibility=hidden
      now that we have soft linking. Also include DataTypes.h in the drop.
      
      Rubber stamped by Michael Saboff.
      
      * LLVMIncludesMountainLion.tar.bz2:
      * LLVMLibrariesMountainLion.tar.bz2:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157262 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5dbf9f12