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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 { | 307 { |
308 return m_element->shouldAutoplay(RecordMetricsBehavior::DoNotRecord); | 308 return m_element->shouldAutoplay(RecordMetricsBehavior::DoNotRecord); |
309 } | 309 } |
310 bool isHTMLVideoElement() const override { return m_element->isHTMLVideoElem
ent(); } | 310 bool isHTMLVideoElement() const override { return m_element->isHTMLVideoElem
ent(); } |
311 bool isHTMLAudioElement() const override { return m_element->isHTMLAudioElem
ent(); } | 311 bool isHTMLAudioElement() const override { return m_element->isHTMLAudioElem
ent(); } |
312 | 312 |
313 // Document | 313 // Document |
314 bool isLegacyViewportType() override; | 314 bool isLegacyViewportType() override; |
315 PageVisibilityState pageVisibilityState() const override; | 315 PageVisibilityState pageVisibilityState() const override; |
316 String autoplayExperimentMode() const override; | 316 String autoplayExperimentMode() const override; |
| 317 LocalFrame* frame() const override { return m_element->document().frame(); } |
317 | 318 |
318 // LayoutObject | 319 // LayoutObject |
319 void setRequestPositionUpdates(bool) override; | 320 void setRequestPositionUpdates(bool) override; |
320 IntRect absoluteBoundingBoxRect() const override; | 321 IntRect absoluteBoundingBoxRect() const override; |
321 | 322 |
322 DEFINE_INLINE_VIRTUAL_TRACE() | 323 DEFINE_INLINE_VIRTUAL_TRACE() |
323 { | 324 { |
324 visitor->trace(m_element); | 325 visitor->trace(m_element); |
325 Client::trace(visitor); | 326 Client::trace(visitor); |
326 } | 327 } |
(...skipping 3617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3944 } | 3945 } |
3945 | 3946 |
3946 #if !ENABLE(OILPAN) | 3947 #if !ENABLE(OILPAN) |
3947 WeakPtr<HTMLMediaElement> HTMLMediaElement::createWeakPtr() | 3948 WeakPtr<HTMLMediaElement> HTMLMediaElement::createWeakPtr() |
3948 { | 3949 { |
3949 return m_weakPtrFactory.createWeakPtr(); | 3950 return m_weakPtrFactory.createWeakPtr(); |
3950 } | 3951 } |
3951 #endif | 3952 #endif |
3952 | 3953 |
3953 } // namespace blink | 3954 } // namespace blink |
OLD | NEW |