freebsd-ports/www/chromium/files/patch-ui_views_controls_label.cc
Carlos J. Puga Medina 893d9b13f0 www/chromium: update to 59.0.3071.104
- Use https in WWW and MASTER_SITES
- Sort ONLY_FOR_ARCHS, USES, USE_GNOME and GN_ARGS
- Put in correct place MAKE_ENV+= V=1 variable
- Use LLD linker by default for supported archs
- Fix DEBUG option
- Fix gpu_info_collector.cc warning: control may reach end of non-void function [-Wreturn-type]
- Get rid of multiple definition errors

Changelog: https://chromium.googlesource.com/chromium/src/+log/58.0.3029.110..59.0.3071.104?pretty=fuller&n=10000

MFH:		2017Q2
Security:	https://www.vuxml.org/freebsd/52f4b48b-4ac3-11e7-99aa-e8e0b747a45a.html
Security:	https://www.vuxml.org/freebsd/f53dd5cc-527f-11e7-a772-e8e0b747a45a.html
2017-06-20 20:20:44 +00:00

20 lines
812 B
C++

--- ui/views/controls/label.cc.orig 2017-06-05 19:03:30 UTC
+++ ui/views/controls/label.cc
@@ -553,7 +553,7 @@ bool Label::OnMousePressed(const ui::MouseEvent& event
GetFocusManager()->SetFocusedView(this);
}
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
if (event.IsOnlyMiddleMouseButton() && GetFocusManager() && !had_focus)
GetFocusManager()->SetFocusedView(this);
#endif
@@ -729,7 +729,7 @@ bool Label::PasteSelectionClipboard() {
}
void Label::UpdateSelectionClipboard() {
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
if (!obscured()) {
ui::ScopedClipboardWriter(ui::CLIPBOARD_TYPE_SELECTION)
.WriteText(GetSelectedText());