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

Unified Diff: chrome/browser/ui/views/tabs/tab.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: Created 5 years, 12 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 | « no previous file | content/shell/renderer/test_runner/mock_web_theme_engine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab.cc
diff --git a/chrome/browser/ui/views/tabs/tab.cc b/chrome/browser/ui/views/tabs/tab.cc
index 680d3e6462764e3595edfbf9aa514f50991c05fc..a1d6b68a62c8955f66ac59dc2639b5da470a4fb9 100644
--- a/chrome/browser/ui/views/tabs/tab.cc
+++ b/chrome/browser/ui/views/tabs/tab.cc
@@ -710,9 +710,10 @@ bool Tab::GetHitTestMask(gfx::Path* mask) const {
controller_->ShouldPaintTab(this, &clip);
if (clip.size().GetArea()) {
SkRect intersection(mask->getBounds());
- intersection.intersect(RectToSkRect(clip));
mask->reset();
- mask->addRect(intersection);
+ if (intersection.intersect(RectToSkRect(clip))) {
sky 2015/01/05 16:32:44 If the two don't intersect, then I think this func
tdanderson 2015/01/05 17:16:43 I agree. Change the block starting at line 711 to
robertphillips 2015/01/05 19:31:56 Done.
+ mask->addRect(intersection);
+ }
}
return true;
« no previous file with comments | « no previous file | content/shell/renderer/test_runner/mock_web_theme_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698