| Index: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
|
| diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
|
| index b138cecd63628bd489ca7cfed0d8ba0c059cd2bc..ca6fa55cdcab4342987a70da86bb45a7c21253f1 100644
|
| --- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
|
| +++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
|
| @@ -322,7 +322,7 @@ void CanvasRenderingContext2D::scrollPathIntoViewInternal(const Path& path)
|
| if (!state().isTransformInvertible() || path.isEmpty())
|
| return;
|
|
|
| - canvas()->document().updateLayoutIgnorePendingStylesheets();
|
| + canvas()->document().updateStyleAndLayoutIgnorePendingStylesheets();
|
|
|
| LayoutObject* renderer = canvas()->layoutObject();
|
| LayoutBox* layoutBox = canvas()->layoutBox();
|
| @@ -455,7 +455,7 @@ void CanvasRenderingContext2D::setFont(const String& newFont)
|
| if (!canvas()->document().frame())
|
| return;
|
|
|
| - canvas()->document().updateLayoutTreeForNode(canvas());
|
| + canvas()->document().updateStyleAndLayoutTreeForNode(canvas());
|
|
|
| // The following early exit is dependent on the cache not being empty
|
| // because an empty cache may indicate that a style change has occured
|
| @@ -668,7 +668,7 @@ static inline TextDirection toTextDirection(CanvasRenderingContext2DState::Direc
|
| String CanvasRenderingContext2D::direction() const
|
| {
|
| if (state().getDirection() == CanvasRenderingContext2DState::DirectionInherit)
|
| - canvas()->document().updateLayoutTreeForNode(canvas());
|
| + canvas()->document().updateStyleAndLayoutTreeForNode(canvas());
|
| return toTextDirection(state().getDirection(), canvas()) == RTL ? rtl : ltr;
|
| }
|
|
|
| @@ -718,7 +718,7 @@ TextMetrics* CanvasRenderingContext2D::measureText(const String& text)
|
| if (!canvas()->document().frame())
|
| return metrics;
|
|
|
| - canvas()->document().updateLayoutTreeForNode(canvas());
|
| + canvas()->document().updateStyleAndLayoutTreeForNode(canvas());
|
| const Font& font = accessFont();
|
|
|
| TextDirection direction;
|
| @@ -766,7 +766,7 @@ void CanvasRenderingContext2D::drawTextInternal(const String& text, double x, do
|
| // accessFont needs the style to be up to date, but updating style can cause script to run,
|
| // (e.g. due to autofocus) which can free the canvas (set size to 0, for example), so update
|
| // style before grabbing the drawingCanvas.
|
| - canvas()->document().updateLayoutTreeForNode(canvas());
|
| + canvas()->document().updateStyleAndLayoutTreeForNode(canvas());
|
|
|
| SkCanvas* c = drawingCanvas();
|
| if (!c)
|
| @@ -970,7 +970,7 @@ void CanvasRenderingContext2D::drawFocusRing(const Path& path)
|
|
|
| void CanvasRenderingContext2D::updateElementAccessibility(const Path& path, Element* element)
|
| {
|
| - element->document().updateLayoutIgnorePendingStylesheets();
|
| + element->document().updateStyleAndLayoutIgnorePendingStylesheets();
|
| AXObjectCache* axObjectCache = element->document().existingAXObjectCache();
|
| LayoutBoxModelObject* lbmo = canvas()->layoutBoxModelObject();
|
| LayoutObject* renderer = canvas()->layoutObject();
|
|
|