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

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

Issue 1170583002: Recalc style or reattach when adding or removing the audio controls attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/html/HTMLVideoElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 virtual bool isVideoElement() const override { return true; } 83 virtual bool isVideoElement() const override { return true; }
84 virtual bool wouldTaintOrigin(SecurityOrigin*) const override; 84 virtual bool wouldTaintOrigin(SecurityOrigin*) const override;
85 virtual FloatSize elementSize() const override; 85 virtual FloatSize elementSize() const override;
86 virtual const KURL& sourceURL() const override { return currentSrc(); } 86 virtual const KURL& sourceURL() const override { return currentSrc(); }
87 87
88 virtual bool isHTMLVideoElement() const override { return true; } 88 virtual bool isHTMLVideoElement() const override { return true; }
89 89
90 private: 90 private:
91 HTMLVideoElement(Document&); 91 HTMLVideoElement(Document&);
92 92
93 virtual bool layoutObjectIsNeeded(const ComputedStyle&) override;
94 virtual LayoutObject* createLayoutObject(const ComputedStyle&) override; 93 virtual LayoutObject* createLayoutObject(const ComputedStyle&) override;
95 virtual void attach(const AttachContext& = AttachContext()) override; 94 virtual void attach(const AttachContext& = AttachContext()) override;
96 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide; 95 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide;
97 virtual bool isPresentationAttribute(const QualifiedName&) const override; 96 virtual bool isPresentationAttribute(const QualifiedName&) const override;
98 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) override; 97 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) override;
99 virtual bool hasVideo() const override { return webMediaPlayer() && webMedia Player()->hasVideo(); } 98 virtual bool hasVideo() const override { return webMediaPlayer() && webMedia Player()->hasVideo(); }
100 bool supportsFullscreen() const; 99 bool supportsFullscreen() const;
101 virtual bool isURLAttribute(const Attribute&) const override; 100 virtual bool isURLAttribute(const Attribute&) const override;
102 virtual const AtomicString imageSourceURL() const override; 101 virtual const AtomicString imageSourceURL() const override;
103 102
104 virtual void updateDisplayState() override; 103 virtual void updateDisplayState() override;
105 virtual void didMoveToNewDocument(Document& oldDocument) override; 104 virtual void didMoveToNewDocument(Document& oldDocument) override;
106 virtual void setDisplayMode(DisplayMode) override; 105 virtual void setDisplayMode(DisplayMode) override;
107 106
108 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; 107 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader;
109 108
110 AtomicString m_defaultPosterURL; 109 AtomicString m_defaultPosterURL;
111 }; 110 };
112 111
113 } // namespace blink 112 } // namespace blink
114 113
115 #endif // HTMLVideoElement_h 114 #endif // HTMLVideoElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/html/HTMLVideoElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698