<rdar://problem/9199518> Crash when focusing a styled editable element
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Mar 2011 01:32:21 +0000 (01:32 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Mar 2011 01:32:21 +0000 (01:32 +0000)
commit6c7b2c9ea01db4ec936bf19c8a7475722ce33c89
tree4870665b1599b5b3be79162295ef472119b6eaa0
parentf2f7b884d5376b9d1eb919457d91236fc323485c
<rdar://problem/9199518> Crash when focusing a styled editable element

Reviewed by Darin Adler.

Source/WebCore:

Test: editing/deleting/delete-button-background-image-none.html

* editing/DeleteButtonController.cpp:
(WebCore::isDeletableElement): Check all background layers for background images.
* rendering/style/RenderStyle.h: Removed backgroundImage() as it was only used, incorrectly,
in the above function.

LayoutTests:

* editing/deleting/delete-button-background-image-none-expected.txt: Added.
* editing/deleting/delete-button-background-image-none.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@82529 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/deleting/delete-button-background-image-none-expected.txt [new file with mode: 0644]
LayoutTests/editing/deleting/delete-button-background-image-none.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/editing/DeleteButtonController.cpp
Source/WebCore/rendering/style/RenderStyle.h