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

Side by Side Diff: Source/core/html/HTMLVideoElement.cpp

Issue 66643004: Remove QualifiedName argument from most HTMLElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Hack for XML prefix Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 25 matching lines...) Expand all
36 #include "core/html/parser/HTMLParserIdioms.h" 36 #include "core/html/parser/HTMLParserIdioms.h"
37 #include "core/page/Settings.h" 37 #include "core/page/Settings.h"
38 #include "core/rendering/RenderImage.h" 38 #include "core/rendering/RenderImage.h"
39 #include "core/rendering/RenderVideo.h" 39 #include "core/rendering/RenderVideo.h"
40 #include "platform/UserGestureIndicator.h" 40 #include "platform/UserGestureIndicator.h"
41 41
42 namespace WebCore { 42 namespace WebCore {
43 43
44 using namespace HTMLNames; 44 using namespace HTMLNames;
45 45
46 inline HTMLVideoElement::HTMLVideoElement(const QualifiedName& tagName, Document & document, bool createdByParser) 46 inline HTMLVideoElement::HTMLVideoElement(Document& document, bool createdByPars er)
47 : HTMLMediaElement(tagName, document, createdByParser) 47 : HTMLMediaElement(videoTag, document, createdByParser)
48 { 48 {
49 ASSERT(hasTagName(videoTag));
50 ScriptWrappable::init(this); 49 ScriptWrappable::init(this);
51 if (document.settings()) 50 if (document.settings())
52 m_defaultPosterURL = document.settings()->defaultVideoPosterURL(); 51 m_defaultPosterURL = document.settings()->defaultVideoPosterURL();
53 } 52 }
54 53
55 PassRefPtr<HTMLVideoElement> HTMLVideoElement::create(const QualifiedName& tagNa me, Document& document, bool createdByParser) 54 PassRefPtr<HTMLVideoElement> HTMLVideoElement::create(Document& document, bool c reatedByParser)
56 { 55 {
57 RefPtr<HTMLVideoElement> videoElement(adoptRef(new HTMLVideoElement(tagName, document, createdByParser))); 56 RefPtr<HTMLVideoElement> videoElement(adoptRef(new HTMLVideoElement(document , createdByParser)));
58 videoElement->suspendIfNeeded(); 57 videoElement->suspendIfNeeded();
59 return videoElement.release(); 58 return videoElement.release();
60 } 59 }
61 60
62 bool HTMLVideoElement::rendererIsNeeded(const RenderStyle& style) 61 bool HTMLVideoElement::rendererIsNeeded(const RenderStyle& style)
63 { 62 {
64 return HTMLElement::rendererIsNeeded(style); 63 return HTMLElement::rendererIsNeeded(style);
65 } 64 }
66 65
67 RenderObject* HTMLVideoElement::createRenderer(RenderStyle*) 66 RenderObject* HTMLVideoElement::createRenderer(RenderStyle*)
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 260
262 KURL HTMLVideoElement::posterImageURL() const 261 KURL HTMLVideoElement::posterImageURL() const
263 { 262 {
264 String url = stripLeadingAndTrailingHTMLSpaces(imageSourceURL()); 263 String url = stripLeadingAndTrailingHTMLSpaces(imageSourceURL());
265 if (url.isEmpty()) 264 if (url.isEmpty())
266 return KURL(); 265 return KURL();
267 return document().completeURL(url); 266 return document().completeURL(url);
268 } 267 }
269 268
270 } 269 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698