| 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 3cfff3d8a8ec62b65b6008c0788c999a2df34fcb..4808b8a694c3ecb7455254d46c8f16b6d2bff452 100644
|
| --- a/third_party/WebKit/Source/core/page/PrintContext.cpp
|
| +++ b/third_party/WebKit/Source/core/page/PrintContext.cpp
|
| @@ -244,7 +244,10 @@ void PrintContext::outputLinkedDestinations(SkCanvas* canvas, const IntRect& pag
|
| if (!layoutObject || !layoutObject->frameView())
|
| continue;
|
| IntRect boundingBox = layoutObject->absoluteBoundingBoxRect();
|
| - boundingBox = layoutObject->frameView()->convertToContainingWindow(boundingBox);
|
| + // TODO(bokan): boundingBox looks to be in content coordinates but
|
| + // convertToRootFrame doesn't apply scroll offsets when converting up to
|
| + // the root frame.
|
| + boundingBox = layoutObject->frameView()->convertToRootFrame(boundingBox);
|
| if (!pageRect.intersects(boundingBox))
|
| continue;
|
| IntPoint point = boundingBox.minXMinYCorner();
|
|
|