| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 && fontFace->traits().bitfield()) { | 198 && fontFace->traits().bitfield()) { |
| 199 fontFace->initCSSFontFace(document, src); | 199 fontFace->initCSSFontFace(document, src); |
| 200 return fontFace.release(); | 200 return fontFace.release(); |
| 201 } | 201 } |
| 202 return nullptr; | 202 return nullptr; |
| 203 } | 203 } |
| 204 | 204 |
| 205 FontFace::FontFace() | 205 FontFace::FontFace() |
| 206 : m_status(Unloaded) | 206 : m_status(Unloaded) |
| 207 { | 207 { |
| 208 ScriptWrappable::init(this); |
| 208 } | 209 } |
| 209 | 210 |
| 210 FontFace::~FontFace() | 211 FontFace::~FontFace() |
| 211 { | 212 { |
| 212 } | 213 } |
| 213 | 214 |
| 214 String FontFace::style() const | 215 String FontFace::style() const |
| 215 { | 216 { |
| 216 return m_style ? m_style->cssText() : "normal"; | 217 return m_style ? m_style->cssText() : "normal"; |
| 217 } | 218 } |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 visitor->trace(m_cssFontFace); | 631 visitor->trace(m_cssFontFace); |
| 631 visitor->trace(m_callbacks); | 632 visitor->trace(m_callbacks); |
| 632 } | 633 } |
| 633 | 634 |
| 634 bool FontFace::hadBlankText() const | 635 bool FontFace::hadBlankText() const |
| 635 { | 636 { |
| 636 return m_cssFontFace->hadBlankText(); | 637 return m_cssFontFace->hadBlankText(); |
| 637 } | 638 } |
| 638 | 639 |
| 639 } // namespace blink | 640 } // namespace blink |
| OLD | NEW |