OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) |
4 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 4 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
6 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> | 6 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> |
7 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 7 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
8 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved. | 8 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved. |
9 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 9 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
10 * | 10 * |
(...skipping 2150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2161 | 2161 |
2162 SkIRect dirtyRect; | 2162 SkIRect dirtyRect; |
2163 if (!computeDirtyRect(path.strokeBoundingRect(strokeData), &dirtyRect)) | 2163 if (!computeDirtyRect(path.strokeBoundingRect(strokeData), &dirtyRect)) |
2164 return; | 2164 return; |
2165 | 2165 |
2166 didDraw(dirtyRect); | 2166 didDraw(dirtyRect); |
2167 } | 2167 } |
2168 | 2168 |
2169 void CanvasRenderingContext2D::updateElementAccessibility(const Path& path, Elem
ent* element) | 2169 void CanvasRenderingContext2D::updateElementAccessibility(const Path& path, Elem
ent* element) |
2170 { | 2170 { |
| 2171 element->document().updateLayoutIgnorePendingStylesheets(); |
2171 AXObjectCache* axObjectCache = element->document().existingAXObjectCache(); | 2172 AXObjectCache* axObjectCache = element->document().existingAXObjectCache(); |
2172 LayoutBoxModelObject* lbmo = canvas()->layoutBoxModelObject(); | 2173 LayoutBoxModelObject* lbmo = canvas()->layoutBoxModelObject(); |
2173 LayoutObject* renderer = canvas()->layoutObject(); | 2174 LayoutObject* renderer = canvas()->layoutObject(); |
2174 if (!axObjectCache || !lbmo || !renderer) | 2175 if (!axObjectCache || !lbmo || !renderer) |
2175 return; | 2176 return; |
2176 | 2177 |
2177 // Get the transformed path. | 2178 // Get the transformed path. |
2178 Path transformedPath = path; | 2179 Path transformedPath = path; |
2179 transformedPath.transform(state().transform()); | 2180 transformedPath.transform(state().transform()); |
2180 | 2181 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2316 if (imageType == CanvasRenderingContext2DState::NonOpaqueImage) | 2317 if (imageType == CanvasRenderingContext2DState::NonOpaqueImage) |
2317 return; | 2318 return; |
2318 if (alpha < 0xFF) | 2319 if (alpha < 0xFF) |
2319 return; | 2320 return; |
2320 } | 2321 } |
2321 | 2322 |
2322 canvas()->buffer()->willOverwriteCanvas(); | 2323 canvas()->buffer()->willOverwriteCanvas(); |
2323 } | 2324 } |
2324 | 2325 |
2325 } // namespace blink | 2326 } // namespace blink |
OLD | NEW |