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

Side by Side Diff: Source/core/html/shadow/MediaControlElementTypes.cpp

Issue 478433002: Avoid RenderObject::paintInvalidationForWholeRenderer() if possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: TestExpectations Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/forms/FileInputType.cpp ('k') | Source/core/html/shadow/MediaControls.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 (RenderObject* object = m_element->renderer()) 98 if (RenderObject* object = m_element->renderer())
99 object->paintInvalidationForWholeRenderer(); 99 object->setShouldDoFullPaintInvalidation(true);
100 } 100 }
101 101
102 void MediaControlElement::trace(Visitor* visitor) 102 void MediaControlElement::trace(Visitor* visitor)
103 { 103 {
104 visitor->trace(m_element); 104 visitor->trace(m_element);
105 } 105 }
106 106
107 // ---------------------------- 107 // ----------------------------
108 108
109 MediaControlDivElement::MediaControlDivElement(MediaControls& mediaControls, Med iaControlElementType displayType) 109 MediaControlDivElement::MediaControlDivElement(MediaControls& mediaControls, Med iaControlElementType displayType)
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « Source/core/html/forms/FileInputType.cpp ('k') | Source/core/html/shadow/MediaControls.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698