Move MemoryInfo under window.internals
https://bugs.webkit.org/show_bug.cgi?id=117197

Reviewed by Ryosuke Niwa.

.: 

* Source/autotools/symbols.filter: Export the required symbol.

PerformanceTests: 

* resources/runner.js: Remove the setMemoryEnabled call, it's not required anymore as the memory
info is now accessed through window.internals and doesn't need the setting to be enabled to work.

Source/WebCore: 

The MemoryInfo interface is not a subject of any specification and should not be exposed
to the Web. It's still used by the performance tests so it is moved under the testing
internals, accessible through window.internals.memoryInfo.

The jsHeapSizeLimit attribute is removed from the MemoryInfo interface as that value was
only usable when using the V8 bindings which are not supported anymore. A small fast/harness
test is also provided to check that the MemoryInfo object is accessible through window.internals.

Test: fast/harness/memoryinfo-object.html

* CMakeLists.txt:
* DerivedSources.cpp:
* DerivedSources.make:
* DerivedSources.pri:
* GNUmakefile.list.am:
* Target.pri:
* UseJSC.cmake:
* WebCore.exp.in:
* WebCore.order:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.vcxproj/WebCoreTestSupport.vcxproj:
* WebCore.vcxproj/WebCoreTestSupport.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* bindings/gobject/GNUmakefile.am: Remove the GObject bindings targets for MemoryInfo.
* bindings/js/JSBindingsAllInOne.cpp: Remove the JSMemoryInfo.h and MemoryInfo.h inclusion.
* bindings/js/JSMemoryInfoCustom.cpp: Removed.
* bindings/js/ScriptGCEvent.cpp: Remove the ENABLE(INSPECTOR) guards.
(WebCore::ScriptGCEvent::getHeapSize): Remove the jsHeapSizeLimit assignment.
* bindings/js/ScriptGCEvent.h: Remove the ENABLE(INSPECTOR) guards.
(WebCore::HeapInfo::HeapInfo): Remove the jsHeapSizeLimit member.
* page/Console.cpp: Remove the Console::memory method.
* page/Console.h: Ditto.
* page/Console.idl: Remove the window.console.memory attribute.
* page/MemoryInfo.cpp: Removed.
* page/Performance.cpp: Remove the Performance::memory method.
* page/Performance.h: Ditto.
* page/Performance.idl: Remove the window.performance.memory attribute.
* testing/Internals.cpp:
(WebCore::Internals::memoryInfo): Return a MemoryInfo object upon invoking.
* testing/Internals.h: Declare the Internals::memoryInfo method.
* testing/Internals.idl: Expose the window.internals.memoryInfo operation.
* testing/MemoryInfo.h: Renamed from Source/WebCore/page/MemoryInfo.h.
(WebCore::MemoryInfo::create): Return a new RefPtr-wrapped MemoryInfo object.
(WebCore::MemoryInfo::usedJSHeapSize): Return the value of the equally-named HeapInfo member.
(WebCore::MemoryInfo::totalJSHeapSize): Ditto.
(WebCore::MemoryInfo::MemoryInfo): Acquire the current heap info upon construction.
* testing/MemoryInfo.idl: Renamed from Source/WebCore/page/MemoryInfo.idl.
The jsHeapSizeLimit attribute is removed.

Tools: 

* GNUmakefile.am: Add the testing/MemoryInfo.(h|idl) files and the generated targets to
the Automake build
* Scripts/webkitperl/filter-build-webkit_unittest/shouldIgnoreLine_unittests.pl: List the
testing/MemoryInfo.idl file instead of page/MemoryInfo.idl.

LayoutTests: 

Remove window.performance.memory property listings from the baselines, the object was moved
under window.internals. The latter is tested throug the new fast/harness test.

* fast/dom/Window/window-properties-performance-expected.txt:
* fast/harness/memoryinfo-object-expected.txt: Added.
* fast/harness/memoryinfo-object.html: Added.
* platform/efl/fast/dom/Window/window-properties-performance-expected.txt:
* platform/gtk/fast/dom/Window/window-properties-performance-expected.txt:
* platform/qt/fast/dom/Window/window-properties-performance-expected.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151199 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove [NoInterfaceObject] from TreeWalker
https://bugs.webkit.org/show_bug.cgi?id=117225

Reviewed by Kentaro Hara.

Source/WebCore:

Remove [NoInterfaceObject] IDL extended attribute from TreeWalker interface
to match Firefox's behavior and the specification:
http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#Traversal-TreeWalker

No new tests, already covered by existing tests.

* dom/TreeWalker.idl:

LayoutTests:

Rebaseline fast/js/global-constructors-attributes.html and fast/dom/dom-constructors.html
now that a TreeWalker property is exposed on the global Window object.

* fast/dom/dom-constructors-expected.txt:
* fast/js/global-constructors-attributes-expected.txt:
* platform/efl/fast/js/global-constructors-attributes-expected.txt:
* platform/gtk/fast/js/global-constructors-attributes-expected.txt:
* platform/mac-lion/fast/js/global-constructors-attributes-expected.txt:
* platform/qt/fast/js/global-constructors-attributes-expected.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151200 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Bad value in tests counter at new-run-webkit-tests
in --debug-rwt-logging mode
https://bugs.webkit.org/show_bug.cgi?id=116858

Patch by Dariusz Frankiewicz <d.frankiewic@samsung.com> on 2013-06-05
Reviewed by Dirk Pranke.

Fix by moving counter incrementation, from after printing line,
to before printing. Also changed variable name.

* Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py:
(LayoutTestRunner.run_tests):
* Scripts/webkitpy/layout_tests/controllers/layout_test_runner_unittest.py:
(FakePrinter):
* Scripts/webkitpy/layout_tests/views/printing.py:
(Printer.__init__):
(Printer._test_status_line):
(Printer.print_started_test):
(Printer.print_finished_test):
* Scripts/webkitpy/test/printer.py:
(Printer.__init__):
(Printer.print_finished_test):
(Printer._test_line):
(Printer.print_result):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151201 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Regions] REGRESSION Incorrect layer clipping inside flow thread
https://bugs.webkit.org/show_bug.cgi?id=117074

Reviewed by David Hyatt.

Source/WebCore:

Function RenderBox::mapLocalToContainer was adapted for elements inside flow threads to convert
elements coordinates to RenderView coordinates, passing through the region in which the elements
were flowed (https://bugs.webkit.org/show_bug.cgi?id=66641).

The fix for https://bugs.webkit.org/show_bug.cgi?id=76486 modified RenderLayer::calculateClipRects and replaced
convertToLayerCoords with localToContainerPoint, which further calls mapLocalToContainer.

However, for elements inside the flow thread, which acts as a root layer for its collected children, we do not want
to get the offset in RenderView coordinates but rather in flow thread coordinates (and still take transforms into
account). This patch modifies RenderBox::mapLocalToContainer so that it stops at flow thread boundary when the passed
repaintContainer is the flow thread. The flow thread is the container for repaint for elements inside it, as seen from
RenderObject::containerForRepaint.

No new tests, converted overflow-size-change-with-stacking-context and overflow-size-change-with-stacking-context-rtl
into ref tests so that the we do not rely on pixel tests in the future.

* rendering/RenderBox.cpp:
(WebCore::RenderBox::mapLocalToContainer):

LayoutTests:

Convert overflow-size-change-with-stacking-context and overflow-size-change-with-stacking-context-rtl
to ref tests.

* fast/regions/overflow-size-change-with-stacking-context-expected.html: Added.
* fast/regions/overflow-size-change-with-stacking-context-rtl-expected.html: Added.
* fast/regions/overflow-size-change-with-stacking-context-rtl.html:
* fast/regions/overflow-size-change-with-stacking-context.html:
* platform/efl/fast/regions/overflow-size-change-with-stacking-context-expected.png: Removed.
* platform/efl/fast/regions/overflow-size-change-with-stacking-context-expected.txt: Removed.
* platform/efl/fast/regions/overflow-size-change-with-stacking-context-rtl-expected.png: Removed.
* platform/efl/fast/regions/overflow-size-change-with-stacking-context-rtl-expected.txt: Removed.
* platform/gtk/fast/regions/overflow-size-change-with-stacking-context-expected.png: Removed.
* platform/gtk/fast/regions/overflow-size-change-with-stacking-context-expected.txt: Removed.
* platform/gtk/fast/regions/overflow-size-change-with-stacking-context-rtl-expected.png: Removed.
* platform/gtk/fast/regions/overflow-size-change-with-stacking-context-rtl-expected.txt: Removed.
* platform/mac/fast/regions/overflow-size-change-with-stacking-context-expected.png: Removed.
* platform/mac/fast/regions/overflow-size-change-with-stacking-context-expected.txt: Removed.
* platform/mac/fast/regions/overflow-size-change-with-stacking-context-rtl-expected.png: Removed.
* platform/mac/fast/regions/overflow-size-change-with-stacking-context-rtl-expected.txt: Removed.
* platform/qt/fast/regions/overflow-size-change-with-stacking-context-expected.txt: Removed.
* platform/qt/fast/regions/overflow-size-change-with-stacking-context-rtl-expected.png: Removed.
* platform/qt/fast/regions/overflow-size-change-with-stacking-context-rtl-expected.txt: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151202 268f45cc-cd09-0410-ab3c-d52691b4dbfc