OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "core/paint/PaintControllerPaintTest.h" | 7 #include "core/paint/PaintControllerPaintTest.h" |
8 #include "platform/graphics/GraphicsContext.h" | 8 #include "platform/graphics/GraphicsContext.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 PaintLayer& container1Layer = *toLayoutBoxModelObject(container1).layer(); | 442 PaintLayer& container1Layer = *toLayoutBoxModelObject(container1).layer(); |
443 LayoutObject& content1 = *document().getElementById("content1")->layoutObjec
t(); | 443 LayoutObject& content1 = *document().getElementById("content1")->layoutObjec
t(); |
444 LayoutObject& container2 = *document().getElementById("container2")->layoutO
bject(); | 444 LayoutObject& container2 = *document().getElementById("container2")->layoutO
bject(); |
445 PaintLayer& container2Layer = *toLayoutBoxModelObject(container2).layer(); | 445 PaintLayer& container2Layer = *toLayoutBoxModelObject(container2).layer(); |
446 LayoutObject& content2a = *document().getElementById("content2a")->layoutObj
ect(); | 446 LayoutObject& content2a = *document().getElementById("content2a")->layoutObj
ect(); |
447 LayoutObject& container3 = *document().getElementById("container3")->layoutO
bject(); | 447 LayoutObject& container3 = *document().getElementById("container3")->layoutO
bject(); |
448 PaintLayer& container3Layer = *toLayoutBoxModelObject(container3).layer(); | 448 PaintLayer& container3Layer = *toLayoutBoxModelObject(container3).layer(); |
449 LayoutObject& content3 = *document().getElementById("content3")->layoutObjec
t(); | 449 LayoutObject& content3 = *document().getElementById("content3")->layoutObjec
t(); |
450 | 450 |
451 LayoutRect interestRect(0, 0, 400, 300); | 451 LayoutRect interestRect(0, 0, 400, 300); |
452 document().view()->updateAllLifecyclePhases(&interestRect); | 452 document().view()->updateAllLifecyclePhases(DocumentLifecycle::ThrottlingMod
e::Disallow, &interestRect); |
453 | 453 |
454 // Container1 is fully in the interest rect; | 454 // Container1 is fully in the interest rect; |
455 // Container2 is partly (including its stacking chidren) in the interest rec
t; | 455 // Container2 is partly (including its stacking chidren) in the interest rec
t; |
456 // Content2b is out of the interest rect and output nothing; | 456 // Content2b is out of the interest rect and output nothing; |
457 // Container3 is partly in the interest rect. | 457 // Container3 is partly in the interest rect. |
458 EXPECT_DISPLAY_LIST(rootPaintController().displayItems(), 17, | 458 EXPECT_DISPLAY_LIST(rootPaintController().displayItems(), 17, |
459 TestDisplayItem(layoutView(), backgroundType), | 459 TestDisplayItem(layoutView(), backgroundType), |
460 TestDisplayItem(rootLayer, subsequenceType), | 460 TestDisplayItem(rootLayer, subsequenceType), |
461 TestDisplayItem(htmlLayer, subsequenceType), | 461 TestDisplayItem(htmlLayer, subsequenceType), |
462 TestDisplayItem(container1, backgroundType), | 462 TestDisplayItem(container1, backgroundType), |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 TestDisplayItem(container1Layer, endSubsequenceType), | 508 TestDisplayItem(container1Layer, endSubsequenceType), |
509 TestDisplayItem(container2, backgroundType), | 509 TestDisplayItem(container2, backgroundType), |
510 TestDisplayItem(container2Layer, subsequenceType), | 510 TestDisplayItem(container2Layer, subsequenceType), |
511 TestDisplayItem(content2a, backgroundType), | 511 TestDisplayItem(content2a, backgroundType), |
512 TestDisplayItem(container2Layer, endSubsequenceType), | 512 TestDisplayItem(container2Layer, endSubsequenceType), |
513 TestDisplayItem(htmlLayer, endSubsequenceType), | 513 TestDisplayItem(htmlLayer, endSubsequenceType), |
514 TestDisplayItem(rootLayer, endSubsequenceType)); | 514 TestDisplayItem(rootLayer, endSubsequenceType)); |
515 } | 515 } |
516 | 516 |
517 } // namespace blink | 517 } // namespace blink |
OLD | NEW |