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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp

Issue 2696183002: Migrate WTF::HashSet::remove() to ::erase() [part 1] (Closed)
Patch Set: one more platform-specific reference Created 3 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 startTime, &document()); 774 startTime, &document());
775 775
776 asyncCreator->scheduleAsyncBlobCreation(quality); 776 asyncCreator->scheduleAsyncBlobCreation(quality);
777 } 777 }
778 778
779 void HTMLCanvasElement::addListener(CanvasDrawListener* listener) { 779 void HTMLCanvasElement::addListener(CanvasDrawListener* listener) {
780 m_listeners.insert(listener); 780 m_listeners.insert(listener);
781 } 781 }
782 782
783 void HTMLCanvasElement::removeListener(CanvasDrawListener* listener) { 783 void HTMLCanvasElement::removeListener(CanvasDrawListener* listener) {
784 m_listeners.remove(listener); 784 m_listeners.erase(listener);
785 } 785 }
786 786
787 SecurityOrigin* HTMLCanvasElement::getSecurityOrigin() const { 787 SecurityOrigin* HTMLCanvasElement::getSecurityOrigin() const {
788 return document().getSecurityOrigin(); 788 return document().getSecurityOrigin();
789 } 789 }
790 790
791 bool HTMLCanvasElement::originClean() const { 791 bool HTMLCanvasElement::originClean() const {
792 if (document().settings() && 792 if (document().settings() &&
793 document().settings()->getDisableReadingFromCanvas()) 793 document().settings()->getDisableReadingFromCanvas())
794 return false; 794 return false;
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
1441 // Creates a placeholder layer first before Surface is created. 1441 // Creates a placeholder layer first before Surface is created.
1442 m_surfaceLayerBridge->createSolidColorLayer(); 1442 m_surfaceLayerBridge->createSolidColorLayer();
1443 } 1443 }
1444 } 1444 }
1445 1445
1446 void HTMLCanvasElement::OnWebLayerReplaced() { 1446 void HTMLCanvasElement::OnWebLayerReplaced() {
1447 setNeedsCompositingUpdate(); 1447 setNeedsCompositingUpdate();
1448 } 1448 }
1449 1449
1450 } // namespace blink 1450 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698