1. 09 Jan, 2014 15 commits
    • mhahnenberg@apple.com's avatar
      Marking should be generational · 196dc9ae
      mhahnenberg@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126552
      
      Reviewed by Geoffrey Garen.
      
      Source/JavaScriptCore: 
      
      Re-marking the same objects over and over is a waste of effort. This patch implements 
      the sticky mark bit algorithm (along with our already-present write barriers) to reduce 
      overhead during garbage collection caused by rescanning objects.
      
      There are now two collection modes, EdenCollection and FullCollection. EdenCollections
      only visit new objects or objects that were added to the remembered set by a write barrier.
      FullCollections are normal collections that visit all objects regardless of their 
      generation.
      
      In this patch EdenCollections do not do anything in CopiedSpace. This will be fixed in 
      https://bugs.webkit.org/show_bug.cgi?id=126555.
      
      * bytecode/CodeBlock.cpp:
      (JSC::CodeBlock::visitAggregate):
      * bytecode/CodeBlock.h:
      (JSC::CodeBlockSet::mark):
      * dfg/DFGOperations.cpp:
      * heap/CodeBlockSet.cpp:
      (JSC::CodeBlockSet::add):
      (JSC::CodeBlockSet::traceMarked):
      (JSC::CodeBlockSet::rememberCurrentlyExecutingCodeBlocks):
      * heap/CodeBlockSet.h:
      * heap/CopiedBlockInlines.h:
      (JSC::CopiedBlock::reportLiveBytes):
      * heap/CopiedSpace.cpp:
      (JSC::CopiedSpace::didStartFullCollection):
      * heap/CopiedSpace.h:
      (JSC::CopiedSpace::heap):
      * heap/Heap.cpp:
      (JSC::Heap::Heap):
      (JSC::Heap::didAbandon):
      (JSC::Heap::markRoots):
      (JSC::Heap::copyBackingStores):
      (JSC::Heap::addToRememberedSet):
      (JSC::Heap::collectAllGarbage):
      (JSC::Heap::collect):
      (JSC::Heap::didAllocate):
      (JSC::Heap::writeBarrier):
      * heap/Heap.h:
      (JSC::Heap::isInRememberedSet):
      (JSC::Heap::operationInProgress):
      (JSC::Heap::shouldCollect):
      (JSC::Heap::isCollecting):
      (JSC::Heap::isWriteBarrierEnabled):
      (JSC::Heap::writeBarrier):
      * heap/HeapOperation.h:
      * heap/MarkStack.cpp:
      (JSC::MarkStackArray::~MarkStackArray):
      (JSC::MarkStackArray::clear):
      (JSC::MarkStackArray::fillVector):
      * heap/MarkStack.h:
      * heap/MarkedAllocator.cpp:
      (JSC::isListPagedOut):
      (JSC::MarkedAllocator::isPagedOut):
      (JSC::MarkedAllocator::tryAllocateHelper):
      (JSC::MarkedAllocator::addBlock):
      (JSC::MarkedAllocator::removeBlock):
      (JSC::MarkedAllocator::reset):
      * heap/MarkedAllocator.h:
      (JSC::MarkedAllocator::MarkedAllocator):
      * heap/MarkedBlock.cpp:
      (JSC::MarkedBlock::clearMarks):
      (JSC::MarkedBlock::clearRememberedSet):
      (JSC::MarkedBlock::clearMarksWithCollectionType):
      (JSC::MarkedBlock::lastChanceToFinalize):
      * heap/MarkedBlock.h: Changed atomSize to 16 bytes because we have no objects smaller
      than 16 bytes. This is also to pay for the additional Bitmap for the remembered set.
      (JSC::MarkedBlock::didConsumeEmptyFreeList):
      (JSC::MarkedBlock::setRemembered):
      (JSC::MarkedBlock::clearRemembered):
      (JSC::MarkedBlock::atomicClearRemembered):
      (JSC::MarkedBlock::isRemembered):
      * heap/MarkedSpace.cpp:
      (JSC::MarkedSpace::~MarkedSpace):
      (JSC::MarkedSpace::resetAllocators):
      (JSC::MarkedSpace::visitWeakSets):
      (JSC::MarkedSpace::reapWeakSets):
      (JSC::VerifyMarked::operator()):
      (JSC::MarkedSpace::clearMarks):
      * heap/MarkedSpace.h:
      (JSC::ClearMarks::operator()):
      (JSC::ClearRememberedSet::operator()):
      (JSC::MarkedSpace::didAllocateInBlock):
      (JSC::MarkedSpace::clearRememberedSet):
      * heap/SlotVisitor.cpp:
      (JSC::SlotVisitor::~SlotVisitor):
      (JSC::SlotVisitor::clearMarkStack):
      * heap/SlotVisitor.h:
      (JSC::SlotVisitor::markStack):
      (JSC::SlotVisitor::sharedData):
      * heap/SlotVisitorInlines.h:
      (JSC::SlotVisitor::internalAppend):
      (JSC::SlotVisitor::unconditionallyAppend):
      (JSC::SlotVisitor::copyLater):
      (JSC::SlotVisitor::reportExtraMemoryUsage):
      (JSC::SlotVisitor::heap):
      * jit/Repatch.cpp:
      * runtime/JSGenericTypedArrayViewInlines.h:
      (JSC::JSGenericTypedArrayView<Adaptor>::visitChildren):
      * runtime/JSPropertyNameIterator.h:
      (JSC::StructureRareData::setEnumerationCache):
      * runtime/JSString.cpp:
      (JSC::JSString::visitChildren):
      * runtime/StructureRareDataInlines.h:
      (JSC::StructureRareData::setPreviousID):
      (JSC::StructureRareData::setObjectToStringValue):
      * runtime/WeakMapData.cpp:
      (JSC::WeakMapData::visitChildren):
      
      Source/WTF: 
      
      * wtf/Bitmap.h:
      (WTF::WordType>::count): Added a cast that became necessary when Bitmap
      is used with smaller types than int32_t.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161540 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      196dc9ae
    • jinwoo7.song@samsung.com's avatar
      Unreviewed EFL gardening. Rebaseline after r161521. · 5cb7d754
      jinwoo7.song@samsung.com authored
      * platform/efl/css1/text_properties/letter_spacing-expected.png:
      * platform/efl/css1/text_properties/letter_spacing-expected.txt:
      * platform/efl/css1/text_properties/word_spacing-expected.png:
      * platform/efl/css1/text_properties/word_spacing-expected.txt:
      * platform/efl/fast/text/basic/013-expected.png:
      * platform/efl/fast/text/basic/013-expected.txt:
      * platform/efl/fast/text/text-letter-spacing-expected.txt:
      * platform/efl/svg/W3C-SVG-1.1/text-spacing-01-b-expected.png:
      * platform/efl/svg/W3C-SVG-1.1/text-spacing-01-b-expected.txt: Added.
      * platform/efl/svg/batik/text/textLayout-expected.txt: Added.
      * platform/efl/svg/custom/text-letter-spacing-expected.png: Added.
      * platform/efl/svg/custom/text-letter-spacing-expected.txt: Added.
      * platform/efl/svg/text/text-spacing-01-b-expected.png:
      * platform/efl/svg/text/text-spacing-01-b-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161539 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5cb7d754
    • commit-queue@webkit.org's avatar
      [JS] Should be able to create a promise by calling the Promise constructor as a function · 6b63e87a
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=126561
      
      Patch by Sam Weinig <sam@webkit.org> on 2014-01-08
      Reviewed by Geoffrey Garen.
      
      Source/JavaScriptCore:
      
      * runtime/JSPromiseConstructor.cpp:
      (JSC::JSPromiseConstructor::getCallData):
      Add support for calling the Promise constructor as a function (e.g. var p = Promise(...), note
      the missing "new").
      
      LayoutTests:
      
      * js/dom/Promise-types-expected.txt:
      * js/dom/Promise-types.html:
      Add test for using calling a Promise constructor as a function.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161538 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6b63e87a
    • bburg@apple.com's avatar
      Clean up confusing names and calculations in image-dragging functions · 7e579012
      bburg@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126661
      
      Reviewed by Timothy Hatcher.
      
      No new tests.
      
      * page/DragController.cpp:
      (WebCore::DragController::doImageDrag): rename variables and
      simplify the calculation of the image's scaled origin.
      
      * platform/DragImage.cpp:
      (WebCore::fitDragImageToMaxSize): rename variables.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161537 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7e579012
    • csaavedra@igalia.com's avatar
      [GTK] Add xdg.origin.url extended attribute to downloads · bba75580
      csaavedra@igalia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126638
      
      Reviewed by Carlos Garcia Campos.
      
      This is proposed by fdo in
      http://www.freedesktop.org/wiki/CommonExtendedAttributes/
      
      Source/WebKit/gtk:
      
      * webkit/webkitdownload.cpp:
      (webkit_download_open_stream_for_uri):
      
      Source/WebKit2:
      
      * Shared/Downloads/soup/DownloadSoup.cpp:
      (WebKit::DownloadClient::didReceiveResponse):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161536 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bba75580
    • commit-queue@webkit.org's avatar
      Missleading style error when mixing system and non-system header include lines. · 1de0b008
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=126564
      
      Patch by Gergo Balogh <geryxyz@inf.u-szeged.hu> on 2014-01-08
      Reviewed by Ryosuke Niwa.
      
      * Scripts/webkitpy/style/checkers/cpp.py:
      (check_include_line):
      * Scripts/webkitpy/style/checkers/cpp_unittest.py:
      (OrderOfIncludesTest.test_check_alphabetical_include_order):
      (OrderOfIncludesTest.test_public_primary_header):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161535 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1de0b008
    • seokju@webkit.org's avatar
      Web Inspector: Remove InspectorClient::captureScreenshot() · 38639d94
      seokju@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=126616
      
      Reviewed by Joseph Pecoraro.
      
      No new tests, No change in behavior.
      
      Remove leftover mothod as Page.captureScreenshot API was removed in r160202.
      
      * inspector/InspectorClient.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161534 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      38639d94
    • simon.fraser@apple.com's avatar
      Make WK2 build when ENABLE(ASYNC_SCROLLING) is not defined · 9679c1ea
      simon.fraser@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126675
      
      Reviewed by Tim Horton.
      
      We need a stub RemoteScrollingCoordinatorTransaction outside
      the #ifdef so that RemoteLayerTreeDrawingAreaProxy messages
      work.
      
      * Shared/Scrolling/RemoteScrollingCoordinatorTransaction.cpp:
      (WebKit::RemoteScrollingCoordinatorTransaction::encode):
      (WebKit::RemoteScrollingCoordinatorTransaction::decode):
      * Shared/Scrolling/RemoteScrollingCoordinatorTransaction.h:
      * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
      (WebKit::RemoteLayerTreeDrawingAreaProxy::commitLayerTree):
      * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
      (WebKit::RemoteLayerTreeDrawingArea::flushLayers):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161533 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9679c1ea
    • commit-queue@webkit.org's avatar
      Source/WebCore: Correctly set XHR loadend attributes (loaded and total). · 035fd017
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=120828
      
      Patch by Youenn Fablet <youennf@gmail.com> on 2014-01-08
      Reviewed by Alexey Proskuryakov.
      
      Added correct initialization of lengthComputable, loaded and total attributes
      to XHR ProgressEvent events (load, loadstart, loadend, abort, error and timeout).
      
      XMLHttpRequestProgressEventThrottle and XMLHttpRequestUpload now keep persistent knowledge
      of m_loaded and m_total values with this patch.
      
      Code refactoring to handle event dispatching in case of error in a single manner.
      XMLHttpRequestProgressEventThrottle::dispatchProgressEvent is renamed as dispatchThrottledProgressEvent
      XMLHttpRequestProgressEventThrottle::dispatchEventAndLoadend is replaced by dispatchProgressEvent(const AtomicString&)
      
      Tests: http/tests/xmlhttprequest/loadstart-event-init.html
             http/tests/xmlhttprequest/onabort-progressevent-attributes.html
             http/tests/xmlhttprequest/onload-progressevent-attributes.html
             http/tests/xmlhttprequest/upload-onabort-progressevent-attributes.html
             http/tests/xmlhttprequest/upload-onload-progressevent-attributes.html
      
      * xml/XMLHttpRequest.cpp:
      (WebCore::XMLHttpRequest::callReadyStateChangeListener): changed readystatechange event from ProgressEvent to Event (not cancellable, not bubblable) to better match the spec
      (WebCore::XMLHttpRequest::createRequest):
      (WebCore::XMLHttpRequest::abort): code refactoring to handle error event dispatching in a single way
      (WebCore::XMLHttpRequest::networkError): code refactoring to handle error event dispatching in a single way
      (WebCore::XMLHttpRequest::abortError): code refactoring to handle error event dispatching in a single way
      (WebCore::XMLHttpRequest::didSendData):
      (WebCore::XMLHttpRequest::didReceiveData):
      (WebCore::XMLHttpRequest::dispatchErrorEvents): dispatch progress events in case of error
      (WebCore::XMLHttpRequest::didTimeout): code refactoring to handle error event dispatching in a single way
      * xml/XMLHttpRequest.h:
      * xml/XMLHttpRequestProgressEventThrottle.cpp: before the patch, the fact that a progress event is being throttled is stored indirectly (m_loaded or m_total not equal to zero). With the patch, this information is stored in m_hasThrottledProgressEvent. The m_loaded and m_total values are no longer set back to zero after a progress event is dispatched. This allows using these values to correctly initialize other ProgressEvent events (in particular loadend, abort, timeout...)
      (WebCore::XMLHttpRequestProgressEventThrottle::XMLHttpRequestProgressEventThrottle):
      (WebCore::XMLHttpRequestProgressEventThrottle::dispatchThrottledProgressEvent): always update the new m_loaded and m_total values. If progress event is not sent as part of the function call, store the fact that a progress event is being throttled through m_hasThrottledProgressEvent.
      (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent): used to send any ProgressEvent event that is not be throttled
      (WebCore::XMLHttpRequestProgressEventThrottle::flushProgressEvent): after the call, no progress event is throttled anymore
      (WebCore::XMLHttpRequestProgressEventThrottle::fired): after the call, no progress event is throttled anymore
      (WebCore::XMLHttpRequestProgressEventThrottle::hasEventToDispatch):
      (WebCore::XMLHttpRequestProgressEventThrottle::suspend):
      * xml/XMLHttpRequestProgressEventThrottle.h: introduced m_hasThrottledProgressEvent which stores whether a progress event is being throttled and m_computableLength which is used to initialize ProgressEvent computableLength
      * xml/XMLHttpRequestUpload.cpp:
      (WebCore::XMLHttpRequestUpload::XMLHttpRequestUpload):
      (WebCore::XMLHttpRequestUpload::dispatchProgressEvent):
      * xml/XMLHttpRequestUpload.h: introduced m_loaded, m_total and m_lengthComputable, similarly to XMLHttpRequestProgressEventThrottle
      
      LayoutTests: Correctly set XHR loadend event attributes (loaded and total).
      https://bugs.webkit.org/show_bug.cgi?id=120828
      
      Patch by Youenn Fablet <youennf@gmail.com> on 2014-01-08
      Reviewed by Alexey Proskuryakov.
      
      Tests for abort, load, loadstart and loadend ProgressEvent events for XMLHttpRequest and XMLHttpRequestUpload
      
      * fast/xmlhttprequest/xmlhttprequest-get-expected.txt: Changed to correct event values
      * http/tests/xmlhttprequest/loadstart-event-init-expected.txt: Added.
      * http/tests/xmlhttprequest/loadstart-event-init.html: Added.
      * http/tests/xmlhttprequest/onabort-progressevent-attributes-expected.txt: Added.
      * http/tests/xmlhttprequest/onabort-progressevent-attributes.html: Added.
      * http/tests/xmlhttprequest/onload-progressevent-attributes-expected.txt: Added.
      * http/tests/xmlhttprequest/onload-progressevent-attributes.html: Added.
      * http/tests/xmlhttprequest/upload-onabort-progressevent-attributes-expected.txt: Added.
      * http/tests/xmlhttprequest/upload-onabort-progressevent-attributes.html: Added.
      * http/tests/xmlhttprequest/upload-onload-progressevent-attributes-expected.txt: Added.
      * http/tests/xmlhttprequest/upload-onload-progressevent-attributes.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161532 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      035fd017
    • timothy_horton@apple.com's avatar
      TileController can fail to receive exposedRect from the drawing area if set at the wrong time · 50af46e0
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126536
      
      Reviewed by Simon Fraser.
      
      * Configurations/WebKit2.xcconfig:
      * UIProcess/API/mac/WKView.mm:
      (-[WKView _updateViewExposedRect]):
      * UIProcess/DrawingAreaProxy.cpp:
      (WebKit::DrawingAreaProxy::DrawingAreaProxy):
      (WebKit::DrawingAreaProxy::setExposedRect):
      (WebKit::DrawingAreaProxy::exposedRectChangedTimerFired):
      * UIProcess/DrawingAreaProxy.h:
      (WebKit::DrawingAreaProxy::exposedRect):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      (WebKit::WebPageProxy::close):
      * UIProcess/WebPageProxy.h:
      Move exposedRect stuff from WebPageProxy to DrawingAreaProxy.
      
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
      Push the exposedRect down into WebCore.
      
      * WebProcess/WebPage/DrawingArea.h:
      * WebProcess/WebPage/DrawingArea.messages.in:
      * WebProcess/WebPage/WebPage.cpp:
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebPage/WebPage.messages.in:
      * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
      * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
      (WebKit::RemoteLayerTreeDrawingArea::RemoteLayerTreeDrawingArea):
      (WebKit::RemoteLayerTreeDrawingArea::updateScrolledExposedRect):
      * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
      * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
      (WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea):
      (WebKit::TiledCoreAnimationDrawingArea::flushLayers):
      (WebKit::TiledCoreAnimationDrawingArea::updateScrolledExposedRect):
      (WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer):
      (WebKit::TiledCoreAnimationDrawingArea::createPageOverlayLayer):
      (WebKit::TiledCoreAnimationDrawingArea::didCommitChangesForLayer):
      Get rid of "clipsToExposedRect", we just use infinite-ness of the rect
      to indicate that now.
      Don't scroll an infinite rect; it won't work.
      
      * WebCore.exp.in:
      Export some things.
      
      * page/FrameView.cpp:
      (WebCore::FrameView::FrameView):
      (WebCore::FrameView::setExposedRect):
      Store the exposed rect on FrameView. When it changes, if the main frame
      has a TiledBacking, inform it of the change.
      
      * page/FrameView.h:
      * platform/graphics/TiledBacking.h:
      * platform/graphics/ca/mac/TileController.h:
      * platform/graphics/ca/mac/TileController.mm:
      (WebCore::TileController::TileController):
      (WebCore::TileController::tilesWouldChangeForVisibleRect):
      (WebCore::TileController::computeTileCoverageRect):
      (WebCore::TileController::revalidateTiles):
      (WebCore::TileController::updateTileCoverageMap):
      Make use of the fact that we can test if a rect is infinite
      instead of having a separate boolean property for that.
      
      * rendering/RenderLayerBacking.cpp:
      (WebCore::RenderLayerBacking::RenderLayerBacking):
      (WebCore::computeTileCoverage):
      Push the FrameView's cached exposed rect down into the TiledBacking when it is created.
      We only support clipping for the main frame TileController for now.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161530 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      50af46e0
    • simon.fraser@apple.com's avatar
      Add ENABLE(ASYNC_SCROLLING) guards around WK2 scrolling files · 4b8507a9
      simon.fraser@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126672
      
      Reviewed by Tim Horton.
      
      Protected WK2 scrolling files with ENABLE(ASYNC_SCROLLING) guards.
      
      * Shared/Scrolling/RemoteScrollingCoordinatorTransaction.cpp:
      * Shared/Scrolling/RemoteScrollingCoordinatorTransaction.h:
      * UIProcess/Scrolling/RemoteScrollingCoordinatorProxy.cpp:
      * UIProcess/Scrolling/RemoteScrollingCoordinatorProxy.h:
      * UIProcess/Scrolling/RemoteScrollingTree.cpp:
      * UIProcess/Scrolling/RemoteScrollingTree.h:
      * WebProcess/Scrolling/RemoteScrollingCoordinator.h:
      * WebProcess/Scrolling/RemoteScrollingCoordinator.messages.in:
      * WebProcess/Scrolling/RemoteScrollingCoordinator.mm:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161529 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4b8507a9
    • mrobinson@webkit.org's avatar
      [GTK] [CMake] Specify the executable and library output locations in the build · cb6d8f02
      mrobinson@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=126671
      
      Reviewed by Gustavo Noronha Silva.
      
      * Source/cmake/OptionsGTK.cmake: Explicitly specify the output locations.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161528 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cb6d8f02
    • ryuan.choi@samsung.com's avatar
      [EFL][WK2] Add API to execute js script · 1d585cb8
      ryuan.choi@samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=101904
      
      Reviewed by Gyuyoung Kim.
      
      Add ewk_view_script_execute() which provides a way to execute user
      script.
      
      * UIProcess/API/efl/ewk_context.cpp:
      Added JS Global Contexta which is required to deserialize to the script
      value from the callback.
      (EwkContext::EwkContext):
      (EwkContext::~EwkContext):
      (EwkContext::jsGlobalContext):
      * UIProcess/API/efl/ewk_context_private.h:
      * UIProcess/API/efl/ewk_view.cpp:
      (Ewk_View_Script_Execute_Callback_Context::Ewk_View_Script_Execute_Callback_Context):
      (runJavaScriptCallback):
      (ewk_view_script_execute):
      * UIProcess/API/efl/ewk_view.h:
      * UIProcess/API/efl/tests/test_ewk2_view.cpp:
      Added unit test for ewk_view_script_execute.
      (scriptExecuteCallback):
      (TEST_F):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161527 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1d585cb8
    • ryuan.choi@samsung.com's avatar
      [EFL] Merge ewk_view_single into ewk_view · 3beac403
      ryuan.choi@samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126508
      
      Reviewed by Gyuyoung Kim.
      
      Source/WebKit:
      
      * PlatformEfl.cmake: Removed ewk_view_single.cpp.
      
      Source/WebKit/efl:
      
      Since ewk_view_tiled is removed at r161134, we don't need to keep
      ewk_view_single out of ewk_view.cpp.
      
      This patch moves the logic of ewk_view_single to ewk_view and refactors it.
      In addition, replaces 0.00001 to episilon.
      
      * ewk/ewk_view.cpp:
      (_ewk_view_smart_add):
      (_ewk_view_smart_resize): Merged with the logic of ewk_view_single.
      (_ewk_view_screen_move): Moved from ewk_view_single.cpp.
      (_ewk_view_scroll_process): Ditto.
      (_ewk_view_smart_scrolls_process): Ditto.
      (_ewk_view_smart_repaints_process): Ditto.
      (_ewk_view_smart_calculate): Removed unnecessary check routine for scrolls_process.
      (_ewk_view_smart_zoom_weak_set):
      (_ewk_view_smart_zoom_weak_smooth_scale_set):
      (ewk_view_base_smart_set): Merged smart method of ewk_view_single.
      (ewk_view_single_smart_set):
      (_ewk_view_single_smart_class_new):
      (ewk_view_single_add):
      (ewk_view_bg_color_set):
      (ewk_view_pre_render_region):
      (ewk_view_scrolls_process):
      * ewk/ewk_view.h:
      * ewk/ewk_view_private.h: Removed unncessary functions.
      * ewk/ewk_view_single.cpp: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161526 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3beac403
    • gyuyoung.kim@samsung.com's avatar
      [EFL] Move efl API test binaries to TestWebKitAPI/EWebKit|EWebKit2 · cdebde2f
      gyuyoung.kim@samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126615
      
      Reviewed by Martin Robinson.
      
      Now EFL API test binaries created in *bin* directory with other executables.
      It would be good to move them to their folder. This patch moves them to
      *TestWebKitAPI/EWebKit|EWebKit2* directories.
      
      Source/WebKit:
      
      * PlatformEfl.cmake:
      
      Source/WebKit2:
      
      * PlatformEfl.cmake:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161525 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cdebde2f
  2. 08 Jan, 2014 25 commits