| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 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 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 printf("%s\t%p %s\n", indent.data(), it->key, it->key->description()
.utf8().data()); | 395 printf("%s\t%p %s\n", indent.data(), it->key, it->key->description()
.utf8().data()); |
| 396 it->value->showSubtree(); | 396 it->value->showSubtree(); |
| 397 } | 397 } |
| 398 if (m_systemFallbackChild) { | 398 if (m_systemFallbackChild) { |
| 399 printf("%s\t* fallback\n", indent.data()); | 399 printf("%s\t* fallback\n", indent.data()); |
| 400 m_systemFallbackChild->showSubtree(); | 400 m_systemFallbackChild->showSubtree(); |
| 401 } | 401 } |
| 402 } | 402 } |
| 403 #endif | 403 #endif |
| 404 | 404 |
| 405 } | 405 } // namespace blink |
| 406 | 406 |
| 407 #ifndef NDEBUG | 407 #ifndef NDEBUG |
| 408 void showGlyphPageTrees() | 408 void showGlyphPageTrees() |
| 409 { | 409 { |
| 410 printf("Page 0:\n"); | 410 printf("Page 0:\n"); |
| 411 showGlyphPageTree(0); | 411 showGlyphPageTree(0); |
| 412 HashMap<int, blink::GlyphPageTreeNode*>::iterator end = blink::GlyphPageTree
Node::roots->end(); | 412 HashMap<int, blink::GlyphPageTreeNode*>::iterator end = blink::GlyphPageTree
Node::roots->end(); |
| 413 for (HashMap<int, blink::GlyphPageTreeNode*>::iterator it = blink::GlyphPage
TreeNode::roots->begin(); it != end; ++it) { | 413 for (HashMap<int, blink::GlyphPageTreeNode*>::iterator it = blink::GlyphPage
TreeNode::roots->begin(); it != end; ++it) { |
| 414 printf("\nPage %d:\n", it->key); | 414 printf("\nPage %d:\n", it->key); |
| 415 showGlyphPageTree(it->key); | 415 showGlyphPageTree(it->key); |
| 416 } | 416 } |
| 417 } | 417 } |
| 418 | 418 |
| 419 void showGlyphPageTree(unsigned pageNumber) | 419 void showGlyphPageTree(unsigned pageNumber) |
| 420 { | 420 { |
| 421 blink::GlyphPageTreeNode::getRoot(pageNumber)->showSubtree(); | 421 blink::GlyphPageTreeNode::getRoot(pageNumber)->showSubtree(); |
| 422 } | 422 } |
| 423 #endif | 423 #endif |
| OLD | NEW |