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

Side by Side Diff: Source/core/platform/graphics/GraphicsLayer.cpp

Issue 20061003: Move isValid/isCurrentColor from Color to StyleColor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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) 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 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 if (flags & LayerTreeIncludesDebugInfo) { 776 if (flags & LayerTreeIncludesDebugInfo) {
777 writeIndent(ts, indent + 1); 777 writeIndent(ts, indent + 1);
778 ts << "("; 778 ts << "(";
779 if (m_client) 779 if (m_client)
780 ts << "client " << static_cast<void*>(m_client); 780 ts << "client " << static_cast<void*>(m_client);
781 else 781 else
782 ts << "no client"; 782 ts << "no client";
783 ts << ")\n"; 783 ts << ")\n";
784 } 784 }
785 785
786 if (m_backgroundColor.isValid() && m_backgroundColor != Color::transparent) { 786 if (m_backgroundColor != Color::transparent) {
787 writeIndent(ts, indent + 1); 787 writeIndent(ts, indent + 1);
788 ts << "(backgroundColor " << m_backgroundColor.nameForRenderTreeAsText() << ")\n"; 788 ts << "(backgroundColor " << m_backgroundColor.nameForRenderTreeAsText() << ")\n";
789 } 789 }
790 790
791 if (!m_transform.isIdentity()) { 791 if (!m_transform.isIdentity()) {
792 writeIndent(ts, indent + 1); 792 writeIndent(ts, indent + 1);
793 ts << "(transform "; 793 ts << "(transform ";
794 ts << "[" << m_transform.m11() << " " << m_transform.m12() << " " << m_t ransform.m13() << " " << m_transform.m14() << "] "; 794 ts << "[" << m_transform.m11() << " " << m_transform.m12() << " " << m_t ransform.m13() << " " << m_transform.m14() << "] ";
795 ts << "[" << m_transform.m21() << " " << m_transform.m22() << " " << m_t ransform.m23() << " " << m_transform.m24() << "] "; 795 ts << "[" << m_transform.m21() << " " << m_transform.m22() << " " << m_t ransform.m23() << " " << m_transform.m24() << "] ";
796 ts << "[" << m_transform.m31() << " " << m_transform.m32() << " " << m_t ransform.m33() << " " << m_transform.m34() << "] "; 796 ts << "[" << m_transform.m31() << " " << m_transform.m32() << " " << m_t ransform.m33() << " " << m_transform.m34() << "] ";
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
1319 #ifndef NDEBUG 1319 #ifndef NDEBUG
1320 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer) 1320 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer)
1321 { 1321 {
1322 if (!layer) 1322 if (!layer)
1323 return; 1323 return;
1324 1324
1325 String output = layer->layerTreeAsText(WebCore::LayerTreeIncludesDebugInfo); 1325 String output = layer->layerTreeAsText(WebCore::LayerTreeIncludesDebugInfo);
1326 fprintf(stderr, "%s\n", output.utf8().data()); 1326 fprintf(stderr, "%s\n", output.utf8().data());
1327 } 1327 }
1328 #endif 1328 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698