Index: third_party/WebKit/Source/core/page/PrintContextTest.cpp |
diff --git a/third_party/WebKit/Source/core/page/PrintContextTest.cpp b/third_party/WebKit/Source/core/page/PrintContextTest.cpp |
index d8bc7ea41ed25249ee45f1ca8e555c4f3b0db52d..5fb07b17ddd64980920797befca2816bb27a7708 100644 |
--- a/third_party/WebKit/Source/core/page/PrintContextTest.cpp |
+++ b/third_party/WebKit/Source/core/page/PrintContextTest.cpp |
@@ -18,6 +18,7 @@ |
#include "platform/scroll/ScrollbarTheme.h" |
#include "platform/text/TextStream.h" |
#include "testing/gtest/include/gtest/gtest.h" |
+#include "third_party/skia/include/core/SkAnnotation.h" |
#include "third_party/skia/include/core/SkCanvas.h" |
namespace blink { |
@@ -52,12 +53,11 @@ public: |
#ifdef SK_SUPPORT_NEW_ANNOTATION_CANVAS_VIRTUAL |
void onDrawAnnotation(const SkRect& rect, const char key[], SkData* value) override |
{ |
- if (rect.width() == 0 && rect.height()) { |
- ASSERT_EQ(1u, count); |
+ if (rect.width() == 0 && rect.height() == 0) { |
SkPoint point = getTotalMatrix().mapXY(rect.x(), rect.y()); |
Operation operation = { |
DrawPoint, SkRect::MakeXYWH(point.x(), point.y(), 0, 0) }; |
- m_recordedOperations.append(operation); |
+ m_recordedOperations.append(operation); |
} else { |
Operation operation = { DrawRect, rect }; |
getTotalMatrix().mapRect(&operation.rect); |