Title: [160914] trunk/Source/WebCore
- Revision
- 160914
- Author
- an...@apple.com
- Date
- 2013-12-20 08:50:53 -0800 (Fri, 20 Dec 2013)
Log Message
Fix asserting accesibility tests.
* html/HTMLElement.cpp:
(WebCore::HTMLElement::supportsFocus): Accessibility code checks focus status during painting.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (160913 => 160914)
--- trunk/Source/WebCore/ChangeLog 2013-12-20 15:51:00 UTC (rev 160913)
+++ trunk/Source/WebCore/ChangeLog 2013-12-20 16:50:53 UTC (rev 160914)
@@ -1,3 +1,10 @@
+2013-12-20 Antti Koivisto <an...@apple.com>
+
+ Fix asserting accesibility tests.
+
+ * html/HTMLElement.cpp:
+ (WebCore::HTMLElement::supportsFocus): Accessibility code checks focus status during painting.
+
2013-12-20 Zan Dobersek <zdober...@igalia.com>
Unreviewed GTK build fix after r160909.
Modified: trunk/Source/WebCore/html/HTMLElement.cpp (160913 => 160914)
--- trunk/Source/WebCore/html/HTMLElement.cpp 2013-12-20 15:51:00 UTC (rev 160913)
+++ trunk/Source/WebCore/html/HTMLElement.cpp 2013-12-20 16:50:53 UTC (rev 160914)
@@ -662,7 +662,7 @@
bool HTMLElement::supportsFocus() const
{
- if (!document().view()->isInLayout())
+ if (!document().view()->isInLayout() && !document().view()->isPainting())
document().updateStyleIfNeeded();
return Element::supportsFocus() || (rendererIsEditable() && parentNode() && !parentNode()->rendererIsEditable());
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes