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

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

Issue 2164493002: Renamed Node::attach to Node::attachLayoutTree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 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 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 MEDIA_LOG << "removedFrom(" << (void*)this << ", " << insertionPoint << ")"; 616 MEDIA_LOG << "removedFrom(" << (void*)this << ", " << insertionPoint << ")";
617 617
618 HTMLElement::removedFrom(insertionPoint); 618 HTMLElement::removedFrom(insertionPoint);
619 if (insertionPoint->inActiveDocument()) { 619 if (insertionPoint->inActiveDocument()) {
620 configureMediaControls(); 620 configureMediaControls();
621 if (m_networkState > NETWORK_EMPTY) 621 if (m_networkState > NETWORK_EMPTY)
622 pauseInternal(); 622 pauseInternal();
623 } 623 }
624 } 624 }
625 625
626 void HTMLMediaElement::attach(const AttachContext& context) 626 void HTMLMediaElement::attachLayoutTree(const AttachContext& context)
627 { 627 {
628 HTMLElement::attach(context); 628 HTMLElement::attachLayoutTree(context);
629 629
630 if (layoutObject()) 630 if (layoutObject())
631 layoutObject()->updateFromElement(); 631 layoutObject()->updateFromElement();
632 } 632 }
633 633
634 void HTMLMediaElement::didRecalcStyle(StyleRecalcChange) 634 void HTMLMediaElement::didRecalcStyle(StyleRecalcChange)
635 { 635 {
636 if (layoutObject()) 636 if (layoutObject())
637 layoutObject()->updateFromElement(); 637 layoutObject()->updateFromElement();
638 } 638 }
(...skipping 3394 matching lines...) Expand 10 before | Expand all | Expand 10 after
4033 4033
4034 IntRect HTMLMediaElement::AutoplayHelperClientImpl::absoluteBoundingBoxRect() co nst 4034 IntRect HTMLMediaElement::AutoplayHelperClientImpl::absoluteBoundingBoxRect() co nst
4035 { 4035 {
4036 IntRect result; 4036 IntRect result;
4037 if (LayoutObject* object = m_element->layoutObject()) 4037 if (LayoutObject* object = m_element->layoutObject())
4038 result = object->absoluteBoundingBoxRect(); 4038 result = object->absoluteBoundingBoxRect();
4039 return result; 4039 return result;
4040 } 4040 }
4041 4041
4042 } // namespace blink 4042 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698