| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2003, 2006, 2010, 2011 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2006, 2010, 2011 Apple Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 | 285 |
| 286 if (m_fontDescription.featureSettings() && m_fontDescription.featureSettings
()->size() > 0 && m_fontDescription.letterSpacing() == 0) | 286 if (m_fontDescription.featureSettings() && m_fontDescription.featureSettings
()->size() > 0 && m_fontDescription.letterSpacing() == 0) |
| 287 return ComplexPath; | 287 return ComplexPath; |
| 288 | 288 |
| 289 if (m_fontDescription.widthVariant() != RegularWidth) | 289 if (m_fontDescription.widthVariant() != RegularWidth) |
| 290 return ComplexPath; | 290 return ComplexPath; |
| 291 | 291 |
| 292 if (run.length() > 1 && fontDescription().typesettingFeatures()) | 292 if (run.length() > 1 && fontDescription().typesettingFeatures()) |
| 293 return ComplexPath; | 293 return ComplexPath; |
| 294 | 294 |
| 295 if (run.useComplexCodePath()) |
| 296 return ComplexPath; |
| 297 |
| 295 if (!run.characterScanForCodePath()) | 298 if (!run.characterScanForCodePath()) |
| 296 return SimplePath; | 299 return SimplePath; |
| 297 | 300 |
| 298 if (run.is8Bit()) | 301 if (run.is8Bit()) |
| 299 return SimplePath; | 302 return SimplePath; |
| 300 | 303 |
| 301 // Start from 0 since drawing and highlighting also measure the characters b
efore run->from. | 304 // Start from 0 since drawing and highlighting also measure the characters b
efore run->from. |
| 302 return Character::characterRangeCodePath(run.characters16(), run.length()); | 305 return Character::characterRangeCodePath(run.characters16(), run.length()); |
| 303 } | 306 } |
| 304 | 307 |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 if (delta <= 0) | 899 if (delta <= 0) |
| 897 break; | 900 break; |
| 898 } | 901 } |
| 899 } | 902 } |
| 900 } | 903 } |
| 901 | 904 |
| 902 return offset; | 905 return offset; |
| 903 } | 906 } |
| 904 | 907 |
| 905 } // namespace blink | 908 } // namespace blink |
| OLD | NEW |