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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 | 311 |
312 if (!needsCompositingUpdate) | 312 if (!needsCompositingUpdate) |
313 return; | 313 return; |
314 | 314 |
315 #if ENABLE(OILPAN) | 315 #if ENABLE(OILPAN) |
316 if (!m_element) | 316 if (!m_element) |
317 return; | 317 return; |
318 #endif | 318 #endif |
319 | 319 |
320 m_element->setNeedsCompositingUpdate(); | 320 m_element->setNeedsCompositingUpdate(); |
321 // Being composited or not affects the self painting layer bit | |
322 // on the DeprecatedPaintLayer. | |
323 if (LayoutPart* layoutObject = m_element->layoutPart()) { | |
324 ASSERT(layoutObject->hasLayer()); | |
325 layoutObject->layer()->updateSelfPaintingLayer(); | |
326 } | |
327 } | 321 } |
328 | 322 |
329 bool WebPluginContainerImpl::supportsPaginatedPrint() const | 323 bool WebPluginContainerImpl::supportsPaginatedPrint() const |
330 { | 324 { |
331 return m_webPlugin->supportsPaginatedPrint(); | 325 return m_webPlugin->supportsPaginatedPrint(); |
332 } | 326 } |
333 | 327 |
334 bool WebPluginContainerImpl::isPrintScalingDisabled() const | 328 bool WebPluginContainerImpl::isPrintScalingDisabled() const |
335 { | 329 { |
336 return m_webPlugin->isPrintScalingDisabled(); | 330 return m_webPlugin->isPrintScalingDisabled(); |
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
958 for (size_t i = 0; i < cutOutRects.size(); i++) | 952 for (size_t i = 0; i < cutOutRects.size(); i++) |
959 cutOutRects[i].move(-frameRect().x(), -frameRect().y()); | 953 cutOutRects[i].move(-frameRect().x(), -frameRect().y()); |
960 } | 954 } |
961 | 955 |
962 bool WebPluginContainerImpl::pluginShouldPersist() const | 956 bool WebPluginContainerImpl::pluginShouldPersist() const |
963 { | 957 { |
964 return m_webPlugin->shouldPersist(); | 958 return m_webPlugin->shouldPersist(); |
965 } | 959 } |
966 | 960 |
967 } // namespace blink | 961 } // namespace blink |
OLD | NEW |