Design mode should not affect UA shadow trees
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 May 2017 15:16:37 +0000 (15:16 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 May 2017 15:16:37 +0000 (15:16 +0000)
commit118592d8520d7172b45a1aafe00e0a79c22dba5a
tree0d9f667bf3a40cfda98cedda8ab6e95f43044657
parent61488e5cccf2291a8d6f81f50ec6e2b6a34af253
Design mode should not affect UA shadow trees
https://bugs.webkit.org/show_bug.cgi?id=171854
<rdar://problem/32071037>

Reviewed by Zalan Bujtas.

Source/WebCore:

Test: editing/deleting/search-shadow-tree-delete.html

* html/HTMLElement.cpp:
(WebCore::HTMLElement::editabilityFromContentEditableAttr):

    Ignore design mode for UA shadow trees.

* html/SearchInputType.cpp:
(WebCore::SearchInputType::~SearchInputType):
(WebCore::SearchInputType::createShadowSubtree):
(WebCore::SearchInputType::resultsButtonElement):
(WebCore::SearchInputType::cancelButtonElement):
* html/SearchInputType.h:

    Use RefPtr.

LayoutTests:

* editing/deleting/search-shadow-tree-delete-expected.txt: Added.
* editing/deleting/search-shadow-tree-delete.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@217046 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/deleting/search-shadow-tree-delete-expected.txt [new file with mode: 0644]
LayoutTests/editing/deleting/search-shadow-tree-delete.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLElement.cpp
Source/WebCore/html/SearchInputType.cpp
Source/WebCore/html/SearchInputType.h