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

Unified Diff: third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp

Issue 1858163002: Rename inDocument() to inShadowIncludingDocument() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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
Index: third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
index 98196c1bdb4c979ce8cd17657584bf909f4c3015..8abd84b258199c91dc3f920ced137688a0319299 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
@@ -397,7 +397,7 @@ void MediaControlTimelineElement::defaultEventHandler(Event* event)
if (event->isMouseEvent() && toMouseEvent(event)->button() != LeftButton)
return;
- if (!inDocument() || !document().isActive())
+ if (!inShadowIncludingDocument() || !document().isActive())
return;
if (event->type() == EventTypeNames::mousedown)
@@ -426,7 +426,7 @@ void MediaControlTimelineElement::defaultEventHandler(Event* event)
bool MediaControlTimelineElement::willRespondToMouseClickEvents()
{
- return inDocument() && document().isActive();
+ return inShadowIncludingDocument() && document().isActive();
}
void MediaControlTimelineElement::setPosition(double currentTime)
@@ -473,7 +473,7 @@ void MediaControlVolumeSliderElement::defaultEventHandler(Event* event)
if (event->isMouseEvent() && toMouseEvent(event)->button() != LeftButton)
return;
- if (!inDocument() || !document().isActive())
+ if (!inShadowIncludingDocument() || !document().isActive())
return;
MediaControlInputElement::defaultEventHandler(event);
@@ -488,7 +488,7 @@ void MediaControlVolumeSliderElement::defaultEventHandler(Event* event)
bool MediaControlVolumeSliderElement::willRespondToMouseMoveEvents()
{
- if (!inDocument() || !document().isActive())
+ if (!inShadowIncludingDocument() || !document().isActive())
return false;
return MediaControlInputElement::willRespondToMouseMoveEvents();
@@ -496,7 +496,7 @@ bool MediaControlVolumeSliderElement::willRespondToMouseMoveEvents()
bool MediaControlVolumeSliderElement::willRespondToMouseClickEvents()
{
- if (!inDocument() || !document().isActive())
+ if (!inShadowIncludingDocument() || !document().isActive())
return false;
return MediaControlInputElement::willRespondToMouseClickEvents();
« no previous file with comments | « third_party/WebKit/Source/core/html/imports/LinkImport.cpp ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698