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

Side by Side Diff: Source/platform/fonts/GlyphPageTreeNode.cpp

Issue 468443002: Cleanup namespace usage in platform/fonts/. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Cleanup namespace usage in platform/fonts/. Created 6 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 | « Source/platform/fonts/GlyphBuffer.h ('k') | Source/platform/fonts/Latin1TextIterator.h » ('j') | 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) 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
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
OLDNEW
« no previous file with comments | « Source/platform/fonts/GlyphBuffer.h ('k') | Source/platform/fonts/Latin1TextIterator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698