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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.h

Issue 1511523002: Align HTMLImageElement relevant mutations to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix removal issue when a text node is between <source> and <img> Created 5 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 285
286 bool alwaysCreateUserAgentShadowRoot() const final { return true; } 286 bool alwaysCreateUserAgentShadowRoot() const final { return true; }
287 bool areAuthorShadowsAllowed() const final { return false; } 287 bool areAuthorShadowsAllowed() const final { return false; }
288 288
289 bool supportsFocus() const final; 289 bool supportsFocus() const final;
290 bool isMouseFocusable() const final; 290 bool isMouseFocusable() const final;
291 bool layoutObjectIsNeeded(const ComputedStyle&) override; 291 bool layoutObjectIsNeeded(const ComputedStyle&) override;
292 LayoutObject* createLayoutObject(const ComputedStyle&) override; 292 LayoutObject* createLayoutObject(const ComputedStyle&) override;
293 InsertionNotificationRequest insertedInto(ContainerNode*) final; 293 InsertionNotificationRequest insertedInto(ContainerNode*) final;
294 void didNotifySubtreeInsertionsToDocument() override; 294 void didNotifySubtreeInsertionsToDocument() override;
295 void removedFrom(ContainerNode*) final; 295 void removedFrom(ContainerNode* insertionPoint, Node* next) final;
296 void didRecalcStyle(StyleRecalcChange) final; 296 void didRecalcStyle(StyleRecalcChange) final;
297 297
298 bool canStartSelection() const override { return false; } 298 bool canStartSelection() const override { return false; }
299 299
300 void didBecomeFullscreenElement() final; 300 void didBecomeFullscreenElement() final;
301 void willStopBeingFullscreenElement() final; 301 void willStopBeingFullscreenElement() final;
302 bool isInteractiveContent() const final; 302 bool isInteractiveContent() const final;
303 void defaultEventHandler(Event*) final; 303 void defaultEventHandler(Event*) final;
304 304
305 // ActiveDOMObject functions. 305 // ActiveDOMObject functions.
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 inline bool isHTMLMediaElement(const HTMLElement& element) 631 inline bool isHTMLMediaElement(const HTMLElement& element)
632 { 632 {
633 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 633 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
634 } 634 }
635 635
636 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 636 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
637 637
638 } // namespace blink 638 } // namespace blink
639 639
640 #endif // HTMLMediaElement_h 640 #endif // HTMLMediaElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698