WebCore:
Reviewed by Maciej.
Fix <rdar://problem/
5452112>
REGRESSION: Initially focused textfield on www.mac.com login page has no insertion point, and doesn't accept typed characters
Use updateLayoutIgnorePendingStylesheets() instead of updateLayout(). We need to have rendering to set input focus.
Test: fast/forms/focus-style-pending.html
* dom/Element.cpp:
(WebCore::Element::focus):
LayoutTests:
Reviewed by Maciej.
Test for <rdar://problem/
5452112>
REGRESSION: Initially focused textfield on www.mac.com login page has no insertion point, and doesn't accept typed characters
* fast/forms/focus-style-pending-expected.txt: Added.
* fast/forms/focus-style-pending.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25353
268f45cc-cd09-0410-ab3c-
d52691b4dbfc