| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 { | 88 { |
| 89 m_element->removeInlineStyleProperty(CSSPropertyDisplay); | 89 m_element->removeInlineStyleProperty(CSSPropertyDisplay); |
| 90 } | 90 } |
| 91 | 91 |
| 92 void MediaControlElement::setDisplayType(MediaControlElementType displayType) | 92 void MediaControlElement::setDisplayType(MediaControlElementType displayType) |
| 93 { | 93 { |
| 94 if (displayType == m_displayType) | 94 if (displayType == m_displayType) |
| 95 return; | 95 return; |
| 96 | 96 |
| 97 m_displayType = displayType; | 97 m_displayType = displayType; |
| 98 if (LayoutObject* object = m_element->renderer()) | 98 if (LayoutObject* object = m_element->layoutObject()) |
| 99 object->setShouldDoFullPaintInvalidation(); | 99 object->setShouldDoFullPaintInvalidation(); |
| 100 } | 100 } |
| 101 | 101 |
| 102 DEFINE_TRACE(MediaControlElement) | 102 DEFINE_TRACE(MediaControlElement) |
| 103 { | 103 { |
| 104 visitor->trace(m_element); | 104 visitor->trace(m_element); |
| 105 } | 105 } |
| 106 | 106 |
| 107 // ---------------------------- | 107 // ---------------------------- |
| 108 | 108 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 , m_currentValue(0) | 144 , m_currentValue(0) |
| 145 { | 145 { |
| 146 } | 146 } |
| 147 | 147 |
| 148 void MediaControlTimeDisplayElement::setCurrentValue(double time) | 148 void MediaControlTimeDisplayElement::setCurrentValue(double time) |
| 149 { | 149 { |
| 150 m_currentValue = time; | 150 m_currentValue = time; |
| 151 } | 151 } |
| 152 | 152 |
| 153 } // namespace blink | 153 } // namespace blink |
| OLD | NEW |