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

Unified Diff: content/shell/renderer/test_runner/mock_web_theme_engine.cc

Issue 814123003: Add handling for Skia's SkPath::intersect's return value (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed braces Created 5 years, 11 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 | « chrome/browser/ui/views/tabs/tab.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/mock_web_theme_engine.cc
diff --git a/content/shell/renderer/test_runner/mock_web_theme_engine.cc b/content/shell/renderer/test_runner/mock_web_theme_engine.cc
index 5ad404ee3626bda948ca8c5456c64161fa8294a9..2d147bf68cd9e8f117e6973a03825fffa195b885 100644
--- a/content/shell/renderer/test_runner/mock_web_theme_engine.cc
+++ b/content/shell/renderer/test_runner/mock_web_theme_engine.cc
@@ -628,7 +628,9 @@ void MockWebThemeEngine::paint(blink::WebCanvas* canvas,
extraParams->progressBar.valueRectHeight);
}
- tofill.intersect(irect, tofill);
+ if (!tofill.intersect(irect))
+ tofill.setEmpty();
+
paint.setColor(edgeColor);
paint.setStyle(SkPaint::kFill_Style);
canvas->drawIRect(tofill, paint);
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698