| Index: third_party/WebKit/Source/core/page/PrintContext.cpp
|
| diff --git a/third_party/WebKit/Source/core/page/PrintContext.cpp b/third_party/WebKit/Source/core/page/PrintContext.cpp
|
| index 98606292834d3d73b83a5eed4662cc89685f35e9..e20c84d2abc5c323672ad907266c41431bc4071c 100644
|
| --- a/third_party/WebKit/Source/core/page/PrintContext.cpp
|
| +++ b/third_party/WebKit/Source/core/page/PrintContext.cpp
|
| @@ -188,7 +188,7 @@ static LayoutBoxModelObject* enclosingBoxModelObject(LayoutObject* object)
|
|
|
| int PrintContext::pageNumberForElement(Element* element, const FloatSize& pageSizeInPixels)
|
| {
|
| - element->document().updateLayout();
|
| + element->document().updateStyleAndLayout();
|
|
|
| LayoutBoxModelObject* box = enclosingBoxModelObject(element->layoutObject());
|
| if (!box)
|
| @@ -302,7 +302,7 @@ String PrintContext::pageSizeAndMarginsInPixels(LocalFrame* frame, int pageNumbe
|
|
|
| int PrintContext::numberOfPages(LocalFrame* frame, const FloatSize& pageSizeInPixels)
|
| {
|
| - frame->document()->updateLayout();
|
| + frame->document()->updateStyleAndLayout();
|
|
|
| FloatRect pageRect(FloatPoint(0, 0), pageSizeInPixels);
|
| PrintContext printContext(frame);
|
|
|