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

Unified Diff: chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm

Issue 2410283003: [Mac] Restore the graphics state for the Security State Decoration (Closed)
Patch Set: Created 4 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm b/chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm
index 1003d097eac21a49bef800e89128b9e4af8947d7..de21a1326e0764199d17b91f4a6bb064e3b8aa0d 100644
--- a/chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm
@@ -176,7 +176,7 @@ void SecurityStateBubbleDecoration::DrawInFrame(NSRect frame,
// Transform the coordinate system to adjust the baseline on Retina.
// This is the only way to get fractional adjustments.
- // gfx::ScopedNSGraphicsContextSaveGState save_graphics_state;
+ gfx::ScopedNSGraphicsContextSaveGState save_graphics_state;
CGFloat line_width = [control_view cr_lineWidth];
if (line_width < 1) {
NSAffineTransform* transform = [NSAffineTransform transform];
@@ -235,10 +235,6 @@ void SecurityStateBubbleDecoration::DrawInFrame(NSRect frame,
divider_color = [divider_color colorWithAlphaComponent:divider_alpha];
[divider_color set];
[line stroke];
-
- // Revert the transformation.
- [transform invert];
- [transform concat];
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698