Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2577)

Unified Diff: Source/web/WebLocalFrameImpl.cpp

Issue 1172463002: Fix print context to work under slimming paint. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove unnecessary RuntimeEnabledFeatures include. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/PrintContextTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebLocalFrameImpl.cpp
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
index ab13d530431e1dd3f53ade03028c7b33ef594a4f..76c424b3ccf27816788ef0cf95214db729bc4933 100644
--- a/Source/web/WebLocalFrameImpl.cpp
+++ b/Source/web/WebLocalFrameImpl.cpp
@@ -366,6 +366,7 @@ public:
float scale = spoolPage(pictureBuilder.context(), pageNumber);
pictureBuilder.endRecording()->playback(canvas);
+ outputLinkedDestinations(canvas, pageRect);
return scale;
}
@@ -428,6 +429,7 @@ public:
currentHeight += pageSizeInPixels.height() + 1;
}
pictureBuilder.endRecording()->playback(canvas);
+ outputLinkedDestinations(canvas, allPagesRect);
}
DisplayItemClient displayItemClient() const { return toDisplayItemClient(this); }
@@ -456,8 +458,6 @@ protected:
frame()->view()->paintContents(&context, pageRect);
- outputLinkedDestinations(context, pageRect);
-
return scale;
}
« no previous file with comments | « Source/core/page/PrintContextTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698