author B2G Bumper Bot <>
Thu, 03 Jul 2014 14:25:26 -0700
changeset 228703 b20d31f56fa16a8911a6cf9c4697b7913639a2bf
parent 162099 5a9badd6db004310b9d1aca5db25ef4c275a4362
child 191305 a588fb7df4a3b881d62d56ef97b5eaed870fb4c9
permissions -rw-r--r--
Bumping gaia.json for 1 gaia revision(s) a=gaia-bump ======== Author: Kevin Grandon <> Desc: Bug 1034202 - [Vertical] Intermittent failing test, Vertical Home - Packaged App Update resume update r=me

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */

#include "nsIParserService.h"

extern "C" int MOZ_XMLIsLetter(const char* ptr);
extern "C" int MOZ_XMLIsNCNameChar(const char* ptr);
extern "C" int MOZ_XMLTranslateEntity(const char* ptr, const char* end,
                                      const char** next, char16_t* result);

class nsParserService : public nsIParserService {
  virtual ~nsParserService();


  int32_t HTMLAtomTagToId(nsIAtom* aAtom) const;

  int32_t HTMLCaseSensitiveAtomTagToId(nsIAtom* aAtom) const;

  int32_t HTMLStringTagToId(const nsAString& aTag) const;

  const char16_t *HTMLIdToStringTag(int32_t aId) const;
  nsIAtom *HTMLIdToAtomTag(int32_t aId) const;

  NS_IMETHOD HTMLConvertEntityToUnicode(const nsAString& aEntity, 
                                        int32_t* aUnicode) const;
  NS_IMETHOD HTMLConvertUnicodeToEntity(int32_t aUnicode,
                                        nsCString& aEntity) const;
  NS_IMETHOD IsContainer(int32_t aId, bool& aIsContainer) const;
  NS_IMETHOD IsBlock(int32_t aId, bool& aIsBlock) const;