[CSS Regions] Remove the deprecated API Document.webkitGetFlowByName
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 1 Oct 2012 12:46:56 +0000 (12:46 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 1 Oct 2012 12:46:56 +0000 (12:46 +0000)
commitb931b329b771b4fbe83bab4f8166d252273ad78e
treeae9c0feaac006a9b3ed2624c31f82c5674f0d0aa
parent3ee7916e8649851f2a7d5084e37cd6b42f0822e5
[CSS Regions] Remove the deprecated API Document.webkitGetFlowByName
https://bugs.webkit.org/show_bug.cgi?id=97657

Patch by Andrei Bucur <abucur@adobe.com> on 2012-10-01
Reviewed by Andreas Kling.

Source/WebCore:

The Document.getFlowByName() API has been deprecated in favor of the NamedFlowCollection.namedItem(DOMString).
Link to spec: http://www.w3.org/TR/css3-regions/#the-namedflow-interface

Tests: The old tests have been adapted to use the new API.

* dom/Document.cpp:
(WebCore):
* dom/Document.h:
(Document):
* dom/Document.idl:

LayoutTests:

To minimize the code change impact, I've created a new method in helper.js getFlowByName() that emulates the
behaviour of Document.webkitGetFlowByName(). All the occurrences of Document.webkitGetFlowByName in the tests/expected results
have been replaced with getFlowByName.

* fast/regions/get-regions-by-content-horiz-bt.html:
* fast/regions/get-regions-by-content-horiz-tb.html:
* fast/regions/get-regions-by-content-vert-lr.html:
* fast/regions/get-regions-by-content-vert-rl.html:
* fast/regions/get-regions-by-content.html:
* fast/regions/get-regions-by-content2.html:
* fast/regions/resources/helper.js:
(getFlowByName):
* fast/regions/webkit-named-flow-event-add-to-flow.html:
* fast/regions/webkit-named-flow-event-no-regions.html:
* fast/regions/webkit-named-flow-event-remove-from-dom.html:
* fast/regions/webkit-named-flow-event-remove-from-flow.html:
* fast/regions/webkit-named-flow-event-target-expected.txt:
* fast/regions/webkit-named-flow-event-target.html:
* fast/regions/webkit-named-flow-event-to-null.html:
* fast/regions/webkit-named-flow-event.html:
* fast/regions/webkit-named-flow-existing-flow.html:
* fast/regions/webkit-named-flow-first-empty-region-index.html:
* fast/regions/webkit-named-flow-flow-added.html:
* fast/regions/webkit-named-flow-get-content-expected.txt:
* fast/regions/webkit-named-flow-get-content.html:
* fast/regions/webkit-named-flow-get-regions.html:
* fast/regions/webkit-named-flow-invalid-name.html:
* fast/regions/webkit-named-flow-modified-flow.html:
* fast/regions/webkit-named-flow-name.html:
* fast/regions/webkit-named-flow-non-existing-flow.html:
* fast/regions/webkit-named-flow-overset.html:
* fast/regions/webkit-named-flow-removed-flow.html:
* fast/regions/webkit-named-flow-same-object.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@130041 268f45cc-cd09-0410-ab3c-d52691b4dbfc
33 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/regions/get-regions-by-content-horiz-bt.html
LayoutTests/fast/regions/get-regions-by-content-horiz-tb.html
LayoutTests/fast/regions/get-regions-by-content-vert-lr.html
LayoutTests/fast/regions/get-regions-by-content-vert-rl.html
LayoutTests/fast/regions/get-regions-by-content.html
LayoutTests/fast/regions/get-regions-by-content2.html
LayoutTests/fast/regions/resources/helper.js
LayoutTests/fast/regions/webkit-named-flow-event-add-to-flow.html
LayoutTests/fast/regions/webkit-named-flow-event-no-regions.html
LayoutTests/fast/regions/webkit-named-flow-event-remove-from-dom.html
LayoutTests/fast/regions/webkit-named-flow-event-remove-from-flow.html
LayoutTests/fast/regions/webkit-named-flow-event-target-expected.txt
LayoutTests/fast/regions/webkit-named-flow-event-target.html
LayoutTests/fast/regions/webkit-named-flow-event-to-null.html
LayoutTests/fast/regions/webkit-named-flow-event.html
LayoutTests/fast/regions/webkit-named-flow-existing-flow.html
LayoutTests/fast/regions/webkit-named-flow-first-empty-region-index.html
LayoutTests/fast/regions/webkit-named-flow-flow-added.html
LayoutTests/fast/regions/webkit-named-flow-get-content-expected.txt
LayoutTests/fast/regions/webkit-named-flow-get-content.html
LayoutTests/fast/regions/webkit-named-flow-get-regions.html
LayoutTests/fast/regions/webkit-named-flow-invalid-name.html
LayoutTests/fast/regions/webkit-named-flow-modified-flow.html
LayoutTests/fast/regions/webkit-named-flow-name.html
LayoutTests/fast/regions/webkit-named-flow-non-existing-flow.html
LayoutTests/fast/regions/webkit-named-flow-overset.html
LayoutTests/fast/regions/webkit-named-flow-removed-flow.html
LayoutTests/fast/regions/webkit-named-flow-same-object.html
Source/WebCore/ChangeLog
Source/WebCore/dom/Document.cpp
Source/WebCore/dom/Document.h
Source/WebCore/dom/Document.idl