Backed out changeset b9ba9a6b8a97 (bug 1004499) for bustage
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Fri, 02 May 2014 08:54:18 +0200
changeset 181723 66ea09d0c9516e8018b85f5cf2fc168c74f8eec3
parent 181722 b9ba9a6b8a97bc4258fb6d0e911a5efa13fc6398
child 181724 5fcd868dccc636339a74e4c30587a597c6e98aa4
child 181738 1301866ebf72833d0df2e62cc230b174e6be055a
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
bugs1004499
milestone32.0a1
backs outb9ba9a6b8a97bc4258fb6d0e911a5efa13fc6398
Backed out changeset b9ba9a6b8a97 (bug 1004499) for bustage
content/canvas/src/CanvasRenderingContext2D.cpp
--- a/content/canvas/src/CanvasRenderingContext2D.cpp
+++ b/content/canvas/src/CanvasRenderingContext2D.cpp
@@ -1857,20 +1857,17 @@ bool CanvasRenderingContext2D::DrawCusto
   }
 
   nsIFocusManager* fm = nsFocusManager::GetFocusManager();
   if (fm) {
     // check that the element i focused
     nsCOMPtr<nsIDOMElement> focusedElement;
     fm->GetFocusedElement(getter_AddRefs(focusedElement));
     if (SameCOMIdentity(aElement.AsDOMNode(), focusedElement)) {
-      nsPIDOMWindow *window = aElement->OwnerDoc()->GetWindow();
-      if (window) {
-        return window->ShouldShowFocusRing();
-      }
+      return true;
     }
   }
 
   return false;
 }
 
 void
 CanvasRenderingContext2D::Clip(const CanvasWindingRule& winding)