| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |