| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. | 3 * Copyright (C) 2014 Opera Software ASA. 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 are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 m_pendingInvalidationRect.unite(dirtyRect); | 182 m_pendingInvalidationRect.unite(dirtyRect); |
| 183 | 183 |
| 184 layoutObject->setMayNeedPaintInvalidation(); | 184 layoutObject->setMayNeedPaintInvalidation(); |
| 185 } | 185 } |
| 186 | 186 |
| 187 void WebPluginContainerImpl::setFocused(bool focused, WebFocusType focusType) { | 187 void WebPluginContainerImpl::setFocused(bool focused, WebFocusType focusType) { |
| 188 Widget::setFocused(focused, focusType); | 188 Widget::setFocused(focused, focusType); |
| 189 m_webPlugin->updateFocus(focused, focusType); | 189 m_webPlugin->updateFocus(focused, focusType); |
| 190 } | 190 } |
| 191 | 191 |
| 192 bool WebPluginContainerImpl::isPlaceholder() { |
| 193 if (m_webPlugin) |
| 194 return m_webPlugin->isPlaceholder(); |
| 195 return false; |
| 196 } |
| 197 |
| 192 void WebPluginContainerImpl::show() { | 198 void WebPluginContainerImpl::show() { |
| 193 setSelfVisible(true); | 199 setSelfVisible(true); |
| 194 m_webPlugin->updateVisibility(true); | 200 m_webPlugin->updateVisibility(true); |
| 195 | 201 |
| 196 Widget::show(); | 202 Widget::show(); |
| 197 } | 203 } |
| 198 | 204 |
| 199 void WebPluginContainerImpl::hide() { | 205 void WebPluginContainerImpl::hide() { |
| 200 setSelfVisible(false); | 206 setSelfVisible(false); |
| 201 m_webPlugin->updateVisibility(false); | 207 m_webPlugin->updateVisibility(false); |
| (...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 983 // frame view. | 989 // frame view. |
| 984 computeClipRectsForPlugin(m_element, windowRect, clipRect, unobscuredRect); | 990 computeClipRectsForPlugin(m_element, windowRect, clipRect, unobscuredRect); |
| 985 } | 991 } |
| 986 getPluginOcclusions(m_element, this->parent(), frameRect(), cutOutRects); | 992 getPluginOcclusions(m_element, this->parent(), frameRect(), cutOutRects); |
| 987 // Convert to the plugin position. | 993 // Convert to the plugin position. |
| 988 for (size_t i = 0; i < cutOutRects.size(); i++) | 994 for (size_t i = 0; i < cutOutRects.size(); i++) |
| 989 cutOutRects[i].move(-frameRect().x(), -frameRect().y()); | 995 cutOutRects[i].move(-frameRect().x(), -frameRect().y()); |
| 990 } | 996 } |
| 991 | 997 |
| 992 } // namespace blink | 998 } // namespace blink |
| OLD | NEW |