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

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

Issue 2418813003: [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 6a5f597d93f95d3b18b216849c78c280b97d22ab..0abd499bd72b97f083f837e5ec9ebd35a7afc4c6 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
@@ -174,7 +174,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];
@@ -233,10 +233,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