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

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

Issue 23956012: Stop passing NodeRenderingContext except in textRendererIsNeeded (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLInputElement.cpp ('k') | Source/core/html/HTMLMediaElement.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, 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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 329
330 private: 330 private:
331 void createMediaPlayer(); 331 void createMediaPlayer();
332 332
333 virtual bool alwaysCreateUserAgentShadowRoot() const OVERRIDE { return true; } 333 virtual bool alwaysCreateUserAgentShadowRoot() const OVERRIDE { return true; }
334 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } 334 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; }
335 335
336 virtual bool hasCustomFocusLogic() const OVERRIDE; 336 virtual bool hasCustomFocusLogic() const OVERRIDE;
337 virtual bool supportsFocus() const; 337 virtual bool supportsFocus() const;
338 virtual bool isMouseFocusable() const; 338 virtual bool isMouseFocusable() const;
339 virtual bool rendererIsNeeded(const NodeRenderingContext&); 339 virtual bool rendererIsNeeded(const RenderStyle&);
340 virtual RenderObject* createRenderer(RenderStyle*); 340 virtual RenderObject* createRenderer(RenderStyle*);
341 virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const OV ERRIDE; 341 virtual bool childShouldCreateRenderer(const Node& child) const OVERRIDE;
342 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 342 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
343 virtual void removedFrom(ContainerNode*) OVERRIDE; 343 virtual void removedFrom(ContainerNode*) OVERRIDE;
344 virtual void didRecalcStyle(StyleRecalcChange); 344 virtual void didRecalcStyle(StyleRecalcChange);
345 345
346 virtual void didBecomeFullscreenElement(); 346 virtual void didBecomeFullscreenElement();
347 virtual void willStopBeingFullscreenElement(); 347 virtual void willStopBeingFullscreenElement();
348 348
349 // ActiveDOMObject functions. 349 // ActiveDOMObject functions.
350 virtual bool canSuspend() const; 350 virtual bool canSuspend() const;
351 virtual void suspend(ReasonForSuspension); 351 virtual void suspend(ReasonForSuspension);
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 608
609 inline HTMLMediaElement* toHTMLMediaElement(Node* node) 609 inline HTMLMediaElement* toHTMLMediaElement(Node* node)
610 { 610 {
611 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLMediaElement(node)); 611 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLMediaElement(node));
612 return static_cast<HTMLMediaElement*>(node); 612 return static_cast<HTMLMediaElement*>(node);
613 } 613 }
614 614
615 } //namespace 615 } //namespace
616 616
617 #endif 617 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLInputElement.cpp ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698