| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 142 |
| 143 IntRect dirtyRect = rect; | 143 IntRect dirtyRect = rect; |
| 144 dirtyRect.move(renderer->borderLeft() + renderer->paddingLeft(), | 144 dirtyRect.move(renderer->borderLeft() + renderer->paddingLeft(), |
| 145 renderer->borderTop() + renderer->paddingTop()); | 145 renderer->borderTop() + renderer->paddingTop()); |
| 146 | 146 |
| 147 // For querying Layer::compositingState(). | 147 // For querying Layer::compositingState(). |
| 148 // This code should be correct. | 148 // This code should be correct. |
| 149 DisableCompositingQueryAsserts disabler; | 149 DisableCompositingQueryAsserts disabler; |
| 150 // FIXME: We should not allow paint invalidation out of paint invalidation s
tate. crbug.com/457415 | 150 // FIXME: We should not allow paint invalidation out of paint invalidation s
tate. crbug.com/457415 |
| 151 DisablePaintInvalidationStateAsserts paintInvalidationAssertDisabler; | 151 DisablePaintInvalidationStateAsserts paintInvalidationAssertDisabler; |
| 152 renderer->invalidatePaintRectangle(dirtyRect); | 152 renderer->invalidatePaintRectangle(LayoutRect(dirtyRect)); |
| 153 } | 153 } |
| 154 | 154 |
| 155 void WebPluginContainerImpl::setFocus(bool focused, WebFocusType focusType) | 155 void WebPluginContainerImpl::setFocus(bool focused, WebFocusType focusType) |
| 156 { | 156 { |
| 157 Widget::setFocus(focused, focusType); | 157 Widget::setFocus(focused, focusType); |
| 158 m_webPlugin->updateFocus(focused, focusType); | 158 m_webPlugin->updateFocus(focused, focusType); |
| 159 } | 159 } |
| 160 | 160 |
| 161 void WebPluginContainerImpl::show() | 161 void WebPluginContainerImpl::show() |
| 162 { | 162 { |
| (...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 998 | 998 |
| 999 return clipRect; | 999 return clipRect; |
| 1000 } | 1000 } |
| 1001 | 1001 |
| 1002 bool WebPluginContainerImpl::pluginShouldPersist() const | 1002 bool WebPluginContainerImpl::pluginShouldPersist() const |
| 1003 { | 1003 { |
| 1004 return m_webPlugin->shouldPersist(); | 1004 return m_webPlugin->shouldPersist(); |
| 1005 } | 1005 } |
| 1006 | 1006 |
| 1007 } // namespace blink | 1007 } // namespace blink |
| OLD | NEW |