1. 29 Oct, 2012 4 commits
  2. 27 Oct, 2012 3 commits
    • msaboff@apple.com's avatar
      Try to create AtomicString as 8 bit where possible · 85d45dc8
      msaboff@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=100575
      
      Reviewed by Oliver Hunt.
      
      Added StringImpl::create8BitIfPossible() that first tries to create an 8 bit string.  If it finds a 16 bit character
      during processing, it calls the standard create() method.  The assumption is that this will be used on mostly 8 bit
      strings and ones that are shorter (in the tens of characters).  Changed AtomicString to use the new creation method
      for UChar based construction.
      
      * wtf/text/AtomicString.cpp:
      (WTF::UCharBufferTranslator::translate):
      * wtf/text/StringImpl.cpp:
      (WTF::StringImpl::create8BitIfPossible):
      * wtf/text/StringImpl.h:
      (WTF::StringImpl::create8BitIfPossible):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132739 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      85d45dc8
    • msaboff@apple.com's avatar
      String::fromUTF8() should take advantage of the ASCII check in convertUTF8ToUTF16() · dad8d20c
      msaboff@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=100577
      
      Reviewed by Oliver Hunt.
      
      Passed is ASCII flag to convertUTF8ToUTF16() and if try, create an 8 bit string from the original arguments.
      
      * wtf/text/WTFString.cpp:
      (WTF::String::fromUTF8):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132736 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dad8d20c
    • mitz@apple.com's avatar
      REAL_PLATFORM_NAME build setting is no longer needed · ba174339
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=100587
      
      Reviewed by Mark Rowe.
      
      Removed the definition of REAL_PLATFORM_NAME and replaced references to it with references
      to PLATFORM_NAME.
      
      Source/JavaScriptCore: 
      
      * Configurations/Base.xcconfig:
      * Configurations/CompilerVersion.xcconfig:
      * Configurations/DebugRelease.xcconfig:
      * Configurations/FeatureDefines.xcconfig:
      * Configurations/JSC.xcconfig:
      * Configurations/JavaScriptCore.xcconfig:
      * Configurations/ToolExecutable.xcconfig:
      
      Source/ThirdParty: 
      
      * gtest/xcode/Config/CompilerVersion.xcconfig:
      * gtest/xcode/Config/General.xcconfig:
      
      Source/ThirdParty/ANGLE: 
      
      * Configurations/Base.xcconfig:
      * Configurations/CompilerVersion.xcconfig:
      
      Source/WebCore: 
      
      * Configurations/Base.xcconfig:
      * Configurations/CompilerVersion.xcconfig:
      * Configurations/DebugRelease.xcconfig:
      * Configurations/FeatureDefines.xcconfig:
      * Configurations/Version.xcconfig:
      * Configurations/WebCore.xcconfig:
      
      Source/WebKit/mac: 
      
      * Configurations/Base.xcconfig:
      * Configurations/CompilerVersion.xcconfig:
      * Configurations/DebugRelease.xcconfig:
      * Configurations/FeatureDefines.xcconfig:
      * Configurations/Version.xcconfig:
      * Configurations/WebKit.xcconfig:
      
      Source/WebKit2: 
      
      * Configurations/Base.xcconfig:
      * Configurations/BaseTarget.xcconfig:
      * Configurations/CompilerVersion.xcconfig:
      * Configurations/FeatureDefines.xcconfig:
      * Configurations/WebKit2.xcconfig:
      
      Source/WTF: 
      
      * Configurations/Base.xcconfig:
      * Configurations/CompilerVersion.xcconfig:
      * Configurations/DebugRelease.xcconfig:
      
      Tools: 
      
      * DumpRenderTree/mac/Configurations/Base.xcconfig:
      * DumpRenderTree/mac/Configurations/CompilerVersion.xcconfig:
      * DumpRenderTree/mac/Configurations/DebugRelease.xcconfig:
      * MiniBrowser/Configurations/Base.xcconfig:
      * MiniBrowser/Configurations/CompilerVersion.xcconfig:
      * TestWebKitAPI/Configurations/Base.xcconfig:
      * TestWebKitAPI/Configurations/CompilerVersion.xcconfig:
      * WebKitTestRunner/Configurations/Base.xcconfig:
      * WebKitTestRunner/Configurations/CompilerVersion.xcconfig:
      * WebKitTestRunner/Configurations/DebugRelease.xcconfig:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132729 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba174339
  3. 26 Oct, 2012 3 commits
  4. 25 Oct, 2012 2 commits
    • msaboff@apple.com's avatar
      REGRESSION (r131836): failures in list styles tests on EFL, GTK · d924b17b
      msaboff@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=99824
      
      Reviewed by Oliver Hunt.
      
      Source/JavaScriptCore:
      
      Saved start of string since it is modified by call convertUTF8ToUTF16().
      
      * API/JSStringRef.cpp:
      (JSStringCreateWithUTF8CString):
      
      Source/WTF:
      
      Fixed ASCII check.
      Added placeholder argument for new argument added to convertUTF8ToUTF16() in http://trac.webkit.org/changeset/131836.
      
      * wtf/unicode/UTF8.cpp:
      (WTF::Unicode::convertUTF8ToUTF16):
      * wtf/unicode/glib/UnicodeGLib.cpp:
      (WTF::Unicode::convertCase):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132507 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d924b17b
    • commit-queue@webkit.org's avatar
      [EFL][WK2] Remove some C'ism from EwkView · 8ad4d36c
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=100370
      
      Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-10-25
      Reviewed by Kenneth Rohde Christiansen.
      
      Source/WebKit2:
      
      Remove a lot of C'ism from EwkView:
      - Make more members private and add C++ methods to
      EwkViewImpl for the public C API to use
      - Use smart pointers when possible instead of raw
      ones
      - Use C++ naming conventions for callback functions
      and define them as static methods in EwkViewImpl.
      
      * UIProcess/API/efl/EwkViewImpl.cpp:
      (EwkViewImpl::onIMFInputSequenceComplete):
      (EwkViewImpl::onIMFPreeditSequenceChanged):
      (EwkViewImpl::createIMFContext):
      (EwkViewImpl::EwkViewImpl):
      (EwkViewImpl::~EwkViewImpl):
      (EwkViewImpl::setCursor):
      (EwkViewImpl::setColorPickerColor):
      (EwkViewImpl::isFocused):
      (EwkViewImpl::isVisible):
      (EwkViewImpl::title):
      (EwkViewImpl::inputMethodContext):
      (EwkViewImpl::themePath):
      (EwkViewImpl::setThemePath):
      (EwkViewImpl::customTextEncodingName):
      (EwkViewImpl::setCustomTextEncodingName):
      (EwkViewImpl::setMouseEventsEnabled):
      (EwkViewImpl::setTouchEventsEnabled):
      (EwkViewImpl::informIconChange):
      (EwkViewImpl::requestColorPicker):
      (EwkViewImpl::dismissColorPicker):
      (EwkViewImpl::updateTextInputState):
      (EwkViewImpl::informURLChange):
      (EwkViewImpl::onMouseDown):
      (EwkViewImpl::onMouseUp):
      (EwkViewImpl::onMouseMove):
      (EwkViewImpl::feedTouchEvents):
      (EwkViewImpl::onTouchDown):
      (EwkViewImpl::onTouchUp):
      (EwkViewImpl::onTouchMove):
      * UIProcess/API/efl/EwkViewImpl.h:
      (WebCore):
      (EwkViewImpl::ewkContext):
      (EwkViewImpl::settings):
      (EwkViewImpl):
      (EwkViewImpl::url):
      (EwkViewImpl::faviconURL):
      (EwkViewImpl::mouseEventsEnabled):
      (EwkViewImpl::touchEventsEnabled):
      * UIProcess/API/efl/PageClientImpl.cpp:
      (WebKit::PageClientImpl::isViewFocused):
      (WebKit::PageClientImpl::isViewVisible):
      (WebKit::PageClientImpl::didRelaunchProcess):
      (WebKit::PageClientImpl::handleDownloadRequest):
      * UIProcess/API/efl/ewk_settings_private.h:
      (Ewk_Settings::create):
      (Ewk_Settings::Ewk_Settings):
      (Ewk_Settings):
      * UIProcess/API/efl/ewk_view.cpp:
      (_ewk_view_smart_mouse_up):
      (_ewk_view_smart_key_down):
      (_ewk_view_smart_add):
      (ewk_view_context_get):
      (ewk_view_url_get):
      (ewk_view_icon_url_get):
      (ewk_view_settings_get):
      (ewk_view_title_get):
      (ewk_view_theme_set):
      (ewk_view_theme_get):
      (ewk_view_setting_encoding_custom_get):
      (ewk_view_setting_encoding_custom_set):
      (ewk_view_mouse_events_enabled_set):
      (ewk_view_mouse_events_enabled_get):
      (ewk_view_color_picker_color_set):
      (ewk_view_touch_events_enabled_set):
      (ewk_view_touch_events_enabled_get):
      * UIProcess/efl/WebInspectorProxyEfl.cpp:
      (WebKit::WebInspectorProxy::platformCreateInspectorPage):
      
      Source/WTF:
      
      Make OwnPtr useable for Ecore_IMF_Context to avoid
      using raw pointers in EFL port.
      
      * wtf/OwnPtrCommon.h:
      (WTF):
      * wtf/PlatformEfl.cmake:
      * wtf/efl/OwnPtrEfl.cpp:
      (WTF::deleteOwnedPtr):
      (WTF):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132498 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8ad4d36c
  5. 24 Oct, 2012 1 commit
    • yurys@chromium.org's avatar
      Web Inspector: provide memory instrumentation for ListHashSet · c129c71f
      yurys@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=97786
      
      Reviewed by Vsevolod Vlasov.
      
      Source/WebCore:
      
      Switched existing usages of addListHashSet to the generic instrumentation mechanism
      as it should work just just fine now that there is a memory instrumentation of
      ListHashSet.
      
      * dom/DocumentEventQueue.cpp:
      * dom/DocumentStyleSheetCollection.cpp:
      (WebCore::DocumentStyleSheetCollection::reportMemoryUsage):
      * loader/cache/CachedResourceLoader.cpp:
      (WebCore::CachedResourceLoader::reportMemoryUsage):
      
      Source/WebKit/chromium:
      
      Added a test for ListHashSet memory instrumentation.
      
      * tests/MemoryInstrumentationTest.cpp:
      (WebCore::TEST):
      (WebCore):
      
      Source/WTF:
      
      Added memory instrumentation for ListHashSet.
      
      * GNUmakefile.list.am:
      * WTF.gypi:
      * WTF.pro:
      * WTF.vcproj/WTF.vcproj:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/HashSet.h:
      (WTF):
      * wtf/ListHashSet.h:
      (ListHashSet):
      (ListHashSetNodeAllocator): changed visibility of inPool method to public
      (WTF::ListHashSetNodeAllocator::pool):
      (WTF::ListHashSetNodeAllocator::pastPool):
      (WTF::::sizeInBytes): added a method that returns size of the set in bytes including
      all its internals but not the content elements.
      (WTF):
      * wtf/MemoryInstrumentation.h: removed onsolete method. All clients were updated to
      use generic addMember instead.
      (MemoryInstrumentation):
      (WTF::MemoryClassInfo::addPrivateBuffer):
      * wtf/MemoryInstrumentationHashSet.h:
      * wtf/MemoryInstrumentationListHashSet.h: Copied from Source/WTF/wtf/MemoryInstrumentationHashSet.h.
      (WTF):
      (WTF::reportMemoryUsage):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132331 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c129c71f
  6. 23 Oct, 2012 1 commit
  7. 22 Oct, 2012 3 commits
  8. 21 Oct, 2012 1 commit
  9. 19 Oct, 2012 5 commits
    • mark.lam@apple.com's avatar
      Added WTF::StackStats mechanism. · 6df1a804
      mark.lam@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=99805.
      
      Reviewed by Geoffrey Garen.
      
      Source/JavaScriptCore: 
      
      Added StackStats checkpoints and probes.
      
      * bytecompiler/BytecodeGenerator.h:
      (JSC::BytecodeGenerator::emitNode):
      (JSC::BytecodeGenerator::emitNodeInConditionContext):
      * heap/SlotVisitor.cpp:
      (JSC::SlotVisitor::append):
      (JSC::visitChildren):
      (JSC::SlotVisitor::donateKnownParallel):
      (JSC::SlotVisitor::drain):
      (JSC::SlotVisitor::drainFromShared):
      (JSC::SlotVisitor::mergeOpaqueRoots):
      (JSC::SlotVisitor::internalAppend):
      (JSC::SlotVisitor::harvestWeakReferences):
      (JSC::SlotVisitor::finalizeUnconditionalFinalizers):
      * interpreter/Interpreter.cpp:
      (JSC::Interpreter::execute):
      (JSC::Interpreter::executeCall):
      (JSC::Interpreter::executeConstruct):
      (JSC::Interpreter::prepareForRepeatCall):
      * parser/Parser.h:
      (JSC::Parser::canRecurse):
      * runtime/StringRecursionChecker.h:
      (StringRecursionChecker):
      
      Source/WebCore: 
      
      Added StackStats probes in layout methods.
      
      * dom/Document.cpp:
      (WebCore::Document::updateLayout):
      * rendering/RenderBlock.cpp:
      (WebCore::RenderBlock::layout):
      * rendering/RenderBox.cpp:
      (WebCore::RenderBox::layout):
      * rendering/RenderDialog.cpp:
      (WebCore::RenderDialog::layout):
      * rendering/RenderEmbeddedObject.cpp:
      (WebCore::RenderEmbeddedObject::layout):
      * rendering/RenderFlowThread.cpp:
      (WebCore::RenderFlowThread::layout):
      * rendering/RenderFrameSet.cpp:
      (WebCore::RenderFrameSet::layout):
      * rendering/RenderIFrame.cpp:
      (WebCore::RenderIFrame::layout):
      * rendering/RenderImage.cpp:
      (WebCore::RenderImage::layout):
      * rendering/RenderListBox.cpp:
      (WebCore::RenderListBox::layout):
      * rendering/RenderListItem.cpp:
      (WebCore::RenderListItem::layout):
      * rendering/RenderListMarker.cpp:
      (WebCore::RenderListMarker::layout):
      * rendering/RenderMedia.cpp:
      (WebCore::RenderMedia::layout):
      * rendering/RenderObject.cpp:
      (WebCore::RenderObject::layout):
      * rendering/RenderObject.h:
      * rendering/RenderRegion.cpp:
      (WebCore::RenderRegion::layout):
      * rendering/RenderReplaced.cpp:
      (WebCore::RenderReplaced::layout):
      * rendering/RenderReplica.cpp:
      (WebCore::RenderReplica::layout):
      * rendering/RenderRubyRun.cpp:
      (WebCore::RenderRubyRun::layoutSpecialExcludedChild):
      * rendering/RenderScrollbarPart.cpp:
      (WebCore::RenderScrollbarPart::layout):
      * rendering/RenderSlider.cpp:
      (WebCore::RenderSlider::layout):
      * rendering/RenderTable.cpp:
      (WebCore::RenderTable::layout):
      * rendering/RenderTableCell.cpp:
      (WebCore::RenderTableCell::layout):
      * rendering/RenderTableRow.cpp:
      (WebCore::RenderTableRow::layout):
      * rendering/RenderTableSection.cpp:
      (WebCore::RenderTableSection::layout):
      * rendering/RenderTextControlSingleLine.cpp:
      (WebCore::RenderTextControlSingleLine::layout):
      * rendering/RenderTextTrackCue.cpp:
      (WebCore::RenderTextTrackCue::layout):
      * rendering/RenderVideo.cpp:
      (WebCore::RenderVideo::layout):
      * rendering/RenderView.cpp:
      (WebCore::RenderView::layout):
      * rendering/RenderWidget.cpp:
      (WebCore::RenderWidget::layout):
      * rendering/svg/RenderSVGContainer.cpp:
      (WebCore::RenderSVGContainer::layout):
      * rendering/svg/RenderSVGForeignObject.cpp:
      (WebCore::RenderSVGForeignObject::layout):
      * rendering/svg/RenderSVGGradientStop.cpp:
      (WebCore::RenderSVGGradientStop::layout):
      * rendering/svg/RenderSVGHiddenContainer.cpp:
      (WebCore::RenderSVGHiddenContainer::layout):
      * rendering/svg/RenderSVGImage.cpp:
      (WebCore::RenderSVGImage::layout):
      * rendering/svg/RenderSVGResourceContainer.cpp:
      (WebCore::RenderSVGResourceContainer::layout):
      * rendering/svg/RenderSVGResourceMarker.cpp:
      (WebCore::RenderSVGResourceMarker::layout):
      * rendering/svg/RenderSVGRoot.cpp:
      (WebCore::RenderSVGRoot::layout):
      * rendering/svg/RenderSVGShape.cpp:
      (WebCore::RenderSVGShape::layout):
      * rendering/svg/RenderSVGText.cpp:
      (WebCore::RenderSVGText::layout):
      
      Source/WTF: 
      
      Disabled by default. Should have no performance and memory cost when
      disabled. To enable, #define ENABLE_STACK_STATS 1 in StackStats.h.
      The output is currently hardcoded to be dumped in /tmp/stack-stats.log,
      and is in the form of stack sample events. By default, it only logs
      a sample event when a new high watermark value is encountered.
      
      Also renamed StackBounds::recursiveCheck() to isSafeToRecurse().
      
      * WTF.xcodeproj/project.pbxproj:
      * wtf/StackBounds.h:
      (StackBounds):
      (WTF::StackBounds::size):
      (WTF::StackBounds::isSafeToRecurse):
      * wtf/StackStats.cpp: Added.
      (WTF):
      (WTF::StackStats::initialize):
      (WTF::StackStats::PerThreadStats::PerThreadStats):
      (WTF::StackStats::CheckPoint::CheckPoint):
      (WTF::StackStats::CheckPoint::~CheckPoint):
      (WTF::StackStats::probe):
      (WTF::StackStats::LayoutCheckPoint::LayoutCheckPoint):
      (WTF::StackStats::LayoutCheckPoint::~LayoutCheckPoint):
      * wtf/StackStats.h: Added.
      (WTF):
      (StackStats):
      (CheckPoint):
      (WTF::StackStats::CheckPoint::CheckPoint):
      (PerThreadStats):
      (WTF::StackStats::PerThreadStats::PerThreadStats):
      (LayoutCheckPoint):
      (WTF::StackStats::LayoutCheckPoint::LayoutCheckPoint):
      (WTF::StackStats::initialize):
      (WTF::StackStats::probe):
      * wtf/ThreadingPthreads.cpp:
      (WTF::initializeThreading):
      * wtf/WTFThreadData.cpp:
      (WTF::WTFThreadData::WTFThreadData):
      * wtf/WTFThreadData.h:
      (WTFThreadData):
      (WTF::WTFThreadData::stackStats):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131938 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6df1a804
    • andersca@apple.com's avatar
      Deque can use std::reverse_iterator for its reverse iterators · 967978d0
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=99789
      
      Reviewed by Andreas Kling.
      
      Remove DequeReverseIterator and DequeConstReverseIterator and just use std::reverse_iterator directly.
      Also, remove the DequeIteratorBase<T, inlineCapacity> to Base typedef - We can already use DequeIteratorBase since it's
      equivalent to the full class template type.
      
      * wtf/Deque.h:
      (WTF::Deque::rbegin):
      (WTF::Deque::rend):
      (DequeIteratorBase):
      (WTF::DequeIteratorBase::assign):
      (DequeIterator):
      (DequeConstIterator):
      (WTF::::checkValidity):
      (WTF::::DequeIteratorBase):
      (WTF::=):
      (WTF::::isEqual):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131920 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      967978d0
    • ossy@webkit.org's avatar
      Unreviewed buildfix, use C-style comment instead of C++ · 47dbefd7
      ossy@webkit.org authored
      * wtf/Platform.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131897 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      47dbefd7
    • hausmann@webkit.org's avatar
      REGRESSION(r131822): It made 500+ tests crash on 32 bit platforms · fe6bb5b4
      hausmann@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99814
      
      Patch by Csaba Osztrogonác <ossy@webkit.org> on 2012-10-19
      Reviewed by Simon Hausmann.
      
      * wtf/Platform.h: Disable LLINT on (PLATFORM(QT) && CPU(X86)) temporarily until proper fix.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131889 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fe6bb5b4
    • loislo@chromium.org's avatar
      Web Inspector: NMI provide data for mixing with tcmalloc heap dumps. · e5eff8e6
      loislo@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99457
      
      Reviewed by Yury Semikhatsky.
      
      Source/WebCore:
      
      countObjectSize now accepts ptr as the first argument and saves it into HashMap if the binary was ran with HEAPPROFILE env variable.
      getProcessMemoryDistribution does snapshot and calls the downstream code with the map of counted objects.
      
      * inspector/InspectorClient.h:
      (WebCore::InspectorClient::dumpUncountedAllocatedObjects):
      * inspector/InspectorMemoryAgent.cpp:
      (WebCore::reportJSHeapInfo):
      (WebCore::reportRenderTreeInfo):
      (WebCore):
      (WebCore::InspectorMemoryAgent::getProcessMemoryDistribution):
      * inspector/MemoryInstrumentationImpl.cpp:
      (WebCore::MemoryInstrumentationClientImpl::countObjectSize):
      (WebCore::MemoryInstrumentationClientImpl::reportMemoryUsage):
      * inspector/MemoryInstrumentationImpl.h:
      (MemoryInstrumentationClientImpl):
      (WebCore::MemoryInstrumentationClientImpl::countedObjects):
      
      Source/WebKit/chromium:
      
      Embedder's code wraps the map with counted objects info into InstrumentedObjectSizeProvider
      and forces downstream code to make tcmalloc heap snapshot.
      The default implementation is empty.
      
      * public/WebDevToolsAgentClient.h:
      (InstrumentedObjectSizeProvider):
      (WebKit::WebDevToolsAgentClient::InstrumentedObjectSizeProvider::~InstrumentedObjectSizeProvider):
      (WebKit::WebDevToolsAgentClient::dumpUncountedAllocatedObjects):
      (WebDevToolsAgentClient):
      * src/InspectorClientImpl.cpp:
      (WebKit::InspectorClientImpl::dumpUncountedAllocatedObjects):
      (WebKit):
      * src/InspectorClientImpl.h:
      (InspectorClientImpl):
      * src/WebDevToolsAgentImpl.cpp:
      (WebKit::WebDevToolsAgentImpl::getAllocatedObjects):
      (WebKit::WebDevToolsAgentImpl::dumpUncountedAllocatedObjects):
      (WebKit):
      * src/WebDevToolsAgentImpl.h:
      (WebDevToolsAgentImpl):
      
      Source/WTF:
      
      countObjectSize now accepts ptr as the first argument and saves it into HashMap if the binary was ran with HEAPPROFILE env variable.
      getProcessMemoryDistribution does snapshot and calls the downstream code with the map of counted objects.
      
      * wtf/MemoryInstrumentation.h:
      (MemoryInstrumentationClient):
      (WTF::MemoryInstrumentation::countObjectSize):
      (WTF::MemoryInstrumentation::addRawBuffer):
      (WTF::MemoryClassInfo::addPrivateBuffer):
      (WTF::MemoryInstrumentation::addObjectImpl):
      (WTF::MemoryInstrumentation::addListHashSet):
      (WTF::::process):
      
      Tools:
      
      countObjectSize now requires pointer to object as the first argument.
      
      * TestWebKitAPI/Tests/WTF/MemoryInstrumentationTest.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131869 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e5eff8e6
  10. 18 Oct, 2012 3 commits
  11. 17 Oct, 2012 5 commits
  12. 16 Oct, 2012 4 commits
  13. 15 Oct, 2012 5 commits
    • kling@webkit.org's avatar
      Remove WTF::fastDeleteAllValues(). · d9ab472d
      kling@webkit.org authored
      <http://webkit.org/b/99345>
      
      Reviewed by Eric Seidel.
      
      It was only used to fastDelete() a class that was already overriding operator delete
      by way of WTF_MAKE_FAST_ALLOCATED anyway.
      
      Source/WebCore:
      
      * css/CSSParser.cpp:
      (WebCore::CSSParser::~CSSParser):
      
      Source/WTF:
      
      * wtf/HashSet.h:
      (WTF):
      (HashSet):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131362 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d9ab472d
    • mhahnenberg@apple.com's avatar
      Parallel GC should not be disabled for all platforms · 8009a0ef
      mhahnenberg@apple.com authored
      * wtf/Platform.h: D'oh!
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131328 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8009a0ef
    • staikos@webkit.org's avatar
      [BlackBerry] Adapt to Platform API changes in string handling · 13e999a4
      staikos@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99248
      
      Reviewed by Yong Li.
      
      Convert usage of WebString, char* and std::string to BlackBerry::Platform::String.
      
      Source/WebCore:
      
      * html/track/TextTrack.cpp:
      (WebCore::TextTrack::TextTrack): Fix the build for BlackBerry.
      * page/blackberry/SettingsBlackBerry.cpp:
      (WebCore):
      (WebCore::Settings::initializeDefaultFontFamilies):
      * platform/blackberry/LocalizedStringsBlackBerry.cpp:
      * platform/blackberry/MIMETypeRegistryBlackBerry.cpp:
      (WebCore::MIMETypeRegistry::getMIMETypeForExtension):
      (WebCore::MIMETypeRegistry::getPreferredExtensionForMIMEType):
      * platform/blackberry/PasteboardBlackBerry.cpp:
      (WebCore::Pasteboard::writeSelection):
      (WebCore::Pasteboard::writeURL):
      (WebCore::Pasteboard::writePlainText):
      (WebCore::Pasteboard::plainText):
      (WebCore::Pasteboard::documentFragment):
      * platform/blackberry/ReadOnlyLatin1String.h: Removed.
      * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:
      (WebCore::MediaPlayerPrivate::getSupportedTypes):
      (WebCore::MediaPlayerPrivate::supportsType):
      (WebCore::MediaPlayerPrivate::setCertificatePath):
      (WebCore::MediaPlayerPrivate::load):
      (WebCore::generateProtectionSpaceFromMMRAuthChallenge):
      (WebCore::MediaPlayerPrivate::onAuthenticationNeeded):
      (WebCore::MediaPlayerPrivate::onAuthenticationAccepted):
      (WebCore::MediaPlayerPrivate::lookupMediaStream):
      * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.h:
      (MediaPlayerPrivate):
      (WebCore::MediaPlayerPrivate::engineDescription):
      * platform/network/blackberry/DNSBlackBerry.cpp:
      (WebCore::prefetchDNS):
      * platform/network/blackberry/NetworkJob.cpp:
      (WebCore::NetworkJob::initialize):
      (WebCore::NetworkJob::notifyStatusReceived):
      (WebCore::NetworkJob::notifyHeadersReceived):
      (WebCore::NetworkJob::handleNotifyClose):
      (WebCore::NetworkJob::sendRequestWithCredentials):
      * platform/network/blackberry/NetworkJob.h:
      (NetworkJob):
      * platform/network/blackberry/NetworkManager.cpp:
      (WebCore::NetworkManager::startJob):
      * platform/network/blackberry/ResourceRequestBlackBerry.cpp:
      (WebCore::ResourceRequest::initializePlatformRequest):
      * platform/network/blackberry/SocketStreamHandleBlackBerry.cpp:
      (WebCore::SocketStreamHandle::SocketStreamHandle):
      * platform/text/blackberry/StringBlackBerry.cpp:
      (WTF::String::String):
      (WTF::String::operator BlackBerry::Platform::String):
      * platform/text/blackberry/TextBreakIteratorInternalICUBlackBerry.cpp:
      
      Source/WebKit:
      
      * PlatformBlackBerry.cmake:
      
      Source/WebKit/blackberry:
      
      * Api/BlackBerryGlobal.cpp:
      (BlackBerry::WebKit::clearAppCache):
      (BlackBerry::WebKit::clearDatabase):
      * Api/BlackBerryGlobal.h:
      (Platform):
      (WebKit):
      * Api/JavaScriptVariant.cpp:
      (BlackBerry::WebKit::JSValueRefToBlackBerryJavaScriptVariant):
      (BlackBerry::WebKit::BlackBerryJavaScriptVariantToJSValueRef):
      (BlackBerry::WebKit::JavaScriptVariant::JavaScriptVariant):
      (WebKit):
      (BlackBerry::WebKit::JavaScriptVariant::~JavaScriptVariant):
      (BlackBerry::WebKit::JavaScriptVariant::setType):
      (BlackBerry::WebKit::JavaScriptVariant::setString):
      (BlackBerry::WebKit::JavaScriptVariant::stringValue):
      * Api/JavaScriptVariant.h:
      * Api/WebAnimation.cpp:
      (BlackBerry::WebKit::WebAnimation::fadeAnimation):
      (BlackBerry::WebKit::WebAnimation::name):
      * Api/WebAnimation.h:
      * Api/WebCookieJar.cpp:
      (BlackBerry::WebKit::WebCookieJar::cookies):
      (BlackBerry::WebKit::WebCookieJar::setCookies):
      * Api/WebCookieJar.h:
      (Platform):
      (BlackBerry):
      (WebKit):
      * Api/WebKitMIMETypeConverter.cpp:
      (BlackBerry::WebKit::getExtensionForMimeType):
      (BlackBerry::WebKit::getMimeTypeForExtension):
      * Api/WebKitMIMETypeConverter.h:
      (Platform):
      (BlackBerry):
      (WebKit):
      * Api/WebKitTextCodec.cpp:
      (BlackBerry::WebKit::base64Decode):
      (BlackBerry::WebKit::base64Encode):
      (BlackBerry::WebKit::unescapeURL):
      (BlackBerry::WebKit::escapeURL):
      * Api/WebKitTextCodec.h:
      (Platform):
      (BlackBerry):
      * Api/WebOverlay.cpp:
      (BlackBerry::WebKit::WebOverlay::removeAnimation):
      * Api/WebOverlay.h:
      (Platform):
      (BlackBerry):
      (WebKit):
      * Api/WebOverlayOverride.cpp:
      (BlackBerry::WebKit::WebOverlayOverride::removeAnimation):
      * Api/WebOverlayOverride.h:
      (Platform):
      (BlackBerry):
      (WebKit):
      * Api/WebPage.cpp:
      (BlackBerry::WebKit::WebPage::autofillTextField):
      (BlackBerry::WebKit::WebPage::renderTreeAsText):
      (BlackBerry::WebKit::WebPage::WebPage):
      (BlackBerry::WebKit::WebPagePrivate::init):
      (BlackBerry::WebKit::WebPagePrivate::load):
      (BlackBerry::WebKit::WebPage::load):
      (BlackBerry::WebKit::WebPage::loadFile):
      (BlackBerry::WebKit::WebPage::download):
      (BlackBerry::WebKit::WebPagePrivate::loadString):
      (BlackBerry::WebKit::WebPage::loadString):
      (BlackBerry::WebKit::WebPagePrivate::executeJavaScript):
      (BlackBerry::WebKit::WebPage::executeJavaScript):
      (BlackBerry::WebKit::WebPagePrivate::executeJavaScriptInIsolatedWorld):
      (BlackBerry::WebKit::WebPage::executeJavaScriptInIsolatedWorld):
      (BlackBerry::WebKit::WebPage::executeJavaScriptFunction):
      (BlackBerry::WebKit::WebPagePrivate::addOriginAccessWhitelistEntry):
      (BlackBerry::WebKit::WebPage::addOriginAccessWhitelistEntry):
      (BlackBerry::WebKit::WebPagePrivate::removeOriginAccessWhitelistEntry):
      (BlackBerry::WebKit::WebPage::removeOriginAccessWhitelistEntry):
      (BlackBerry::WebKit::WebPagePrivate::authenticationChallenge):
      (BlackBerry::WebKit::WebPagePrivate::syncProxyCredential):
      (BlackBerry::WebKit::WebPagePrivate::notifyPopupAutofillDialog):
      (BlackBerry::WebKit::WebPagePrivate::webContext):
      (BlackBerry::WebKit::WebPage::setDateTimeInput):
      (BlackBerry::WebKit::WebPage::setColorInput):
      (BlackBerry::WebKit::WebPage::textEncoding):
      (BlackBerry::WebKit::WebPage::forcedTextEncoding):
      (BlackBerry::WebKit::WebPage::setForcedTextEncoding):
      (BlackBerry::WebKit::WebPage::title):
      (BlackBerry::WebKit::WebPage::selectedText):
      (BlackBerry::WebKit::WebPage::cutSelectedText):
      (BlackBerry::WebKit::WebPage::insertText):
      (BlackBerry::WebKit::WebPage::getBackForwardList):
      (BlackBerry::WebKit::WebPage::onCertificateStoreLocationSet):
      (BlackBerry::WebKit::WebPage::dispatchInspectorMessage):
      (BlackBerry::WebKit::WebPagePrivate::didChangeSettings):
      (BlackBerry::WebKit::WebPage::textHasAttribute):
      (BlackBerry::WebKit::WebPage::setAllowNotification):
      (BlackBerry::WebKit::WebPagePrivate::defaultUserAgent):
      * Api/WebPage.h:
      * Api/WebPageClient.h:
      * Api/WebPage_p.h:
      (WebPagePrivate):
      * Api/WebSettings.cpp:
      (BlackBerry::WebKit::WebSettings::standardSettings):
      (BlackBerry::WebKit::WebSettings::addSupportedObjectPluginMIMEType):
      (BlackBerry::WebKit::WebSettings::isSupportedObjectMIMEType):
      (BlackBerry::WebKit::WebSettings::serifFontFamily):
      (BlackBerry::WebKit::WebSettings::setSerifFontFamily):
      (BlackBerry::WebKit::WebSettings::fixedFontFamily):
      (BlackBerry::WebKit::WebSettings::setFixedFontFamily):
      (BlackBerry::WebKit::WebSettings::sansSerifFontFamily):
      (BlackBerry::WebKit::WebSettings::setSansSerifFontFamily):
      (BlackBerry::WebKit::WebSettings::standardFontFamily):
      (BlackBerry::WebKit::WebSettings::setStandardFontFamily):
      (BlackBerry::WebKit::WebSettings::userAgentString):
      (BlackBerry::WebKit::WebSettings::setUserAgentString):
      (BlackBerry::WebKit::WebSettings::defaultTextEncodingName):
      (BlackBerry::WebKit::WebSettings::setDefaultTextEncodingName):
      (BlackBerry::WebKit::WebSettings::userStyleSheetString):
      (BlackBerry::WebKit::WebSettings::setUserStyleSheetString):
      (BlackBerry::WebKit::WebSettings::userStyleSheetLocation):
      (BlackBerry::WebKit::WebSettings::setUserStyleSheetLocation):
      (BlackBerry::WebKit::WebSettings::localStoragePath):
      (BlackBerry::WebKit::WebSettings::setLocalStoragePath):
      (BlackBerry::WebKit::WebSettings::indexedDataBasePath):
      (BlackBerry::WebKit::WebSettings::setIndexedDataBasePath):
      (BlackBerry::WebKit::WebSettings::databasePath):
      (BlackBerry::WebKit::WebSettings::setDatabasePath):
      (BlackBerry::WebKit::WebSettings::appCachePath):
      (BlackBerry::WebKit::WebSettings::setAppCachePath):
      (BlackBerry::WebKit::WebSettings::pageGroupName):
      (BlackBerry::WebKit::WebSettings::setPageGroupName):
      * Api/WebSettings.h:
      * Api/WebString.cpp: Removed.
      * Api/WebString.h: Removed.
      * WebCoreSupport/ChromeClientBlackBerry.cpp:
      (WebCore::ChromeClientBlackBerry::runJavaScriptPrompt):
      (WebCore::ChromeClientBlackBerry::createWindow):
      (WebCore::ChromeClientBlackBerry::runOpenPanel):
      (WebCore):
      * WebCoreSupport/ChromeClientBlackBerry.h:
      (ChromeClientBlackBerry):
      * WebCoreSupport/ClientExtension.cpp:
      (clientExtensionMethod):
      * WebCoreSupport/ColorPickerClient.cpp:
      (WebCore::ColorPickerClient::ColorPickerClient):
      (WebCore::ColorPickerClient::generateHTML):
      * WebCoreSupport/ColorPickerClient.h:
      (Platform):
      (BlackBerry):
      (WebKit):
      (ColorPickerClient):
      * WebCoreSupport/CredentialManager.cpp:
      (WebCore::CredentialManager::autofillAuthenticationChallenge):
      * WebCoreSupport/CredentialManager.h:
      (Platform):
      (CredentialManager):
      * WebCoreSupport/DatePickerClient.cpp:
      (WebCore::DatePickerClient::DatePickerClient):
      (WebCore::DatePickerClient::generateHTML):
      * WebCoreSupport/DatePickerClient.h:
      (Platform):
      (BlackBerry):
      (WebKit):
      (DatePickerClient):
      * WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
      (WebCore::FrameLoaderClientBlackBerry::dispatchDecidePolicyForResponse):
      (WebCore::FrameLoaderClientBlackBerry::createDocumentLoader):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDidFinishLoad):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDidFailProvisionalLoad):
      (WebCore::FrameLoaderClientBlackBerry::dispatchCreatePage):
      (WebCore::FrameLoaderClientBlackBerry::dispatchWillSendRequest):
      (WebCore::FrameLoaderClientBlackBerry::loadIconExternally):
      (WebCore::FrameLoaderClientBlackBerry::startDownload):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDidReceiveIcon):
      * WebCoreSupport/IconDatabaseClientBlackBerry.cpp:
      * WebCoreSupport/NotificationPresenterImpl.cpp:
      (WebCore::NotificationPresenterImpl::show):
      (WebCore::NotificationPresenterImpl::cancel):
      (WebCore::NotificationPresenterImpl::requestPermission):
      (WebCore::NotificationPresenterImpl::onPermission):
      (WebCore::NotificationPresenterImpl::notificationClicked):
      * WebCoreSupport/NotificationPresenterImpl.h:
      (Platform):
      (NotificationPresenterImpl):
      * WebCoreSupport/SelectPopupClient.cpp:
      (WebCore::SelectPopupClient::SelectPopupClient):
      (WebCore::SelectPopupClient::update):
      (WebCore::SelectPopupClient::generateHTML):
      * WebCoreSupport/SelectPopupClient.h:
      (Platform):
      (BlackBerry):
      (SelectPopupClient):
      * WebCoreSupport/UserMediaClientImpl.cpp:
      (WebCore::toMediaStreamSource):
      (WebCore::toMediaStreamDescriptor):
      (WebCore::UserMediaClientImpl::requestUserMedia):
      (WebCore::UserMediaClientImpl::cancelUserMediaRequest):
      * WebKitSupport/AboutData.cpp:
      (BlackBerry::WebKit::cachePage):
      * WebKitSupport/InputHandler.cpp:
      (BlackBerry::WebKit::convertStringToWchar):
      (BlackBerry::WebKit::convertStringToWcharVector):
      (BlackBerry::WebKit::convertSpannableStringToString):
      (BlackBerry::WebKit::InputHandler::learnText):
      (BlackBerry::WebKit::InputHandler::spellCheckingRequestProcessed):
      (BlackBerry::WebKit::InputHandler::openDatePopup):
      (BlackBerry::WebKit::InputHandler::openSelectPopup):
      (BlackBerry::WebKit::InputHandler::setText):
      * WebKitSupport/SelectionHandler.cpp:
      (BlackBerry::WebKit::SelectionHandler::selectedText):
      * WebKitSupport/SelectionHandler.h:
      (Platform):
      (WebKit):
      (SelectionHandler):
      * WebKitSupport/SurfacePool.cpp:
      (BlackBerry::WebKit::SurfacePool::sharedPixmapGroup):
      * WebKitSupport/SurfacePool.h:
      (SurfacePool):
      
      Source/WTF:
      
      * wtf/Assertions.cpp: Use proper log function.
      * wtf/text/AtomicString.h: Add BlackBerry support
      (AtomicString):
      (WTF::AtomicString::AtomicString): Add BlackBerry Support
      (WTF::AtomicString::operator BlackBerry::Platform::String):
      * wtf/text/StringImpl.h: Conversion support.
      * wtf/text/WTFString.h: Conversion support.
      (Platform):
      (String):
      
      Tools:
      
      * DumpRenderTree/blackberry/DumpRenderTree.cpp:
      (BlackBerry::WebKit::DumpRenderTree::runTest):
      * DumpRenderTree/blackberry/WorkQueueItemBlackBerry.cpp:
      (LoadHTMLStringItem::invoke):
      (ScriptItem::invoke):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131316 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      13e999a4
    • msaboff@apple.com's avatar
      Update RenderText to use String instead of UChar* for text · 776c286c
      msaboff@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=96979
      
      Reviewed by Dan Bernstein.
      
      Source/WebCore: 
      
      RenderText now uses a String for text.  It keeps a cached LCHar* or UChar* pointer to the
      actual text data for performance.  Added a characterAt() indexed accessor to RenderText to avoid the
      somewhat confusing construct for a RenderText* rt, e.g. (*re)[n] or rt->characters()[n].  This is
      now written as rt->characterAt(n).
      Enabled patch in the HTML parser to create 8 bit text data.  Modified TextRun to create 
      text runs using 8 bit string data where possible.  Added several flavors of RenderBlock::constructTextRun
      to create TextRuns from RenderText objects including with an offset.  Added an LChar flavor of constructTextRun()
      as well.  Eliminated the TextRunFlags argument to all but the String flavor as all other flavors used the default
      parameter.  
      Encased the code that creates 8 bit TextRun's in #if USE(8BIT_TEXTRUN).  Enabled WTF_USE_8BIT_TEXTRUN
      for PLATFORM(MAC).  Other platform can update this setting in Platform.h when their platform specific code is
      updated to TextRun's with 8 bit data.
      Added many 8/16 bit aware paths.  Cleanup up some int / unsigned confusion in RenderBlockLineLayout.cpp.
      
      No function change therefore no new tests.
      
      * html/parser/HTMLTokenizer.cpp:
      (WebCore::vectorEqualsString):
      (WebCore::HTMLTokenizer::nextToken):
      * html/parser/HTMLTokenizer.h:
      (HTMLTokenizer):
      * html/track/WebVTTTokenizer.cpp:
      (WebCore::vectorEqualsString):
      (WebCore::WebVTTTokenizer::nextToken):
      * html/track/WebVTTTokenizer.h:
      (WebVTTTokenizer):
      * platform/graphics/Font.h:
      (WebCore::Font::glyphDataForCharacter):
      * platform/graphics/FontFastPath.cpp:
      (WebCore):
      * platform/graphics/TextRun.h:
      (WebCore::TextRun::TextRun):
      (WebCore::TextRun::subRun):
      (TextRun):
      * platform/graphics/mac/ComplexTextController.cpp:
      (WebCore::TextLayout::isNeeded):
      (WebCore::TextLayout::constructTextRun):
      * rendering/InlineFlowBox.cpp:
      (WebCore::InlineFlowBox::placeBoxesInInlineDirection):
      * rendering/InlineIterator.h:
      (WebCore::InlineIterator::atTextParagraphSeparator):
      (WebCore::InlineIterator::current):
      (WebCore::InlineIterator::previousInSameNode):
      * rendering/InlineTextBox.cpp:
      (WebCore::adjustCharactersAndLengthForHyphen):
      (WebCore::InlineTextBox::paint):
      (WebCore::InlineTextBox::paintSelection):
      (WebCore::InlineTextBox::constructTextRun):
      * rendering/InlineTextBox.h:
      (InlineTextBox):
      * rendering/RenderBlock.cpp:
      (WebCore::constructTextRunInternal):
      (WebCore::RenderBlock::constructTextRun):
      * rendering/RenderBlock.h:
      (RenderBlock):
      * rendering/RenderBlockLineLayout.cpp:
      (WebCore::endsWithASCIISpaces):
      (WebCore::reachedEndOfTextRenderer):
      (WebCore::RenderBlock::computeInlineDirectionPositionsForLine):
      (WebCore::shouldSkipWhitespaceAfterStartObject):
      (WebCore::textWidth):
      (WebCore::tryHyphenating):
      (WebCore::RenderBlock::LineBreaker::nextLineBreak):
      * rendering/RenderCombineText.cpp:
      (WebCore::RenderCombineText::getStringToRender):
      (WebCore::RenderCombineText::combineText):
      * rendering/RenderCombineText.h:
      (RenderCombineText):
      * rendering/RenderText.cpp:
      (SameSizeAsRenderText):
      (WebCore::RenderText::RenderText):
      (WebCore::RenderText::widthFromCache):
      (WebCore::RenderText::computePreferredLogicalWidths):
      (WebCore::RenderText::setTextInternal):
      (WebCore::RenderText::width):
      * rendering/RenderText.h:
      (WebCore::RenderText::is8Bit):
      (WebCore::RenderText::characters8):
      (WebCore::RenderText::characters16):
      (WebCore::RenderText::characterAt):
      (WebCore::RenderText::operator[]):
      (RenderText):
      * xml/parser/MarkupTokenBase.h:
      (WebCore::MarkupTokenBase::appendToCharacter):
      (MarkupTokenBase):
      (WebCore::MarkupTokenBase::isAll8BitData):
      
      Source/WTF: 
      
      Added WTF_USE_8BIT_TEXTRUN to encase code that creates 8 bit TextRun's.  Enabled WTF_USE_8BIT_TEXTRUN
      for PLATFORM(MAC).  Other platform can update this setting in Platform.h when their platform specific use of
      TextRun handle 8 bit data.  Added a new Vector::appendVector to allow appending the contents of a vector
      containing one type to the end of vector containing another.  This is used to append a Vector<LChar> to
      the end of a Vector<UChar>.
      
      * wtf/Platform.h:
      * wtf/Vector.h:
      (Vector):
      (WTF::Vector::appendVector):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      776c286c
    • loislo@chromium.org's avatar
      Web Inspector: convert manual size calculation of different WebKit things into... · 0f18689c
      loislo@chromium.org authored
      Web Inspector: convert manual size calculation of different WebKit things into MemoryInstrumentation.
      https://bugs.webkit.org/show_bug.cgi?id=99309
      
      Reviewed by Yury Semikhatsky.
      
      JSHeap, DOMStorage and HeapProfiler data were counted manually.
      Now we count the sizes more generic way.
      
      Source/WebCore:
      
      * dom/WebCoreMemoryInstrumentation.cpp:
      * dom/WebCoreMemoryInstrumentation.h:
      (WebCoreMemoryTypes): new string identifiers were added for Inspector's data.
      * inspector/InspectorBaseAgent.cpp:
      (WebCore::InspectorBaseAgentInterface::InspectorBaseAgentInterface): common data members were moved from template to base class.
      (WebCore::InspectorBaseAgentInterface::reportMemoryUsage): NMI instrumentation was added to the base template.
      * inspector/InspectorBaseAgent.h:
      (InspectorBaseAgentInterface): ditto
      (WebCore::InspectorBaseAgent::InspectorBaseAgent): ditto
      * inspector/InspectorController.cpp:
      (WebCore::InspectorController::reportMemoryUsage): NMI instrumentation was added to the class.
      * inspector/InspectorController.h:
      * inspector/InspectorDOMStorageAgent.cpp:
      (WebCore::InspectorDOMStorageAgent::reportMemoryUsage): NMI instrumentation was added to the class.
      * inspector/InspectorDOMStorageAgent.h:
      * inspector/InspectorDOMStorageResource.cpp:
      (WebCore::InspectorDOMStorageResource::reportMemoryUsage): NMI instrumentation was added to the class.
      * inspector/InspectorDOMStorageResource.h:
      * inspector/InspectorMemoryAgent.cpp:
      (WebCore::reportJSHeapInfo): these methods now use MemoryInstrumentation for reporting the size of underlying data.
      (WebCore::reportRenderTreeInfo):
      (WebCore::collectDomTreeInfo):
      (WebCore::InspectorMemoryAgent::getProcessMemoryDistribution):
      (WebCore::InspectorMemoryAgent::reportMemoryUsage): NMI instrumentation was added to the class.
      * inspector/InspectorMemoryAgent.h:
      * inspector/InspectorProfilerAgent.cpp:
      (WebCore::InspectorProfilerAgent::reportMemoryUsage):
      * inspector/InspectorProfilerAgent.h:
      (InspectorProfilerAgent): NMI instrumentation was added to the class.
      * inspector/MemoryInstrumentationImpl.cpp: allocatedObjects map was converted from InspectorMemoryAgent::getProcessMemoryDistribution local variable to member variable.
      (WebCore::MemoryInstrumentationClientImpl::checkCountedObject):
      (WebCore::MemoryInstrumentationClientImpl::reportMemoryUsage): NMI instrumentation was added to the class.
      (WebCore::MemoryInstrumentationImpl::reportMemoryUsage): NMI instrumentation was added to the class.
      * inspector/MemoryInstrumentationImpl.h:
      (WebCore::MemoryInstrumentationClientImpl::MemoryInstrumentationClientImpl):
      (WebCore::MemoryInstrumentationClientImpl::allocatedObjects):
      (WebCore::MemoryInstrumentationClientImpl::checkInstrumentedObjects):
      * inspector/front-end/NativeMemorySnapshotView.js:
      (WebInspector.MemoryBlockViewProperties._initialize):
      (WebInspector.NativeMemoryBarChart.prototype._updateView):
      * page/Page.cpp:
      (WebCore::Page::reportMemoryUsage): NMI instrumentation was added to the class.
      * page/Page.h:
      
      Source/WTF:
      
      * wtf/MemoryInstrumentation.h: calculateContainerSize were removed.
      * wtf/MemoryInstrumentationSequence.h: empty instrumentations were added for 'const char*' and 'const void*' sequences.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131299 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0f18689c