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

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

Issue 2473743003: Call Element::rebuildLayoutTree from Document::updateStyle directly (Closed)
Patch Set: Split up didRecalcStyle into didRecalcStyle and didRebuildLayoutTree Created 3 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 bool alwaysCreateUserAgentShadowRoot() const final { return true; } 341 bool alwaysCreateUserAgentShadowRoot() const final { return true; }
342 bool areAuthorShadowsAllowed() const final { return false; } 342 bool areAuthorShadowsAllowed() const final { return false; }
343 343
344 bool supportsFocus() const final; 344 bool supportsFocus() const final;
345 bool isMouseFocusable() const final; 345 bool isMouseFocusable() const final;
346 bool layoutObjectIsNeeded(const ComputedStyle&) override; 346 bool layoutObjectIsNeeded(const ComputedStyle&) override;
347 LayoutObject* createLayoutObject(const ComputedStyle&) override; 347 LayoutObject* createLayoutObject(const ComputedStyle&) override;
348 InsertionNotificationRequest insertedInto(ContainerNode*) final; 348 InsertionNotificationRequest insertedInto(ContainerNode*) final;
349 void didNotifySubtreeInsertionsToDocument() override; 349 void didNotifySubtreeInsertionsToDocument() override;
350 void removedFrom(ContainerNode*) final; 350 void removedFrom(ContainerNode*) final;
351 void didRecalcStyle() final; 351 void didRebuildLayoutTree() final;
352 352
353 bool canStartSelection() const override { return false; } 353 bool canStartSelection() const override { return false; }
354 354
355 bool isInteractiveContent() const final; 355 bool isInteractiveContent() const final;
356 356
357 // SuspendableObject functions. 357 // SuspendableObject functions.
358 void contextDestroyed(ExecutionContext*) final; 358 void contextDestroyed(ExecutionContext*) final;
359 359
360 virtual void updateDisplayState() {} 360 virtual void updateDisplayState() {}
361 361
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 752
753 inline bool isHTMLMediaElement(const HTMLElement& element) { 753 inline bool isHTMLMediaElement(const HTMLElement& element) {
754 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 754 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
755 } 755 }
756 756
757 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 757 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
758 758
759 } // namespace blink 759 } // namespace blink
760 760
761 #endif // HTMLMediaElement_h 761 #endif // HTMLMediaElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698