| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2011 Apple 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 bool CSSFontFace::isValid() const | 50 bool CSSFontFace::isValid() const |
| 51 { | 51 { |
| 52 size_t size = m_sources.size(); | 52 size_t size = m_sources.size(); |
| 53 for (size_t i = 0; i < size; i++) { | 53 for (size_t i = 0; i < size; i++) { |
| 54 if (m_sources[i]->isValid()) | 54 if (m_sources[i]->isValid()) |
| 55 return true; | 55 return true; |
| 56 } | 56 } |
| 57 return false; | 57 return false; |
| 58 } | 58 } |
| 59 | 59 |
| 60 void CSSFontFace::addedToSegmentedFontFace(CSSSegmentedFontFace* segmentedFontFa
ce) | 60 void CSSFontFace::addedToSegmentedFontFace(Handle<CSSSegmentedFontFace> segmente
dFontFace) |
| 61 { | 61 { |
| 62 m_segmentedFontFaces.add(segmentedFontFace); | 62 m_segmentedFontFaces.add(segmentedFontFace.raw()); |
| 63 } | 63 } |
| 64 | 64 |
| 65 void CSSFontFace::removedFromSegmentedFontFace(CSSSegmentedFontFace* segmentedFo
ntFace) | 65 void CSSFontFace::removedFromSegmentedFontFace(Handle<CSSSegmentedFontFace> segm
entedFontFace) |
| 66 { | 66 { |
| 67 m_segmentedFontFaces.remove(segmentedFontFace); | 67 m_segmentedFontFaces.remove(segmentedFontFace.raw()); |
| 68 } | 68 } |
| 69 | 69 |
| 70 void CSSFontFace::addSource(PassOwnPtr<CSSFontFaceSource> source) | 70 void CSSFontFace::addSource(PassOwnPtr<CSSFontFaceSource> source) |
| 71 { | 71 { |
| 72 source->setFontFace(this); | 72 source->setFontFace(this); |
| 73 m_sources.append(source); | 73 m_sources.append(source); |
| 74 } | 74 } |
| 75 | 75 |
| 76 void CSSFontFace::fontLoaded(CSSFontFaceSource* source) | 76 void CSSFontFace::fontLoaded(CSSFontFaceSource* source) |
| 77 { | 77 { |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 size_t size = m_sources.size(); | 157 size_t size = m_sources.size(); |
| 158 for (size_t i = 0; i < size; i++) { | 158 for (size_t i = 0; i < size; i++) { |
| 159 if (m_sources[i]->isSVGFontFaceSource()) | 159 if (m_sources[i]->isSVGFontFaceSource()) |
| 160 return true; | 160 return true; |
| 161 } | 161 } |
| 162 return false; | 162 return false; |
| 163 } | 163 } |
| 164 #endif | 164 #endif |
| 165 | 165 |
| 166 } | 166 } |
| OLD | NEW |