| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2007, 2008, 2010 Google Inc. All rights reserved. | 2 * Copyright (c) 2007, 2008, 2010 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 26 matching lines...) Expand all Loading... |
| 37 #include "platform/fonts/harfbuzz/HarfBuzzShaper.h" | 37 #include "platform/fonts/harfbuzz/HarfBuzzShaper.h" |
| 38 #include "platform/fonts/GlyphBuffer.h" | 38 #include "platform/fonts/GlyphBuffer.h" |
| 39 #include "platform/geometry/FloatRect.h" | 39 #include "platform/geometry/FloatRect.h" |
| 40 #include "platform/graphics/GraphicsContext.h" | 40 #include "platform/graphics/GraphicsContext.h" |
| 41 | 41 |
| 42 #include "SkPaint.h" | 42 #include "SkPaint.h" |
| 43 #include "SkTemplates.h" | 43 #include "SkTemplates.h" |
| 44 | 44 |
| 45 #include "wtf/unicode/Unicode.h" | 45 #include "wtf/unicode/Unicode.h" |
| 46 | 46 |
| 47 namespace WebCore { | 47 namespace blink { |
| 48 | 48 |
| 49 bool FontPlatformFeatures::canReturnFallbackFontsForComplexText() | 49 bool FontPlatformFeatures::canReturnFallbackFontsForComplexText() |
| 50 { | 50 { |
| 51 return false; | 51 return false; |
| 52 } | 52 } |
| 53 | 53 |
| 54 bool FontPlatformFeatures::canExpandAroundIdeographsInComplexText() | 54 bool FontPlatformFeatures::canExpandAroundIdeographsInComplexText() |
| 55 { | 55 { |
| 56 return false; | 56 return false; |
| 57 } | 57 } |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 FloatRect Font::selectionRectForComplexText(const TextRun& run, | 271 FloatRect Font::selectionRectForComplexText(const TextRun& run, |
| 272 const FloatPoint& point, int height, | 272 const FloatPoint& point, int height, |
| 273 int from, int to) const | 273 int from, int to) const |
| 274 { | 274 { |
| 275 HarfBuzzShaper shaper(this, run); | 275 HarfBuzzShaper shaper(this, run); |
| 276 if (!shaper.shape()) | 276 if (!shaper.shape()) |
| 277 return FloatRect(); | 277 return FloatRect(); |
| 278 return shaper.selectionRect(point, height, from, to); | 278 return shaper.selectionRect(point, height, from, to); |
| 279 } | 279 } |
| 280 | 280 |
| 281 } // namespace WebCore | 281 } // namespace blink |
| OLD | NEW |