OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |