nsContentSupportMap.cpp 543 B

12345678910111213141516171819
  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "nsContentSupportMap.h"
  6. #include "nsXULElement.h"
  7. void
  8. nsContentSupportMap::Remove(nsIContent* aElement)
  9. {
  10. nsIContent* child = aElement;
  11. do {
  12. mMap.Remove(child);
  13. child = child->GetNextNode(aElement);
  14. } while(child);
  15. }