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

Side by Side Diff: Source/core/rendering/RenderTreeAsText.cpp

Issue 466193002: Disentangle blend mode from updateDescendantDependentFlags (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months 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 | Annotate | Revision Log
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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 ts << " scrollWidth " << l.renderBox()->pixelSnappedScrollWidth(); 543 ts << " scrollWidth " << l.renderBox()->pixelSnappedScrollWidth();
544 if (l.renderBox() && l.renderBox()->pixelSnappedClientHeight() != l.rend erBox()->pixelSnappedScrollHeight()) 544 if (l.renderBox() && l.renderBox()->pixelSnappedClientHeight() != l.rend erBox()->pixelSnappedScrollHeight())
545 ts << " scrollHeight " << l.renderBox()->pixelSnappedScrollHeight(); 545 ts << " scrollHeight " << l.renderBox()->pixelSnappedScrollHeight();
546 } 546 }
547 547
548 if (paintPhase == LayerPaintPhaseBackground) 548 if (paintPhase == LayerPaintPhaseBackground)
549 ts << " layerType: background only"; 549 ts << " layerType: background only";
550 else if (paintPhase == LayerPaintPhaseForeground) 550 else if (paintPhase == LayerPaintPhaseForeground)
551 ts << " layerType: foreground only"; 551 ts << " layerType: foreground only";
552 552
553 if (l.blendInfo().hasBlendMode()) 553 if (l.renderer()->hasBlendMode())
554 ts << " blendMode: " << compositeOperatorName(CompositeSourceOver, l.ble ndInfo().blendMode()); 554 ts << " blendMode: " << compositeOperatorName(CompositeSourceOver, l.ren derer()->style()->blendMode());
555 555
556 if (behavior & RenderAsTextShowCompositedLayers) { 556 if (behavior & RenderAsTextShowCompositedLayers) {
557 if (l.hasCompositedLayerMapping()) { 557 if (l.hasCompositedLayerMapping()) {
558 ts << " (composited, bounds=" 558 ts << " (composited, bounds="
559 << l.compositedLayerMapping()->compositedBounds() 559 << l.compositedLayerMapping()->compositedBounds()
560 << ", drawsContent=" 560 << ", drawsContent="
561 << l.compositedLayerMapping()->mainGraphicsLayer()->drawsContent () 561 << l.compositedLayerMapping()->mainGraphicsLayer()->drawsContent ()
562 << ", paints into ancestor=" 562 << ", paints into ancestor="
563 << l.compositedLayerMapping()->paintsIntoCompositedAncestor() 563 << l.compositedLayerMapping()->paintsIntoCompositedAncestor()
564 << (l.shouldIsolateCompositedDescendants() ? ", isolatesComposit edBlending" : "") 564 << (l.shouldIsolateCompositedDescendants() ? ", isolatesComposit edBlending" : "")
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 element->document().updateLayout(); 772 element->document().updateLayout();
773 773
774 RenderObject* renderer = element->renderer(); 774 RenderObject* renderer = element->renderer();
775 if (!renderer || !renderer->isListItem()) 775 if (!renderer || !renderer->isListItem())
776 return String(); 776 return String();
777 777
778 return toRenderListItem(renderer)->markerText(); 778 return toRenderListItem(renderer)->markerText();
779 } 779 }
780 780
781 } // namespace blink 781 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayerBlendInfo.cpp ('k') | Source/core/rendering/compositing/CompositingInputsUpdater.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698