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

Side by Side Diff: third_party/WebKit/Source/core/layout/TextAutosizer.cpp

Issue 2270683002: Fix compile error when AUTOSIZING_DOM_DEBUG_INFO is defined. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 static void writeDebugInfo(LayoutObject* layoutObject, const AtomicString& outpu t) 78 static void writeDebugInfo(LayoutObject* layoutObject, const AtomicString& outpu t)
79 { 79 {
80 Node* node = layoutObject->node(); 80 Node* node = layoutObject->node();
81 if (!node) 81 if (!node)
82 return; 82 return;
83 if (node->isDocumentNode()) 83 if (node->isDocumentNode())
84 node = toDocument(node)->documentElement(); 84 node = toDocument(node)->documentElement();
85 if (!node->isElementNode()) 85 if (!node->isElementNode())
86 return; 86 return;
87 node->document().postTask(wrapUnique(new WriteDebugInfoTask(toElement(node), output))); 87 node->document().postTask(BLINK_FROM_HERE, wrapUnique(new WriteDebugInfoTask (toElement(node), output)));
88 } 88 }
89 89
90 void TextAutosizer::writeClusterDebugInfo(Cluster* cluster) 90 void TextAutosizer::writeClusterDebugInfo(Cluster* cluster)
91 { 91 {
92 String explanation = ""; 92 String explanation = "";
93 if (cluster->m_flags & SUPPRESSING) { 93 if (cluster->m_flags & SUPPRESSING) {
94 explanation = "[suppressed]"; 94 explanation = "[suppressed]";
95 } else if (!(cluster->m_flags & (INDEPENDENT | WIDER_OR_NARROWER))) { 95 } else if (!(cluster->m_flags & (INDEPENDENT | WIDER_OR_NARROWER))) {
96 explanation = "[inherited]"; 96 explanation = "[inherited]";
97 } else if (cluster->m_supercluster) { 97 } else if (cluster->m_supercluster) {
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 } 1218 }
1219 return computedSize; 1219 return computedSize;
1220 } 1220 }
1221 1221
1222 DEFINE_TRACE(TextAutosizer) 1222 DEFINE_TRACE(TextAutosizer)
1223 { 1223 {
1224 visitor->trace(m_document); 1224 visitor->trace(m_document);
1225 } 1225 }
1226 1226
1227 } // namespace blink 1227 } // namespace blink
OLDNEW
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698