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 27 matching lines...) Expand all Loading... |
38 #include <memory> | 38 #include <memory> |
39 #include "platform/fonts/Font.h" | 39 #include "platform/fonts/Font.h" |
40 #include "platform/fonts/FontDescription.h" | 40 #include "platform/fonts/FontDescription.h" |
41 #include "platform/fonts/FontFallbackIterator.h" | 41 #include "platform/fonts/FontFallbackIterator.h" |
42 #include "platform/fonts/SmallCapsIterator.h" | 42 #include "platform/fonts/SmallCapsIterator.h" |
43 #include "platform/fonts/UTF16TextIterator.h" | 43 #include "platform/fonts/UTF16TextIterator.h" |
44 #include "platform/fonts/opentype/OpenTypeCapsSupport.h" | 44 #include "platform/fonts/opentype/OpenTypeCapsSupport.h" |
45 #include "platform/fonts/shaping/CaseMappingHarfBuzzBufferFiller.h" | 45 #include "platform/fonts/shaping/CaseMappingHarfBuzzBufferFiller.h" |
46 #include "platform/fonts/shaping/HarfBuzzFace.h" | 46 #include "platform/fonts/shaping/HarfBuzzFace.h" |
47 #include "platform/fonts/shaping/ShapeResultInlineHeaders.h" | 47 #include "platform/fonts/shaping/ShapeResultInlineHeaders.h" |
48 #include "wtf/Compiler.h" | 48 #include "platform/wtf/Compiler.h" |
49 #include "wtf/MathExtras.h" | 49 #include "platform/wtf/MathExtras.h" |
50 #include "wtf/PtrUtil.h" | 50 #include "platform/wtf/PtrUtil.h" |
51 #include "wtf/text/Unicode.h" | 51 #include "platform/wtf/text/Unicode.h" |
52 | 52 |
53 namespace blink { | 53 namespace blink { |
54 enum HolesQueueItemAction { HolesQueueNextFont, HolesQueueRange }; | 54 enum HolesQueueItemAction { HolesQueueNextFont, HolesQueueRange }; |
55 | 55 |
56 struct HolesQueueItem { | 56 struct HolesQueueItem { |
57 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 57 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
58 HolesQueueItemAction m_action; | 58 HolesQueueItemAction m_action; |
59 unsigned m_startIndex; | 59 unsigned m_startIndex; |
60 unsigned m_numCharacters; | 60 unsigned m_numCharacters; |
61 HolesQueueItem(HolesQueueItemAction action, unsigned start, unsigned num) | 61 HolesQueueItem(HolesQueueItemAction action, unsigned start, unsigned num) |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 } | 701 } |
702 return result.release(); | 702 return result.release(); |
703 } | 703 } |
704 | 704 |
705 PassRefPtr<ShapeResult> HarfBuzzShaper::shape(const Font* font, | 705 PassRefPtr<ShapeResult> HarfBuzzShaper::shape(const Font* font, |
706 TextDirection direction) const { | 706 TextDirection direction) const { |
707 return shape(font, direction, 0, m_textLength); | 707 return shape(font, direction, 0, m_textLength); |
708 } | 708 } |
709 | 709 |
710 } // namespace blink | 710 } // namespace blink |
OLD | NEW |