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

Unified Diff: ui/views/controls/button/checkbox.cc

Issue 2438053002: Fix checkbox ink drop ripple for RTL. (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: ui/views/controls/button/checkbox.cc
diff --git a/ui/views/controls/button/checkbox.cc b/ui/views/controls/button/checkbox.cc
index e52c23bf3ffead609ea8c26b18b3e4e3b2d10d1c..feb053b4d7def44a8dddc6f5befff8297b885344 100644
--- a/ui/views/controls/button/checkbox.cc
+++ b/ui/views/controls/button/checkbox.cc
@@ -165,7 +165,7 @@ void Checkbox::OnNativeThemeChanged(const ui::NativeTheme* theme) {
}
std::unique_ptr<InkDropRipple> Checkbox::CreateInkDropRipple() const {
- return CreateDefaultInkDropRipple(image()->bounds().CenterPoint());
+ return CreateDefaultInkDropRipple(image()->GetMirroredBounds().CenterPoint());
}
std::unique_ptr<InkDropHighlight> Checkbox::CreateInkDropHighlight() const {
« 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