Chromium Code Reviews| Index: Source/modules/canvas2d/CanvasRenderingContext2D.cpp |
| diff --git a/Source/modules/canvas2d/CanvasRenderingContext2D.cpp b/Source/modules/canvas2d/CanvasRenderingContext2D.cpp |
| index a778072ae53ebbcf38871f0ecf498a2de374baf2..c3a244dd0450a69d35cf42a8d8bd843fde55f775 100644 |
| --- a/Source/modules/canvas2d/CanvasRenderingContext2D.cpp |
| +++ b/Source/modules/canvas2d/CanvasRenderingContext2D.cpp |
| @@ -2179,6 +2179,7 @@ void CanvasRenderingContext2D::updateElementAccessibility(const Path& path, Elem |
| transformedPath.transform(state().transform()); |
| // Offset by the canvas rect, taking border and padding into account. |
| + element->document().updateLayoutIgnorePendingStylesheets(); |
|
Justin Novosad
2015/07/27 14:36:36
You should to do this update update before calling
zino
2015/07/28 00:38:48
Done.
|
| IntRect canvasRect = renderer->absoluteBoundingBoxRect(); |
| canvasRect.move(lbmo->borderLeft() + lbmo->paddingLeft(), lbmo->borderTop() + lbmo->paddingTop()); |
| LayoutRect elementRect = enclosingLayoutRect(transformedPath.boundingRect()); |