| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 do { | 116 do { |
| 117 repaintContainer = renderer->containerForRepaint(); | 117 repaintContainer = renderer->containerForRepaint(); |
| 118 if (!repaintContainer) { | 118 if (!repaintContainer) { |
| 119 renderer = renderer->frame()->ownerRenderer(); | 119 renderer = renderer->frame()->ownerRenderer(); |
| 120 if (!renderer) | 120 if (!renderer) |
| 121 return 0; | 121 return 0; |
| 122 } | 122 } |
| 123 } while (!repaintContainer); | 123 } while (!repaintContainer); |
| 124 RenderLayer* renderLayer = repaintContainer->layer(); | 124 RenderLayer* renderLayer = repaintContainer->layer(); |
| 125 | 125 |
| 126 if (!renderLayer || renderLayer->compositingState() == NotComposited) | 126 if (!renderLayer || !renderLayer->isComposited()) |
| 127 return 0; | 127 return 0; |
| 128 | 128 |
| 129 GraphicsLayer* newGraphicsLayer = renderLayer->compositedLayerMapping()->mai
nGraphicsLayer(); | 129 GraphicsLayer* newGraphicsLayer = renderLayer->compositedLayerMapping()->mai
nGraphicsLayer(); |
| 130 m_clipLayer->setSublayerTransform(SkMatrix44()); | 130 m_clipLayer->setSublayerTransform(SkMatrix44()); |
| 131 | 131 |
| 132 if (!newGraphicsLayer->drawsContent()) { | 132 if (!newGraphicsLayer->drawsContent()) { |
| 133 if (renderLayer->usesCompositedScrolling()) { | 133 if (renderLayer->usesCompositedScrolling()) { |
| 134 ASSERT(renderLayer->compositedLayerMapping() && renderLayer->composi
tedLayerMapping()->scrollingContentsLayer()); | 134 ASSERT(renderLayer->compositedLayerMapping() && renderLayer->composi
tedLayerMapping()->scrollingContentsLayer()); |
| 135 newGraphicsLayer = renderLayer->compositedLayerMapping()->scrollingC
ontentsLayer(); | 135 newGraphicsLayer = renderLayer->compositedLayerMapping()->scrollingC
ontentsLayer(); |
| 136 } else | 136 } else |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 // Make sure we update geometry on the next callback from WebViewImpl::layou
t(). | 334 // Make sure we update geometry on the next callback from WebViewImpl::layou
t(). |
| 335 m_geometryNeedsUpdate = true; | 335 m_geometryNeedsUpdate = true; |
| 336 } | 336 } |
| 337 | 337 |
| 338 WebLayer* LinkHighlight::layer() | 338 WebLayer* LinkHighlight::layer() |
| 339 { | 339 { |
| 340 return clipLayer(); | 340 return clipLayer(); |
| 341 } | 341 } |
| 342 | 342 |
| 343 } // namespace WeKit | 343 } // namespace WeKit |
| OLD | NEW |