diff options
author | 2013-10-31 17:28:30 +0000 | |
---|---|---|
committer | 2013-10-31 17:28:30 +0000 | |
commit | 4469938e92d779dff05e745559e67907bbf21e78 (patch) | |
tree | c87072ff8cef5709436279a1f771160511debd2a /src/pdf/SkPDFDevice.cpp | |
parent | 6fcbfcead5dc1b61fa5b4c139a1a3714e8c58091 (diff) |
Revert "Revert "add SK_ATTR_DEPRECATED -- will need to disable for chrome, since it triggers a warning""
This reverts commit 1e787c38fa71f2a21fd728f1b1d620b9b09b0d3d.
BUG=
Review URL: https://codereview.chromium.org/54603004
git-svn-id: http://skia.googlecode.com/svn/trunk@12057 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/pdf/SkPDFDevice.cpp')
-rw-r--r-- | src/pdf/SkPDFDevice.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp index d8e7b1394a..77aa7a353c 100644 --- a/src/pdf/SkPDFDevice.cpp +++ b/src/pdf/SkPDFDevice.cpp @@ -1607,13 +1607,13 @@ bool SkPDFDevice::handleRectAnnotation(const SkRect& r, const SkMatrix& matrix, SkData* urlData = annotationInfo->find(SkAnnotationKeys::URL_Key()); if (urlData) { handleLinkToURL(urlData, r, matrix); - return p.isNoDrawAnnotation(); + return p.getAnnotation() != NULL; } SkData* linkToName = annotationInfo->find( SkAnnotationKeys::Link_Named_Dest_Key()); if (linkToName) { handleLinkToNamedDest(linkToName, r, matrix); - return p.isNoDrawAnnotation(); + return p.getAnnotation() != NULL; } return false; } @@ -1631,7 +1631,7 @@ bool SkPDFDevice::handlePointAnnotation(const SkPoint* points, size_t count, for (size_t i = 0; i < count; i++) { defineNamedDestination(nameData, points[i], matrix); } - return paint.isNoDrawAnnotation(); + return paint.getAnnotation() != NULL; } return false; } |