WebCore:
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Jul 2009 01:04:19 +0000 (01:04 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Jul 2009 01:04:19 +0000 (01:04 +0000)
commit54cd8df062d3f813f35bd120ae942156150a41c9
tree90781ba3a907753493aac73970483563588f5806
parentd74e7132e2f6abfdd504af2d14aeaaf39d4b1c87
WebCore:

2009-07-13  Erik Arvidsson  <arv@chromium.org>

        Reviewed by Darin Adler and Maciej Stachowiak.

        Implement HTML5 draggable
        https://bugs.webkit.org/show_bug.cgi?id=26262

        This adds support for the HTML5 draggable attribute and its DOM binding. It maps the draggable property
        to the CSS properties -webkit-user-drag and -webkit-user-select respectively.

        Spec: http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#the-draggable-attribute

        Test: fast/html/draggable.html

        * css/html.css:
        * html/HTMLAnchorElement.cpp:
        (WebCore::HTMLAnchorElement::draggable):
        * html/HTMLAnchorElement.h:
        * html/HTMLAttributeNames.in:
        * html/HTMLElement.cpp:
        (WebCore::HTMLElement::draggable):
        (WebCore::HTMLElement::setDraggable):
        * html/HTMLElement.h:
        * html/HTMLElement.idl:
        * html/HTMLImageElement.cpp:
        (WebCore::HTMLImageElement::draggable):
        * html/HTMLImageElement.h:

LayoutTests:

2009-07-13  Erik Arvidsson  <arv@chromium.org>

        Reviewed by Darin Adler and Maciej Stachowiak.

        Implement HTML5 draggable
        https://bugs.webkit.org/show_bug.cgi?id=26262

        This adds support for the HTML5 draggable attribute and its DOM binding. It maps the draggable property
        to the CSS properties -webkit-user-drag and -webkit-user-select respectively.

        Spec: http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#the-draggable-attribute

        * fast/html/draggable-expected.txt: Added.
        * fast/html/draggable.html: Added.
        * fast/html/resources: Added.
        * fast/html/resources/images: Added.
        * fast/html/resources/images/lime.png: Added.

        * fast/dom/resources/domListEnumeration.js: Updated.
        * fast/dom/domListEnumeration-expected.txt: Updated.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@45851 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/dom/domListEnumeration-expected.txt
LayoutTests/fast/dom/resources/domListEnumeration.js
LayoutTests/fast/html/draggable-expected.txt [new file with mode: 0644]
LayoutTests/fast/html/draggable.html [new file with mode: 0644]
LayoutTests/fast/html/resources/images/lime.png [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLAnchorElement.cpp
WebCore/html/HTMLAnchorElement.h
WebCore/html/HTMLAttributeNames.in
WebCore/html/HTMLElement.cpp
WebCore/html/HTMLElement.h
WebCore/html/HTMLElement.idl
WebCore/html/HTMLImageElement.cpp
WebCore/html/HTMLImageElement.h