Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Side by Side Diff: sky/engine/core/rendering/RenderTreeAsText.cpp

Issue 731863003: Remove CSSCompositing (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: preland Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2007 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 ts << " scrollWidth " << l.renderBox()->pixelSnappedScrollWidth(); 378 ts << " scrollWidth " << l.renderBox()->pixelSnappedScrollWidth();
379 if (l.renderBox() && l.renderBox()->pixelSnappedClientHeight() != l.rend erBox()->pixelSnappedScrollHeight()) 379 if (l.renderBox() && l.renderBox()->pixelSnappedClientHeight() != l.rend erBox()->pixelSnappedScrollHeight())
380 ts << " scrollHeight " << l.renderBox()->pixelSnappedScrollHeight(); 380 ts << " scrollHeight " << l.renderBox()->pixelSnappedScrollHeight();
381 } 381 }
382 382
383 if (paintPhase == LayerPaintPhaseBackground) 383 if (paintPhase == LayerPaintPhaseBackground)
384 ts << " layerType: background only"; 384 ts << " layerType: background only";
385 else if (paintPhase == LayerPaintPhaseForeground) 385 else if (paintPhase == LayerPaintPhaseForeground)
386 ts << " layerType: foreground only"; 386 ts << " layerType: foreground only";
387 387
388 if (l.renderer()->hasBlendMode())
389 ts << " blendMode: " << compositeOperatorName(CompositeSourceOver, l.ren derer()->style()->blendMode());
390
391 if (behavior & RenderAsTextShowCompositedLayers) { 388 if (behavior & RenderAsTextShowCompositedLayers) {
392 if (l.hasCompositedLayerMapping()) { 389 if (l.hasCompositedLayerMapping()) {
393 ts << " (composited, bounds=" 390 ts << " (composited, bounds="
394 << l.compositedLayerMapping()->compositedBounds() 391 << l.compositedLayerMapping()->compositedBounds()
395 << ", drawsContent=" 392 << ", drawsContent="
396 << l.compositedLayerMapping()->mainGraphicsLayer()->drawsContent () 393 << l.compositedLayerMapping()->mainGraphicsLayer()->drawsContent ()
397 << ", paints into ancestor=" 394 << ", paints into ancestor="
398 << l.compositedLayerMapping()->paintsIntoCompositedAncestor() 395 << l.compositedLayerMapping()->paintsIntoCompositedAncestor()
399 << (l.shouldIsolateCompositedDescendants() ? ", isolatesComposit edBlending" : "")
400 << ")"; 396 << ")";
401 } 397 }
402 } 398 }
403 399
404 ts << "\n"; 400 ts << "\n";
405 401
406 if (paintPhase != LayerPaintPhaseBackground) 402 if (paintPhase != LayerPaintPhaseBackground)
407 write(ts, *l.renderer(), indent + 1, behavior); 403 write(ts, *l.renderer(), indent + 1, behavior);
408 } 404 }
409 405
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 element->document().updateLayout(); 551 element->document().updateLayout();
556 552
557 RenderObject* renderer = element->renderer(); 553 RenderObject* renderer = element->renderer();
558 if (!renderer || !renderer->isBox()) 554 if (!renderer || !renderer->isBox())
559 return String(); 555 return String();
560 556
561 return externalRepresentation(toRenderBox(renderer), behavior | RenderAsText ShowAllLayers); 557 return externalRepresentation(toRenderBox(renderer), behavior | RenderAsText ShowAllLayers);
562 } 558 }
563 559
564 } // namespace blink 560 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderObject.cpp ('k') | sky/engine/core/rendering/compositing/CompositedLayerMapping.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698