| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 return true; | 379 return true; |
| 380 } | 380 } |
| 381 | 381 |
| 382 void GraphicsLayer::notifyFirstPaintToClient() | 382 void GraphicsLayer::notifyFirstPaintToClient() |
| 383 { | 383 { |
| 384 bool isFirstPaint = false; | 384 bool isFirstPaint = false; |
| 385 if (!m_painted) { | 385 if (!m_painted) { |
| 386 DisplayItemList& itemList = m_paintController->newDisplayItemList(); | 386 DisplayItemList& itemList = m_paintController->newDisplayItemList(); |
| 387 for (DisplayItem& item : itemList) { | 387 for (DisplayItem& item : itemList) { |
| 388 DisplayItem::Type type = item.getType(); | 388 DisplayItem::Type type = item.getType(); |
| 389 if (DisplayItem::isDrawingType(type) && type != DisplayItem::Documen
tBackground && static_cast<const DrawingDisplayItem&>(item).picture()) { | 389 if (DisplayItem::isDrawingType(type) && type != DisplayItem::kDocume
ntBackground && static_cast<const DrawingDisplayItem&>(item).picture()) { |
| 390 m_painted = true; | 390 m_painted = true; |
| 391 isFirstPaint = true; | 391 isFirstPaint = true; |
| 392 break; | 392 break; |
| 393 } | 393 } |
| 394 } | 394 } |
| 395 } | 395 } |
| 396 m_client->notifyPaint(isFirstPaint, m_paintController->textPainted(), m_pain
tController->imagePainted()); | 396 m_client->notifyPaint(isFirstPaint, m_paintController->textPainted(), m_pain
tController->imagePainted()); |
| 397 } | 397 } |
| 398 | 398 |
| 399 void GraphicsLayer::updateChildList() | 399 void GraphicsLayer::updateChildList() |
| (...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1351 { | 1351 { |
| 1352 if (!layer) { | 1352 if (!layer) { |
| 1353 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); | 1353 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); |
| 1354 return; | 1354 return; |
| 1355 } | 1355 } |
| 1356 | 1356 |
| 1357 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1357 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
| 1358 fprintf(stderr, "%s\n", output.utf8().data()); | 1358 fprintf(stderr, "%s\n", output.utf8().data()); |
| 1359 } | 1359 } |
| 1360 #endif | 1360 #endif |
| OLD | NEW |