blur() on shadow host should work when a shadow host contains a focused element in...
[WebKit-https.git] / Source / WebCore / ChangeLog
index 54f4567814a8f1ff66d568441cc9370bedd4b58b..c4ff5c8231cb44a8df25f27987004e5e52b32cea 100644 (file)
@@ -1,3 +1,26 @@
+2012-03-22  Kaustubh Atrawalkar  <kaustubh@motorola.com>
+
+        blur() on shadow host should work when a shadow host contains a focused element in its shadow DOM subtrees
+        https://bugs.webkit.org/show_bug.cgi?id=81102
+
+        Reviewed by Hajime Morita.
+
+        This implementation will support blur for a focused element when its shadowHost's blur() is called.
+        To achieve this Element::blur() function is modified to blur the focused node in it's treeScope.
+
+        Test: fast/dom/shadow/shadow-root-blur.html
+
+        * dom/Element.cpp:
+        (WebCore::Element::blur): Modified to blur current treeScope's focused node.
+        * dom/ShadowRoot.h:
+        (WebCore::ShadowRoot::activeElement): Rework for code sharing.
+        * dom/TreeScope.cpp:
+        (WebCore::TreeScope::focusedNode): Added new function to share code for getting focused node.
+        * dom/TreeScope.h:
+        (TreeScope): New function declartion.
+        * html/HTMLDocument.cpp:
+        (WebCore::HTMLDocument::activeElement): Rework for code sharing.
+
 2012-03-22  Vsevolod Vlasov  <vsevik@chromium.org>
 
         Web Inspector: RawSourceCode does not need uiSourceCode lists because it never has more than one.