| 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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 | 542 |
| 543 RefPtr<SharedBuffer> buffer = SharedBuffer::create(data, size); | 543 RefPtr<SharedBuffer> buffer = SharedBuffer::create(data, size); |
| 544 OwnPtr<BinaryDataFontFaceSource> source = adoptPtr(new BinaryDataFontFaceSou
rce(buffer.get())); | 544 OwnPtr<BinaryDataFontFaceSource> source = adoptPtr(new BinaryDataFontFaceSou
rce(buffer.get())); |
| 545 if (source->isValid()) | 545 if (source->isValid()) |
| 546 setLoadStatus(Loaded); | 546 setLoadStatus(Loaded); |
| 547 else | 547 else |
| 548 setError(DOMException::create(SyntaxError, "Invalid font data in ArrayBu
ffer.")); | 548 setError(DOMException::create(SyntaxError, "Invalid font data in ArrayBu
ffer.")); |
| 549 m_cssFontFace->addSource(source.release()); | 549 m_cssFontFace->addSource(source.release()); |
| 550 } | 550 } |
| 551 | 551 |
| 552 void FontFace::trace(Visitor* visitor) | |
| 553 { | |
| 554 visitor->trace(m_src); | |
| 555 visitor->trace(m_style); | |
| 556 visitor->trace(m_weight); | |
| 557 visitor->trace(m_stretch); | |
| 558 visitor->trace(m_unicodeRange); | |
| 559 visitor->trace(m_variant); | |
| 560 visitor->trace(m_featureSettings); | |
| 561 visitor->trace(m_error); | |
| 562 visitor->trace(m_loadedProperty); | |
| 563 visitor->trace(m_cssFontFace); | |
| 564 visitor->trace(m_callbacks); | |
| 565 } | |
| 566 | |
| 567 bool FontFace::hadBlankText() const | 552 bool FontFace::hadBlankText() const |
| 568 { | 553 { |
| 569 return m_cssFontFace->hadBlankText(); | 554 return m_cssFontFace->hadBlankText(); |
| 570 } | 555 } |
| 571 | 556 |
| 572 } // namespace blink | 557 } // namespace blink |
| OLD | NEW |