| 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 met: | 5 * modification, are permitted provided that the following conditions are met: |
| 6 * | 6 * |
| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // ActiveDOMObject | 101 // ActiveDOMObject |
| 102 virtual void suspend() override; | 102 virtual void suspend() override; |
| 103 virtual void resume() override; | 103 virtual void resume() override; |
| 104 virtual void stop() override; | 104 virtual void stop() override; |
| 105 | 105 |
| 106 static PassRefPtrWillBeRawPtr<FontFaceSet> from(Document&); | 106 static PassRefPtrWillBeRawPtr<FontFaceSet> from(Document&); |
| 107 static void didLayout(Document&); | 107 static void didLayout(Document&); |
| 108 | 108 |
| 109 void addFontFacesToFontFaceCache(FontFaceCache*, CSSFontSelector*); | 109 void addFontFacesToFontFaceCache(FontFaceCache*, CSSFontSelector*); |
| 110 | 110 |
| 111 virtual void trace(Visitor*) override; | 111 DECLARE_VIRTUAL_TRACE(); |
| 112 | 112 |
| 113 private: | 113 private: |
| 114 static PassRefPtrWillBeRawPtr<FontFaceSet> create(Document& document) | 114 static PassRefPtrWillBeRawPtr<FontFaceSet> create(Document& document) |
| 115 { | 115 { |
| 116 return adoptRefWillBeNoop(new FontFaceSet(document)); | 116 return adoptRefWillBeNoop(new FontFaceSet(document)); |
| 117 } | 117 } |
| 118 | 118 |
| 119 class FontLoadHistogram { | 119 class FontLoadHistogram { |
| 120 public: | 120 public: |
| 121 enum Status { NoWebFonts, HadBlankText, DidNotHaveBlankText, Reported }; | 121 enum Status { NoWebFonts, HadBlankText, DidNotHaveBlankText, Reported }; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 WillBeHeapListHashSet<RefPtrWillBeMember<FontFace> > m_nonCSSConnectedFaces; | 154 WillBeHeapListHashSet<RefPtrWillBeMember<FontFace> > m_nonCSSConnectedFaces; |
| 155 | 155 |
| 156 AsyncMethodRunner<FontFaceSet> m_asyncRunner; | 156 AsyncMethodRunner<FontFaceSet> m_asyncRunner; |
| 157 | 157 |
| 158 FontLoadHistogram m_histogram; | 158 FontLoadHistogram m_histogram; |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 } // namespace blink | 161 } // namespace blink |
| 162 | 162 |
| 163 #endif // FontFaceSet_h | 163 #endif // FontFaceSet_h |
| OLD | NEW |