Elements in Shadow DOM are not resizable.
authorshinyak@chromium.org <shinyak@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 May 2012 09:17:05 +0000 (09:17 +0000)
committershinyak@chromium.org <shinyak@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 May 2012 09:17:05 +0000 (09:17 +0000)
commit426d205cbc125bdbfa0f68ec728931e3051851fb
treea39092a6ef74fc409495dd5d877743d884c0c080
parentadaa99c7bb25563da7f859d7ee7e2ad64b5d499f
Elements in Shadow DOM are not resizable.
https://bugs.webkit.org/show_bug.cgi?id=87342

Reviewed by Ryosuke Niwa.

Source/WebCore:

In RenderLayer::resize(), shadowAncestorNode() was used but if the ancestor node is used,
it is not possible to resize elements in Shadow DOM.

The comments said it is necessary for textarea, however actually it is not necessary now.
Existing test (fast/css/resize-corner-tracking) covers it.

Test: fast/dom/shadow/resize-in-shadow-dom.html

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::resize):

LayoutTests:

* fast/dom/shadow/resize-in-shadow-dom-expected.txt: Added.
* fast/dom/shadow/resize-in-shadow-dom.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@118338 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/shadow/resize-in-shadow-dom-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/shadow/resize-in-shadow-dom.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderLayer.cpp