[Chromium] Fix apk generation for the Android platform
https://bugs.webkit.org/show_bug.cgi?id=93841

Unreviewed build fix.

APK generation was broken as the configuration file assumed compilation
would only occur in the Chromium tree. Pass the path to Chromium's source
base directory as a property to ant.

Source/WebKit/chromium:

* WebKitUnitTests.gyp:

Tools:

* DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:
* TestWebKitAPI/TestWebKitAPI.gyp/TestWebKitAPI.gyp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125538 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Remove duplicated platform test expectations
https://bugs.webkit.org/show_bug.cgi?id=93351

Patch by Thiago Marcos P. Santos <thiago.santos@intel.com> on 2012-08-10
Reviewed by Csaba Osztrogonác.

Remove platform test expectations that are the same as the global
expectations.

* platform/qt-5.0-wk2/compositing/iframes/fixed-position-iframe-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/iframes/invisible-iframe-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/iframes/invisible-nested-iframe-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/iframes/invisible-nested-iframe-hide-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/iframes/layout-on-compositing-change-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/iframes/nested-composited-iframe-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/iframes/nested-iframe-scrolling-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/iframes/overlapped-iframe-iframe-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/iframes/remove-iframe-crash-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/iframes/repaint-after-losing-scrollbars-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/iframes/scroll-fixed-transformed-element-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/iframes/scroll-grandchild-iframe-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/overflow/overflow-scaled-descendant-overlapping-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/reflections/become-simple-composited-reflection-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/reflections/empty-reflection-with-mask-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/reflections/remove-add-reflection-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/reflections/remove-reflection-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/rtl/rtl-absolute-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/rtl/rtl-fixed-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/rtl/rtl-iframe-absolute-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/rtl/rtl-iframe-fixed-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/rtl/rtl-iframe-relative-expected.txt: Removed.
* platform/qt-5.0-wk2/compositing/rtl/rtl-relative-expected.txt: Removed.
* platform/qt-5.0-wk2/fast/events/overflow-viewport-renderer-deleted-expected.txt: Removed.
* platform/qt-5.0-wk2/plugins/document-open-expected.txt: Removed.
* platform/qt-5.0/fast/dom/DeviceMotion/no-page-cache-expected.txt: Removed.
* platform/qt-5.0/fast/dom/DeviceMotion/optional-event-properties-expected.txt: Removed.
* platform/qt-5.0/fast/dom/DeviceMotion/window-property-expected.txt: Removed.
* platform/qt-5.0/fast/dom/DeviceOrientation/no-page-cache-expected.txt: Removed.
* platform/qt-5.0/fast/dom/DeviceOrientation/optional-event-properties-expected.txt: Removed.
* platform/qt-5.0/fast/dom/DeviceOrientation/window-property-expected.txt: Removed.
* platform/qt-5.0/svg/W3C-SVG-1.1-SE/color-prop-05-t-expected.txt: Removed.
* platform/qt-5.0/svg/W3C-SVG-1.1-SE/filters-image-03-f-expected.txt: Removed.
* platform/qt-5.0/svg/W3C-SVG-1.1-SE/pservers-pattern-03-f-expected.txt: Removed.
* platform/qt-5.0/svg/W3C-SVG-1.1-SE/struct-use-14-f-expected.txt: Removed.
* platform/qt-5.0/svg/W3C-SVG-1.1-SE/svgdom-over-01-f-expected.txt: Removed.
* platform/qt-5.0/svg/W3C-SVG-1.1-SE/types-dom-05-b-expected.txt: Removed.
* platform/qt-5.0/svg/foreignObject/text-tref-02-b-expected.txt: Removed.
* platform/qt-mac/plugins/plugin-javascript-access-expected.txt: Removed.
* platform/qt/compositing/geometry/composited-in-columns-expected.txt: Removed.
* platform/qt/compositing/geometry/object-clip-rects-assertion-expected.txt: Removed.
* platform/qt/compositing/iframes/composited-iframe-scroll-expected.txt: Removed.
* platform/qt/compositing/iframes/iframe-content-flipping-expected.txt: Removed.
* platform/qt/editing/execCommand/format-block-with-trailing-br-expected.txt: Removed.
* platform/qt/editing/pasteboard/4242293-1-expected.txt: Removed.
* platform/qt/editing/pasteboard/block-wrappers-necessary-expected.txt: Removed.
* platform/qt/editing/selection/drag-start-event-client-x-y-expected.txt: Removed.
* platform/qt/editing/selection/hit-test-on-text-with-line-height-expected.txt: Removed.
* platform/qt/fast/backgrounds/svg-as-mask-expected.txt: Removed.
* platform/qt/fast/borders/border-image-outset-split-inline-vertical-lr-expected.txt: Removed.
* platform/qt/fast/borders/borderRadiusSolid01-expected.txt: Removed.
* platform/qt/fast/borders/borderRadiusSolid02-expected.txt: Removed.
* platform/qt/fast/borders/borderRadiusSolid03-expected.txt: Removed.
* platform/qt/fast/borders/borderRadiusSolid04-expected.txt: Removed.
* platform/qt/fast/box-shadow/box-shadow-radius-expected.txt: Removed.
* platform/qt/fast/box-shadow/scaled-box-shadow-expected.txt: Removed.
* platform/qt/fast/css/font-face-descending-unicode-range-expected.txt: Removed.
* platform/qt/fast/css/font-face-font-family-descriptor-expected.txt: Removed.
* platform/qt/fast/css/font-family-pictograph-expected.txt: Removed.
* platform/qt/fast/css/hsla-color-expected.txt: Removed.
* platform/qt/fast/css/rgba-custom-text-expected.txt: Removed.
* platform/qt/fast/dom/HTMLMeterElement/meter-element-repaint-on-update-value-expected.txt: Removed.
* platform/qt/fast/dom/icon-url-change-expected.txt: Removed.
* platform/qt/fast/dom/icon-url-list-expected.txt: Removed.
* platform/qt/fast/inline/inline-fixed-position-boundingbox-expected.txt: Removed.
* platform/qt/fast/inline/inline-relative-offset-boundingbox-expected.txt: Removed.
* platform/qt/fast/multicol/hit-test-gap-between-pages-expected.txt: Removed.
* platform/qt/fast/reflections/reflection-masks-expected.txt: Removed.
* platform/qt/fast/reflections/reflection-masks-opacity-expected.txt: Removed.
* platform/qt/fast/repaint/repaint-svg-after-style-change-expected.txt: Removed.
* platform/qt/fast/writing-mode/background-horizontal-bt-expected.txt: Removed.
* platform/qt/fast/writing-mode/background-vertical-lr-expected.txt: Removed.
* platform/qt/fast/writing-mode/background-vertical-rl-expected.txt: Removed.
* platform/qt/svg/W3C-SVG-1.1-SE/color-prop-05-t-expected.txt: Removed.
* platform/qt/svg/W3C-SVG-1.1-SE/filters-image-03-f-expected.txt: Removed.
* platform/qt/svg/W3C-SVG-1.1-SE/pservers-pattern-03-f-expected.txt: Removed.
* platform/qt/svg/W3C-SVG-1.1-SE/struct-use-14-f-expected.txt: Removed.
* platform/qt/svg/W3C-SVG-1.1-SE/svgdom-over-01-f-expected.txt: Removed.
* platform/qt/svg/W3C-SVG-1.1-SE/types-dom-05-b-expected.txt: Removed.
* platform/qt/svg/as-background-image/svg-as-background-1-expected.txt: Removed.
* platform/qt/svg/as-background-image/svg-as-background-2-expected.txt: Removed.
* platform/qt/svg/as-background-image/svg-as-background-3-expected.txt: Removed.
* platform/qt/svg/as-background-image/svg-as-background-4-expected.txt: Removed.
* platform/qt/svg/as-background-image/svg-as-background-5-expected.txt: Removed.
* platform/qt/svg/as-background-image/svg-as-background-6-expected.txt: Removed.
* platform/qt/svg/custom/bug86119-expected.txt: Removed.
* platform/qt/svg/custom/glyph-transformation-with-hkern-expected.txt: Removed.
* platform/qt/svg/custom/object-sizing-width-50p-height-50p-on-target-svg-absolute-expected.txt: Removed.
* platform/qt/svg/custom/object-sizing-width-50p-height-75p-on-target-svg-absolute-expected.txt: Removed.
* platform/qt/svg/custom/object-sizing-width-50p-height-75p-on-target-svg-expected.txt: Removed.
* platform/qt/svg/custom/object-sizing-width-50p-on-target-svg-absolute-expected.txt: Removed.
* platform/qt/svg/custom/object-sizing-width-75p-height-50p-on-target-svg-absolute-expected.txt: Removed.
* platform/qt/svg/custom/object-sizing-width-75p-height-50p-on-target-svg-expected.txt: Removed.
* platform/qt/svg/custom/svg-features-expected.txt: Removed.
* platform/qt/svg/custom/use-instanceRoot-event-listeners-expected.txt: Removed.
* platform/qt/svg/custom/use-setAttribute-crash-expected.txt: Removed.
* platform/qt/svg/foreignObject/text-tref-02-b-expected.txt: Removed.
* platform/qt/svg/hixie/viewbox/002-expected.txt: Removed.
* platform/qt/svg/hixie/viewbox/003-expected.txt: Removed.
* platform/qt/svg/repaint/inner-svg-change-viewBox-contract-expected.txt: Removed.
* platform/qt/svg/repaint/inner-svg-change-viewBox-expected.txt: Removed.
* platform/qt/svg/text/text-viewbox-rescale-expected.txt: Removed.
* platform/qt/svg/zoom/page/zoom-foreign-content-expected.txt: Removed.
* platform/qt/svg/zoom/page/zoom-svg-as-background-with-relative-size-expected.txt: Removed.
* platform/qt/svg/zoom/page/zoom-svg-through-object-with-auto-size-expected.txt: Removed.
* platform/qt/tables/mozilla/bugs/bug26553-expected.txt: Removed.
* platform/qt/tables/mozilla/bugs/bug83786-expected.txt: Removed.
* platform/qt/tables/mozilla_expected_failures/bugs/bug23847-expected.txt: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125539 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] UpdateAtlas is wasting memory
https://bugs.webkit.org/show_bug.cgi?id=93606

Reviewed by Jocelyn Turcotte.

Imported and QAreaAllocator from Qt3D and ported it to WebCore style,
and use this new area allocator to replace old one from UpdateAtlas.

* CMakeLists.txt:
* Target.pri:
* WebProcess/WebPage/AreaAllocator.cpp: Added.
(WebKit::AreaAllocator::AreaAllocator):
(WebKit::AreaAllocator::~AreaAllocator):
(WebKit::AreaAllocator::expand):
(WebKit::AreaAllocator::expandBy):
(WebKit::AreaAllocator::release):
(WebKit::AreaAllocator::overhead):
(WebKit::AreaAllocator::roundAllocation):
(WebKit::GeneralAreaAllocator::GeneralAreaAllocator):
(WebKit::GeneralAreaAllocator::~GeneralAreaAllocator):
(WebKit::GeneralAreaAllocator::freeNode):
(WebKit::GeneralAreaAllocator::expand):
(WebKit::fitsWithin):
(WebKit::GeneralAreaAllocator::allocate):
(WebKit::GeneralAreaAllocator::allocateFromNode):
(WebKit::GeneralAreaAllocator::splitNode):
(WebKit::GeneralAreaAllocator::updateLargestFree):
(WebKit::GeneralAreaAllocator::release):
(WebKit::GeneralAreaAllocator::overhead):
* WebProcess/WebPage/AreaAllocator.h: Added.
(WebCore::nextPowerOfTwo):
(AreaAllocator):
(WebKit::AreaAllocator::size):
(WebKit::AreaAllocator::minimumAllocation):
(WebKit::AreaAllocator::setMinimumAllocation):
(WebKit::AreaAllocator::margin):
(WebKit::AreaAllocator::setMargin):
(GeneralAreaAllocator):
(Node):
* WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp:
(WebKit::LayerTreeCoordinator::renderNextFrame):
(WebKit::LayerTreeCoordinator::beginContentUpdate):
* WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.h:
(LayerTreeCoordinator):
* WebProcess/WebPage/UpdateAtlas.cpp:
(WebKit::UpdateAtlas::UpdateAtlas):
(WebKit::UpdateAtlas::buildLayoutIfNeeded):
(WebKit::UpdateAtlas::didSwapBuffers):
(WebKit::UpdateAtlas::beginPaintingOnAvailableBuffer):
* WebProcess/WebPage/UpdateAtlas.h:
(UpdateAtlas):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125540 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rename functions in the ARM port of DFG-JIT for better code readability.
https://bugs.webkit.org/show_bug.cgi?id=93609

Patch by Gabor Ballabas <gaborb@inf.u-szeged.hu> on 2012-08-14
Reviewed by Zoltan Herczeg.

Rename functions in the ARM port of DFG-JIT for better code
readability, and for following the WebKit coding style
wherever it is possible.

* assembler/ARMAssembler.cpp:
(JSC::ARMAssembler::genInt):
(JSC::ARMAssembler::getImm):
(JSC::ARMAssembler::moveImm):
(JSC::ARMAssembler::encodeComplexImm):
(JSC::ARMAssembler::dataTransfer32):
(JSC::ARMAssembler::baseIndexTransfer32):
(JSC::ARMAssembler::dataTransfer16):
(JSC::ARMAssembler::baseIndexTransfer16):
(JSC::ARMAssembler::dataTransferFloat):
(JSC::ARMAssembler::baseIndexTransferFloat):
* assembler/ARMAssembler.h:
(JSC::ARMAssembler::bitAnd):
(JSC::ARMAssembler::bitAnds):
(JSC::ARMAssembler::eor):
(JSC::ARMAssembler::eors):
(JSC::ARMAssembler::sub):
(JSC::ARMAssembler::subs):
(JSC::ARMAssembler::rsb):
(JSC::ARMAssembler::rsbs):
(JSC::ARMAssembler::add):
(JSC::ARMAssembler::adds):
(JSC::ARMAssembler::adc):
(JSC::ARMAssembler::adcs):
(JSC::ARMAssembler::sbc):
(JSC::ARMAssembler::sbcs):
(JSC::ARMAssembler::rsc):
(JSC::ARMAssembler::rscs):
(JSC::ARMAssembler::tst):
(JSC::ARMAssembler::teq):
(JSC::ARMAssembler::cmp):
(JSC::ARMAssembler::cmn):
(JSC::ARMAssembler::orr):
(JSC::ARMAssembler::orrs):
(JSC::ARMAssembler::mov):
(JSC::ARMAssembler::movw):
(JSC::ARMAssembler::movt):
(JSC::ARMAssembler::movs):
(JSC::ARMAssembler::bic):
(JSC::ARMAssembler::bics):
(JSC::ARMAssembler::mvn):
(JSC::ARMAssembler::mvns):
(JSC::ARMAssembler::mul):
(JSC::ARMAssembler::muls):
(JSC::ARMAssembler::mull):
(JSC::ARMAssembler::vmov_f64):
(JSC::ARMAssembler::vadd_f64):
(JSC::ARMAssembler::vdiv_f64):
(JSC::ARMAssembler::vsub_f64):
(JSC::ARMAssembler::vmul_f64):
(JSC::ARMAssembler::vcmp_f64):
(JSC::ARMAssembler::vsqrt_f64):
(JSC::ARMAssembler::vabs_f64):
(JSC::ARMAssembler::vneg_f64):
(JSC::ARMAssembler::ldrImmediate):
(JSC::ARMAssembler::ldrUniqueImmediate):
(JSC::ARMAssembler::dtrUp):
(JSC::ARMAssembler::dtrUpRegister):
(JSC::ARMAssembler::dtrDown):
(JSC::ARMAssembler::dtrDownRegister):
(JSC::ARMAssembler::halfDtrUp):
(JSC::ARMAssembler::halfDtrUpRegister):
(JSC::ARMAssembler::halfDtrDown):
(JSC::ARMAssembler::halfDtrDownRegister):
(JSC::ARMAssembler::doubleDtrUp):
(JSC::ARMAssembler::doubleDtrDown):
(JSC::ARMAssembler::push):
(JSC::ARMAssembler::pop):
(JSC::ARMAssembler::poke):
(JSC::ARMAssembler::peek):
(JSC::ARMAssembler::vmov_vfp64):
(JSC::ARMAssembler::vmov_arm64):
(JSC::ARMAssembler::vmov_vfp32):
(JSC::ARMAssembler::vmov_arm32):
(JSC::ARMAssembler::vcvt_f64_s32):
(JSC::ARMAssembler::vcvt_s32_f64):
(JSC::ARMAssembler::vcvt_u32_f64):
(JSC::ARMAssembler::vcvt_f64_f32):
(JSC::ARMAssembler::vcvt_f32_f64):
(JSC::ARMAssembler::clz):
(JSC::ARMAssembler::lslRegister):
(JSC::ARMAssembler::lsrRegister):
(JSC::ARMAssembler::asrRegister):
(JSC::ARMAssembler::align):
(JSC::ARMAssembler::loadBranchTarget):
(JSC::ARMAssembler::vmov):
* assembler/MacroAssemblerARM.cpp:
(JSC::MacroAssemblerARM::load32WithUnalignedHalfWords):
* assembler/MacroAssemblerARM.h:
(JSC::MacroAssemblerARM::add32):
(JSC::MacroAssemblerARM::and32):
(JSC::MacroAssemblerARM::lshift32):
(JSC::MacroAssemblerARM::mul32):
(JSC::MacroAssemblerARM::or32):
(JSC::MacroAssemblerARM::rshift32):
(JSC::MacroAssemblerARM::urshift32):
(JSC::MacroAssemblerARM::sub32):
(JSC::MacroAssemblerARM::xor32):
(JSC::MacroAssemblerARM::countLeadingZeros32):
(JSC::MacroAssemblerARM::convertibleLoadPtr):
(JSC::MacroAssemblerARM::load32WithAddressOffsetPatch):
(JSC::MacroAssemblerARM::load32WithCompactAddressOffsetPatch):
(JSC::MacroAssemblerARM::store32WithAddressOffsetPatch):
(JSC::MacroAssemblerARM::store32):
(JSC::MacroAssemblerARM::pop):
(JSC::MacroAssemblerARM::push):
(JSC::MacroAssemblerARM::move):
(JSC::MacroAssemblerARM::swap):
(JSC::MacroAssemblerARM::branch32):
(JSC::MacroAssemblerARM::branchTest32):
(JSC::MacroAssemblerARM::mull32):
(JSC::MacroAssemblerARM::branchSub32):
(JSC::MacroAssemblerARM::compare32):
(JSC::MacroAssemblerARM::test32):
(JSC::MacroAssemblerARM::load32):
(JSC::MacroAssemblerARM::relativeTableJump):
(JSC::MacroAssemblerARM::moveWithPatch):
(JSC::MacroAssemblerARM::loadDouble):
(JSC::MacroAssemblerARM::moveDouble):
(JSC::MacroAssemblerARM::addDouble):
(JSC::MacroAssemblerARM::divDouble):
(JSC::MacroAssemblerARM::subDouble):
(JSC::MacroAssemblerARM::mulDouble):
(JSC::MacroAssemblerARM::sqrtDouble):
(JSC::MacroAssemblerARM::absDouble):
(JSC::MacroAssemblerARM::negateDouble):
(JSC::MacroAssemblerARM::convertInt32ToDouble):
(JSC::MacroAssemblerARM::convertFloatToDouble):
(JSC::MacroAssemblerARM::convertDoubleToFloat):
(JSC::MacroAssemblerARM::branchDouble):
(JSC::MacroAssemblerARM::branchTruncateDoubleToInt32):
(JSC::MacroAssemblerARM::branchTruncateDoubleToUint32):
(JSC::MacroAssemblerARM::truncateDoubleToInt32):
(JSC::MacroAssemblerARM::truncateDoubleToUint32):
(JSC::MacroAssemblerARM::branchConvertDoubleToInt32):
(JSC::MacroAssemblerARM::branchDoubleNonZero):
(JSC::MacroAssemblerARM::branchDoubleZeroOrNaN):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125541 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Fix apk generation for the Android platform
https://bugs.webkit.org/show_bug.cgi?id=93841

Unreviewed build fix (step 2).

The path from webkit_unit_tests isn't robust enough. Use the same
convention as the Chromium side, i.e. walk up from the ant_build_out path.
One-line Android-only gyp change.

* WebKitUnitTests.gyp:

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