author | Rik Cabanier <cabanier@adobe.com> |
Fri, 10 Jan 2014 08:48:56 -0500 | |
changeset 162945 | 6ccb56d8984e12d38c440f0398c8fa7952283427 |
parent 162944 | 5d5cee47612459b8164e7003fd6ce900eb110e92 |
child 162946 | ee221e1e179f2e321eb715fbc8259a37841daaf7 |
push id | 25975 |
push user | ryanvm@gmail.com |
push date | Fri, 10 Jan 2014 19:46:47 +0000 |
treeherder | autoland@e89afc241513 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | roc |
bugs | 958232 |
milestone | 29.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/content/canvas/src/CanvasRenderingContext2D.cpp +++ b/content/canvas/src/CanvasRenderingContext2D.cpp @@ -1785,33 +1785,16 @@ 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)) { - // get the bounds of the current path - mgfx::Rect bounds; - bounds = mPath->GetBounds(mTarget->GetTransform()); - - // and set them as the accessible area - nsRect rect(canvas->ClientLeft() + bounds.x, canvas->ClientTop() + bounds.y, - bounds.width, bounds.height); - rect.x *= AppUnitsPerCSSPixel(); - rect.y *= AppUnitsPerCSSPixel(); - rect.width *= AppUnitsPerCSSPixel(); - rect.height *= AppUnitsPerCSSPixel(); - - nsIFrame* frame = aElement.GetPrimaryFrame(); - if(frame) { - frame->SetRect(rect); - } - return true; } } return false; } void