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

Unified Diff: Source/core/html/HTMLTrackElement.cpp

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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 | « Source/core/html/HTMLTitleElement.cpp ('k') | Source/core/html/HTMLVideoElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTrackElement.cpp
diff --git a/Source/core/html/HTMLTrackElement.cpp b/Source/core/html/HTMLTrackElement.cpp
index 100648406a01c09d33087bffc186cafed176f846..4b55f78ff52e4ccc999aa3e8d520db91ecbfb5d6 100644
--- a/Source/core/html/HTMLTrackElement.cpp
+++ b/Source/core/html/HTMLTrackElement.cpp
@@ -118,7 +118,7 @@ void HTMLTrackElement::parseAttribute(const QualifiedName& name, const AtomicStr
KURL HTMLTrackElement::src() const
{
- return document()->completeURL(getAttribute(srcAttr));
+ return document().completeURL(getAttribute(srcAttr));
}
void HTMLTrackElement::setSrc(const String& url)
@@ -252,7 +252,7 @@ bool HTMLTrackElement::canLoadUrl(const KURL& url)
if (url.isEmpty())
return false;
- if (!document()->contentSecurityPolicy()->allowMediaFromSource(url)) {
+ if (!document().contentSecurityPolicy()->allowMediaFromSource(url)) {
LOG(Media, "HTMLTrackElement::canLoadUrl(%s) -> rejected by Content Security Policy", urlForLoggingTrack(url).utf8().data());
return false;
}
« no previous file with comments | « Source/core/html/HTMLTitleElement.cpp ('k') | Source/core/html/HTMLVideoElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698