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

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

Issue 1419883005: Remove unused m_src from FontFace class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « third_party/WebKit/Source/core/css/FontFace.h ('k') | no next file » | 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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 OwnPtrWillBeRawPtr<BinaryDataFontFaceSource> source = adoptPtrWillBeNoop(new BinaryDataFontFaceSource(buffer.get(), m_otsParseMessage)); 588 OwnPtrWillBeRawPtr<BinaryDataFontFaceSource> source = adoptPtrWillBeNoop(new BinaryDataFontFaceSource(buffer.get(), m_otsParseMessage));
589 if (source->isValid()) 589 if (source->isValid())
590 setLoadStatus(Loaded); 590 setLoadStatus(Loaded);
591 else 591 else
592 setError(DOMException::create(SyntaxError, "Invalid font data in ArrayBu ffer.")); 592 setError(DOMException::create(SyntaxError, "Invalid font data in ArrayBu ffer."));
593 m_cssFontFace->addSource(source.release()); 593 m_cssFontFace->addSource(source.release());
594 } 594 }
595 595
596 DEFINE_TRACE(FontFace) 596 DEFINE_TRACE(FontFace)
597 { 597 {
598 visitor->trace(m_src);
599 visitor->trace(m_style); 598 visitor->trace(m_style);
600 visitor->trace(m_weight); 599 visitor->trace(m_weight);
601 visitor->trace(m_stretch); 600 visitor->trace(m_stretch);
602 visitor->trace(m_unicodeRange); 601 visitor->trace(m_unicodeRange);
603 visitor->trace(m_variant); 602 visitor->trace(m_variant);
604 visitor->trace(m_featureSettings); 603 visitor->trace(m_featureSettings);
605 visitor->trace(m_error); 604 visitor->trace(m_error);
606 visitor->trace(m_loadedProperty); 605 visitor->trace(m_loadedProperty);
607 visitor->trace(m_cssFontFace); 606 visitor->trace(m_cssFontFace);
608 visitor->trace(m_callbacks); 607 visitor->trace(m_callbacks);
609 ActiveDOMObject::trace(visitor); 608 ActiveDOMObject::trace(visitor);
610 } 609 }
611 610
612 bool FontFace::hadBlankText() const 611 bool FontFace::hadBlankText() const
613 { 612 {
614 return m_cssFontFace->hadBlankText(); 613 return m_cssFontFace->hadBlankText();
615 } 614 }
616 615
617 bool FontFace::hasPendingActivity() const 616 bool FontFace::hasPendingActivity() const
618 { 617 {
619 return m_status == Loading && executionContext() && !executionContext()->act iveDOMObjectsAreStopped(); 618 return m_status == Loading && executionContext() && !executionContext()->act iveDOMObjectsAreStopped();
620 } 619 }
621 620
622 } // namespace blink 621 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/FontFace.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698