| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 3 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
| 4 * Copyright (C) 2013 Google, Inc. All rights reserved. | 4 * Copyright (C) 2013 Google, Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 DEFINE_STATIC_LOCAL(const AtomicString, sansStr, ("Sans", AtomicString::Cons
tructFromLiteral)); | 110 DEFINE_STATIC_LOCAL(const AtomicString, sansStr, ("Sans", AtomicString::Cons
tructFromLiteral)); |
| 111 DEFINE_STATIC_LOCAL(const AtomicString, serifStr, ("Serif", AtomicString::Co
nstructFromLiteral)); | 111 DEFINE_STATIC_LOCAL(const AtomicString, serifStr, ("Serif", AtomicString::Co
nstructFromLiteral)); |
| 112 DEFINE_STATIC_LOCAL(const AtomicString, monospaceStr, ("Monospace", AtomicSt
ring::ConstructFromLiteral)); | 112 DEFINE_STATIC_LOCAL(const AtomicString, monospaceStr, ("Monospace", AtomicSt
ring::ConstructFromLiteral)); |
| 113 | 113 |
| 114 switch (description.genericFamily()) { | 114 switch (description.genericFamily()) { |
| 115 case FontDescription::SerifFamily: | 115 case FontDescription::SerifFamily: |
| 116 return serifStr; | 116 return serifStr; |
| 117 case FontDescription::MonospaceFamily: | 117 case FontDescription::MonospaceFamily: |
| 118 return monospaceStr; | 118 return monospaceStr; |
| 119 case FontDescription::SansSerifFamily: | 119 case FontDescription::SansSerifFamily: |
| 120 default: |
| 120 return sansStr; | 121 return sansStr; |
| 121 default: | |
| 122 return AtomicString(); | |
| 123 } | 122 } |
| 124 } | 123 } |
| 125 | 124 |
| 126 } // namespace WebCore | 125 } // namespace WebCore |
| 127 | 126 |
| 128 #endif // AlternateFontFamily_h | 127 #endif // AlternateFontFamily_h |
| OLD | NEW |