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

Side by Side Diff: Source/platform/fonts/harfbuzz/HarfBuzzShaper.cpp

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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) 2012 Google Inc. All rights reserved. 2 * Copyright (c) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 BlackBerry Limited. All rights reserved. 3 * Copyright (C) 2013 BlackBerry Limited. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "wtf/MathExtras.h" 45 #include "wtf/MathExtras.h"
46 #include "wtf/unicode/Unicode.h" 46 #include "wtf/unicode/Unicode.h"
47 #include <unicode/normlzr.h> 47 #include <unicode/normlzr.h>
48 #include <unicode/uchar.h> 48 #include <unicode/uchar.h>
49 #include <unicode/uscript.h> 49 #include <unicode/uscript.h>
50 50
51 #include <list> 51 #include <list>
52 #include <map> 52 #include <map>
53 #include <string> 53 #include <string>
54 54
55 namespace WebCore { 55 namespace blink {
56 56
57 template<typename T> 57 template<typename T>
58 class HarfBuzzScopedPtr { 58 class HarfBuzzScopedPtr {
59 public: 59 public:
60 typedef void (*DestroyFunction)(T*); 60 typedef void (*DestroyFunction)(T*);
61 61
62 HarfBuzzScopedPtr(T* ptr, DestroyFunction destroy) 62 HarfBuzzScopedPtr(T* ptr, DestroyFunction destroy)
63 : m_ptr(ptr) 63 : m_ptr(ptr)
64 , m_destroy(destroy) 64 , m_destroy(destroy)
65 { 65 {
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 return Font::pixelSnappedSelectionRect( 1123 return Font::pixelSnappedSelectionRect(
1124 point.x() + fromX, point.x() + toX, 1124 point.x() + fromX, point.x() + toX,
1125 point.y(), height); 1125 point.y(), height);
1126 } 1126 }
1127 1127
1128 return Font::pixelSnappedSelectionRect( 1128 return Font::pixelSnappedSelectionRect(
1129 point.x() + toX, point.x() + fromX, 1129 point.x() + toX, point.x() + fromX,
1130 point.y(), height); 1130 point.y(), height);
1131 } 1131 }
1132 1132
1133 } // namespace WebCore 1133 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/fonts/harfbuzz/HarfBuzzShaper.h ('k') | Source/platform/fonts/linux/FontCacheLinux.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698