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