Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: Source/core/css/FontFace.cpp

Issue 412183003: bindings: Makes more DOM classes inherit from ScriptWrappable (part 3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reverted RGBColor and Rect. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/FontFace.h ('k') | Source/core/css/MediaList.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/css/FontFace.h ('k') | Source/core/css/MediaList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698