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

Unified Diff: src/pdf/SkPDFDevice.cpp

Issue 137923005: Drawing fake bold text, line and normal text made normal text bolder on PDF. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 10 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 | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFDevice.cpp
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp
index ff83aadeee7b8a27b71b52542625947553dbb8a2..773928b5344371448160f0f23fb4925bcc561aae 100644
--- a/src/pdf/SkPDFDevice.cpp
+++ b/src/pdf/SkPDFDevice.cpp
@@ -238,9 +238,8 @@ bool GraphicStateEntry::compareInitialState(const GraphicStateEntry& b) {
fGraphicStateIndex == b.fGraphicStateIndex &&
fMatrix == b.fMatrix &&
fClipStack == b.fClipStack &&
- (fTextScaleX == 0 ||
- b.fTextScaleX == 0 ||
- (fTextScaleX == b.fTextScaleX && fTextFill == b.fTextFill));
+ fTextScaleX == b.fTextScaleX &&
vandebo (ex-Chrome) 2014/02/05 22:07:08 This will work, but I think it's a bit more specif
+ (!fTextScaleX || fTextFill == b.fTextFill);
}
class GraphicStackState {
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698