Commit 8557f6fd authored by lgrey's avatar lgrey Committed by Commit bot

[Mac] RTL aware drawing for the bubble decoration hover background

BUG=648557

Review-Url: https://codereview.chromium.org/2586363002
Cr-Commit-Position: refs/heads/master@{#439808}
parent 0299ae01
......@@ -102,8 +102,13 @@ CGFloat BubbleDecoration::GetWidthForSpace(CGFloat width) {
NSRect BubbleDecoration::GetBackgroundFrame(NSRect frame) {
NSRect background_frame = NSInsetRect(frame, 0.0, kBackgroundFrameYInset);
if (cocoa_l10n_util::ShouldDoExperimentalRTLLayout()) {
background_frame.origin.x += kDividerPadding;
background_frame.size.width -= kDividerPadding + kBackgroundFrameLeftMargin;
} else {
background_frame.origin.x += kBackgroundFrameLeftMargin;
background_frame.size.width -= kDividerPadding;
}
return background_frame;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment