| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights 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 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 | 410 |
| 411 const AtomicString& MediaControlOverlayPlayButtonElement::pseudo() const | 411 const AtomicString& MediaControlOverlayPlayButtonElement::pseudo() const |
| 412 { | 412 { |
| 413 DEFINE_STATIC_LOCAL(AtomicString, id, ("-webkit-media-controls-overlay-play-
button", AtomicString::ConstructFromLiteral)); | 413 DEFINE_STATIC_LOCAL(AtomicString, id, ("-webkit-media-controls-overlay-play-
button", AtomicString::ConstructFromLiteral)); |
| 414 return id; | 414 return id; |
| 415 } | 415 } |
| 416 | 416 |
| 417 | 417 |
| 418 // ---------------------------- | 418 // ---------------------------- |
| 419 | 419 |
| 420 MediaControlToggleClosedCaptionsButtonElement::MediaControlToggleClosedCaptionsB
uttonElement(Document& document, MediaControls* controls) | 420 MediaControlToggleClosedCaptionsButtonElement::MediaControlToggleClosedCaptionsB
uttonElement(Document& document, MediaControls*) |
| 421 : MediaControlInputElement(document, MediaShowClosedCaptionsButton) | 421 : MediaControlInputElement(document, MediaShowClosedCaptionsButton) |
| 422 { | 422 { |
| 423 UNUSED_PARAM(controls); | |
| 424 } | 423 } |
| 425 | 424 |
| 426 PassRefPtr<MediaControlToggleClosedCaptionsButtonElement> MediaControlToggleClos
edCaptionsButtonElement::create(Document& document, MediaControls* controls) | 425 PassRefPtr<MediaControlToggleClosedCaptionsButtonElement> MediaControlToggleClos
edCaptionsButtonElement::create(Document& document, MediaControls* controls) |
| 427 { | 426 { |
| 428 ASSERT(controls); | 427 ASSERT(controls); |
| 429 | 428 |
| 430 RefPtr<MediaControlToggleClosedCaptionsButtonElement> button = adoptRef(new
MediaControlToggleClosedCaptionsButtonElement(document, controls)); | 429 RefPtr<MediaControlToggleClosedCaptionsButtonElement> button = adoptRef(new
MediaControlToggleClosedCaptionsButtonElement(document, controls)); |
| 431 button->ensureUserAgentShadowRoot(); | 430 button->ensureUserAgentShadowRoot(); |
| 432 button->setType("button"); | 431 button->setType("button"); |
| 433 button->hide(); | 432 button->hide(); |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 float fontSize = smallestDimension * 0.05f; | 768 float fontSize = smallestDimension * 0.05f; |
| 770 if (fontSize != m_fontSize) { | 769 if (fontSize != m_fontSize) { |
| 771 m_fontSize = fontSize; | 770 m_fontSize = fontSize; |
| 772 setInlineStyleProperty(CSSPropertyFontSize, fontSize, CSSPrimitiveValue:
:CSS_PX); | 771 setInlineStyleProperty(CSSPropertyFontSize, fontSize, CSSPrimitiveValue:
:CSS_PX); |
| 773 } | 772 } |
| 774 } | 773 } |
| 775 | 774 |
| 776 // ---------------------------- | 775 // ---------------------------- |
| 777 | 776 |
| 778 } // namespace WebCore | 777 } // namespace WebCore |
| OLD | NEW |