| OLD | NEW |
| 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 { | 309 { |
| 310 return m_element->shouldAutoplay(RecordMetricsBehavior::DoNotRecord); | 310 return m_element->shouldAutoplay(RecordMetricsBehavior::DoNotRecord); |
| 311 } | 311 } |
| 312 bool isHTMLVideoElement() const override { return m_element->isHTMLVideoElem
ent(); } | 312 bool isHTMLVideoElement() const override { return m_element->isHTMLVideoElem
ent(); } |
| 313 bool isHTMLAudioElement() const override { return m_element->isHTMLAudioElem
ent(); } | 313 bool isHTMLAudioElement() const override { return m_element->isHTMLAudioElem
ent(); } |
| 314 | 314 |
| 315 // Document | 315 // Document |
| 316 bool isLegacyViewportType() override; | 316 bool isLegacyViewportType() override; |
| 317 PageVisibilityState pageVisibilityState() const override; | 317 PageVisibilityState pageVisibilityState() const override; |
| 318 String autoplayExperimentMode() const override; | 318 String autoplayExperimentMode() const override; |
| 319 LocalFrame* frame() const override { return m_element->document().frame(); } |
| 319 | 320 |
| 320 // LayoutObject | 321 // LayoutObject |
| 321 void setRequestPositionUpdates(bool) override; | 322 void setRequestPositionUpdates(bool) override; |
| 322 IntRect absoluteBoundingBoxRect() const override; | 323 IntRect absoluteBoundingBoxRect() const override; |
| 323 | 324 |
| 324 DEFINE_INLINE_VIRTUAL_TRACE() | 325 DEFINE_INLINE_VIRTUAL_TRACE() |
| 325 { | 326 { |
| 326 visitor->trace(m_element); | 327 visitor->trace(m_element); |
| 327 Client::trace(visitor); | 328 Client::trace(visitor); |
| 328 } | 329 } |
| (...skipping 3521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3850 | 3851 |
| 3851 IntRect HTMLMediaElement::AutoplayHelperClientImpl::absoluteBoundingBoxRect() co
nst | 3852 IntRect HTMLMediaElement::AutoplayHelperClientImpl::absoluteBoundingBoxRect() co
nst |
| 3852 { | 3853 { |
| 3853 IntRect result; | 3854 IntRect result; |
| 3854 if (LayoutObject* object = m_element->layoutObject()) | 3855 if (LayoutObject* object = m_element->layoutObject()) |
| 3855 result = object->absoluteBoundingBoxRect(); | 3856 result = object->absoluteBoundingBoxRect(); |
| 3856 return result; | 3857 return result; |
| 3857 } | 3858 } |
| 3858 | 3859 |
| 3859 } // namespace blink | 3860 } // namespace blink |
| OLD | NEW |