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

Side by Side Diff: Source/web/WebPluginContainerImpl.cpp

Issue 318803002: Rename Repaint to Paint Invalidation part 3 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/rendering/svg/SVGRenderSupport.cpp ('k') | no next file » | 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 void WebPluginContainerImpl::invalidateRect(const IntRect& rect) 142 void WebPluginContainerImpl::invalidateRect(const IntRect& rect)
143 { 143 {
144 if (!parent()) 144 if (!parent())
145 return; 145 return;
146 146
147 RenderBox* renderer = toRenderBox(m_element->renderer()); 147 RenderBox* renderer = toRenderBox(m_element->renderer());
148 148
149 IntRect dirtyRect = rect; 149 IntRect dirtyRect = rect;
150 dirtyRect.move(renderer->borderLeft() + renderer->paddingLeft(), 150 dirtyRect.move(renderer->borderLeft() + renderer->paddingLeft(),
151 renderer->borderTop() + renderer->paddingTop()); 151 renderer->borderTop() + renderer->paddingTop());
152 renderer->repaintRectangle(dirtyRect); 152 renderer->invalidatePaintRectangle(dirtyRect);
153 } 153 }
154 154
155 void WebPluginContainerImpl::setFocus(bool focused) 155 void WebPluginContainerImpl::setFocus(bool focused)
156 { 156 {
157 Widget::setFocus(focused); 157 Widget::setFocus(focused);
158 m_webPlugin->updateFocus(focused); 158 m_webPlugin->updateFocus(focused);
159 } 159 }
160 160
161 void WebPluginContainerImpl::show() 161 void WebPluginContainerImpl::show()
162 { 162 {
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 909
910 return clipRect; 910 return clipRect;
911 } 911 }
912 912
913 bool WebPluginContainerImpl::pluginShouldPersist() const 913 bool WebPluginContainerImpl::pluginShouldPersist() const
914 { 914 {
915 return m_webPlugin->shouldPersist(); 915 return m_webPlugin->shouldPersist();
916 } 916 }
917 917
918 } // namespace blink 918 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/SVGRenderSupport.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698