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

Unified Diff: Source/core/html/track/TextTrackCueGeneric.cpp

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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/track/TextTrackCue.cpp ('k') | Source/core/page/DragController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/TextTrackCueGeneric.cpp
diff --git a/Source/core/html/track/TextTrackCueGeneric.cpp b/Source/core/html/track/TextTrackCueGeneric.cpp
index a7d4cbe53135c745d5cd4c8fe084c34575e6f9b5..5ea1db44c40d895fcd81ef964dec953f48267f0e 100644
--- a/Source/core/html/track/TextTrackCueGeneric.cpp
+++ b/Source/core/html/track/TextTrackCueGeneric.cpp
@@ -36,7 +36,7 @@ namespace WebCore {
class TextTrackCueGenericBoxElement FINAL : public TextTrackCueBox {
public:
- static PassRefPtr<TextTrackCueGenericBoxElement> create(Document* document, TextTrackCueGeneric* cue)
+ static PassRefPtr<TextTrackCueGenericBoxElement> create(Document& document, TextTrackCueGeneric* cue)
{
return adoptRef(new TextTrackCueGenericBoxElement(document, cue));
}
@@ -44,10 +44,10 @@ public:
virtual void applyCSSProperties(const IntSize&) OVERRIDE;
private:
- TextTrackCueGenericBoxElement(Document*, TextTrackCue*);
+ TextTrackCueGenericBoxElement(Document&, TextTrackCue*);
};
-TextTrackCueGenericBoxElement::TextTrackCueGenericBoxElement(Document* document, TextTrackCue* cue)
+TextTrackCueGenericBoxElement::TextTrackCueGenericBoxElement(Document& document, TextTrackCue* cue)
: TextTrackCueBox(document, cue)
{
}
@@ -113,7 +113,8 @@ TextTrackCueGeneric::TextTrackCueGeneric(ScriptExecutionContext* context, double
PassRefPtr<TextTrackCueBox> TextTrackCueGeneric::createDisplayTree()
{
- return TextTrackCueGenericBoxElement::create(ownerDocument(), this);
+ ASSERT(ownerDocument());
+ return TextTrackCueGenericBoxElement::create(*ownerDocument(), this);
}
void TextTrackCueGeneric::setLine(int line, ExceptionState& es)
« no previous file with comments | « Source/core/html/track/TextTrackCue.cpp ('k') | Source/core/page/DragController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698