Index: Source/modules/canvas2d/CanvasRenderingContext2D.cpp |
diff --git a/Source/modules/canvas2d/CanvasRenderingContext2D.cpp b/Source/modules/canvas2d/CanvasRenderingContext2D.cpp |
index a778072ae53ebbcf38871f0ecf498a2de374baf2..e85b38d12379ff67ede7844f8e0c5c5d84f33080 100644 |
--- a/Source/modules/canvas2d/CanvasRenderingContext2D.cpp |
+++ b/Source/modules/canvas2d/CanvasRenderingContext2D.cpp |
@@ -2168,6 +2168,7 @@ void CanvasRenderingContext2D::drawFocusRing(const Path& path) |
void CanvasRenderingContext2D::updateElementAccessibility(const Path& path, Element* element) |
{ |
+ element->document().updateLayoutIgnorePendingStylesheets(); |
AXObjectCache* axObjectCache = element->document().existingAXObjectCache(); |
LayoutBoxModelObject* lbmo = canvas()->layoutBoxModelObject(); |
LayoutObject* renderer = canvas()->layoutObject(); |