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

Unified Diff: Source/core/html/HTMLMediaElement.h

Issue 838003005: Don't allow text selection to start on a HTMLMediaElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 | « LayoutTests/media/video-controls-start-selection-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMediaElement.h
diff --git a/Source/core/html/HTMLMediaElement.h b/Source/core/html/HTMLMediaElement.h
index 97b51ca20dc524b43784c32ed43eb0f808276c95..88a71008ffd3a6c8d38d9d015cb0e40cac6cabd7 100644
--- a/Source/core/html/HTMLMediaElement.h
+++ b/Source/core/html/HTMLMediaElement.h
@@ -343,6 +343,8 @@ private:
virtual void removedFrom(ContainerNode*) override final;
virtual void didRecalcStyle(StyleRecalcChange) override final;
+ virtual bool canStartSelection() const override { return false; }
+
virtual void didBecomeFullscreenElement() override final;
virtual void willStopBeingFullscreenElement() override final;
virtual bool isInteractiveContent() const override final;
« no previous file with comments | « LayoutTests/media/video-controls-start-selection-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698