| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 FontDescription source; | 117 FontDescription source; |
| 118 WTF::Vector<unsigned> hashes; | 118 WTF::Vector<unsigned> hashes; |
| 119 for (size_t i = 0; i < WTF_ARRAY_LENGTH(weights); i++) { | 119 for (size_t i = 0; i < WTF_ARRAY_LENGTH(weights); i++) { |
| 120 source.setWeight(weights[i]); | 120 source.setWeight(weights[i]); |
| 121 for (size_t j = 0; j < WTF_ARRAY_LENGTH(stretches); j++) { | 121 for (size_t j = 0; j < WTF_ARRAY_LENGTH(stretches); j++) { |
| 122 source.setStretch(stretches[j]); | 122 source.setStretch(stretches[j]); |
| 123 for (size_t k = 0; k < WTF_ARRAY_LENGTH(styles); k++) { | 123 for (size_t k = 0; k < WTF_ARRAY_LENGTH(styles); k++) { |
| 124 source.setStyle(styles[k]); | 124 source.setStyle(styles[k]); |
| 125 unsigned hash = source.styleHashWithoutFamilyList(); | 125 unsigned hash = source.styleHashWithoutFamilyList(); |
| 126 ASSERT_FALSE(hashes.contains(hash)); | 126 ASSERT_FALSE(hashes.contains(hash)); |
| 127 hashes.append(hash); | 127 hashes.push_back(hash); |
| 128 } | 128 } |
| 129 } | 129 } |
| 130 } | 130 } |
| 131 } | 131 } |
| 132 | 132 |
| 133 } // namespace blink | 133 } // namespace blink |
| OLD | NEW |