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

Side by Side Diff: sky/engine/core/css/FontFace.cpp

Issue 679113005: Hollow out more of the tracing system in oilpan (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/css/FontFace.h ('k') | sky/engine/core/css/FontFaceSet.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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « sky/engine/core/css/FontFace.h ('k') | sky/engine/core/css/FontFaceSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698