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

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

Issue 746163002: Drop RenderObject::hasBlendMode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | 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 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 ts << " scrollWidth " << l.renderBox()->pixelSnappedScrollWidth(); 541 ts << " scrollWidth " << l.renderBox()->pixelSnappedScrollWidth();
542 if (l.renderBox() && l.renderBox()->pixelSnappedClientHeight() != l.rend erBox()->pixelSnappedScrollHeight()) 542 if (l.renderBox() && l.renderBox()->pixelSnappedClientHeight() != l.rend erBox()->pixelSnappedScrollHeight())
543 ts << " scrollHeight " << l.renderBox()->pixelSnappedScrollHeight(); 543 ts << " scrollHeight " << l.renderBox()->pixelSnappedScrollHeight();
544 } 544 }
545 545
546 if (paintPhase == LayerPaintPhaseBackground) 546 if (paintPhase == LayerPaintPhaseBackground)
547 ts << " layerType: background only"; 547 ts << " layerType: background only";
548 else if (paintPhase == LayerPaintPhaseForeground) 548 else if (paintPhase == LayerPaintPhaseForeground)
549 ts << " layerType: foreground only"; 549 ts << " layerType: foreground only";
550 550
551 if (l.renderer()->hasBlendMode()) 551 if (l.renderer()->style()->hasBlendMode())
552 ts << " blendMode: " << compositeOperatorName(CompositeSourceOver, l.ren derer()->style()->blendMode()); 552 ts << " blendMode: " << compositeOperatorName(CompositeSourceOver, l.ren derer()->style()->blendMode());
553 553
554 if (behavior & RenderAsTextShowCompositedLayers) { 554 if (behavior & RenderAsTextShowCompositedLayers) {
555 if (l.hasCompositedLayerMapping()) { 555 if (l.hasCompositedLayerMapping()) {
556 ts << " (composited, bounds=" 556 ts << " (composited, bounds="
557 << l.compositedLayerMapping()->compositedBounds() 557 << l.compositedLayerMapping()->compositedBounds()
558 << ", drawsContent=" 558 << ", drawsContent="
559 << l.compositedLayerMapping()->mainGraphicsLayer()->drawsContent () 559 << l.compositedLayerMapping()->mainGraphicsLayer()->drawsContent ()
560 << (l.shouldIsolateCompositedDescendants() ? ", isolatesComposit edBlending" : "") 560 << (l.shouldIsolateCompositedDescendants() ? ", isolatesComposit edBlending" : "")
561 << ")"; 561 << ")";
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 element->document().updateLayout(); 768 element->document().updateLayout();
769 769
770 RenderObject* renderer = element->renderer(); 770 RenderObject* renderer = element->renderer();
771 if (!renderer || !renderer->isListItem()) 771 if (!renderer || !renderer->isListItem())
772 return String(); 772 return String();
773 773
774 return toRenderListItem(renderer)->markerText(); 774 return toRenderListItem(renderer)->markerText();
775 } 775 }
776 776
777 } // namespace blink 777 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698