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 IntRect dirtyRect = rect; | 142 IntRect dirtyRect = rect; |
143 dirtyRect.move(renderer->borderLeft() + renderer->paddingLeft(), | 143 dirtyRect.move(renderer->borderLeft() + renderer->paddingLeft(), |
144 renderer->borderTop() + renderer->paddingTop()); | 144 renderer->borderTop() + renderer->paddingTop()); |
145 | 145 |
146 // For querying RenderLayer::compositingState(). | 146 // For querying RenderLayer::compositingState(). |
147 // This code should be correct. | 147 // This code should be correct. |
148 DisableCompositingQueryAsserts disabler; | 148 DisableCompositingQueryAsserts disabler; |
149 renderer->invalidatePaintRectangle(dirtyRect); | 149 renderer->invalidatePaintRectangle(dirtyRect); |
150 } | 150 } |
151 | 151 |
152 void WebPluginContainerImpl::setFocus(bool focused) | 152 void WebPluginContainerImpl::setFocus(bool focused, WebFocusType focusType) |
153 { | 153 { |
154 Widget::setFocus(focused); | 154 Widget::setFocus(focused, focusType); |
155 m_webPlugin->updateFocus(focused); | 155 m_webPlugin->updateFocus(focused, focusType); |
156 } | 156 } |
157 | 157 |
158 void WebPluginContainerImpl::show() | 158 void WebPluginContainerImpl::show() |
159 { | 159 { |
160 setSelfVisible(true); | 160 setSelfVisible(true); |
161 m_webPlugin->updateVisibility(true); | 161 m_webPlugin->updateVisibility(true); |
162 | 162 |
163 Widget::show(); | 163 Widget::show(); |
164 } | 164 } |
165 | 165 |
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 | 981 |
982 return clipRect; | 982 return clipRect; |
983 } | 983 } |
984 | 984 |
985 bool WebPluginContainerImpl::pluginShouldPersist() const | 985 bool WebPluginContainerImpl::pluginShouldPersist() const |
986 { | 986 { |
987 return m_webPlugin->shouldPersist(); | 987 return m_webPlugin->shouldPersist(); |
988 } | 988 } |
989 | 989 |
990 } // namespace blink | 990 } // namespace blink |
OLD | NEW |