Bug 1538511 - Remove non-ASCII characters from comments in Element.cpp. r=kats
authorBotond Ballo <botond@mozilla.com>
Tue, 26 Mar 2019 00:52:19 +0000
changeset 525229 be9d79b76e1cfaca8e6e4813f6e094f228810de2
parent 525228 02bd39b5c935cd1f6606cb33207883c61d533af1
child 525230 57847959cfa67e7d36d0d18e09a006197e154c5e
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1538511
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1538511 - Remove non-ASCII characters from comments in Element.cpp. r=kats Differential Revision: https://phabricator.services.mozilla.com/D24813
dom/base/Element.cpp
--- a/dom/base/Element.cpp
+++ b/dom/base/Element.cpp
@@ -1099,46 +1099,46 @@ void Element::SetSlot(const nsAString& a
 
 void Element::GetSlot(nsAString& aName) {
   GetAttr(kNameSpaceID_None, nsGkAtoms::slot, aName);
 }
 
 // https://dom.spec.whatwg.org/#dom-element-shadowroot
 ShadowRoot* Element::GetShadowRootByMode() const {
   /**
-   * 1. Let shadow be context object’s shadow root.
+   * 1. Let shadow be context object's shadow root.
    * 2. If shadow is null or its mode is "closed", then return null.
    */
   ShadowRoot* shadowRoot = GetShadowRoot();
   if (!shadowRoot || shadowRoot->IsClosed()) {
     return nullptr;
   }
 
   /**
    * 3. Return shadow.
    */
   return shadowRoot;
 }
 
 bool Element::CanAttachShadowDOM() const {
   /**
-   * If context object’s namespace is not the HTML namespace,
+   * If context object's namespace is not the HTML namespace,
    * return false.
    *
    * Deviate from the spec here to allow shadow dom attachement to
    * XUL elements.
    */
   if (!IsHTMLElement() &&
       !(XRE_IsParentProcess() && IsXULElement() &&
         nsContentUtils::AllowXULXBLForPrincipal(NodePrincipal()))) {
     return false;
   }
 
   /**
-   * If context object’s local name is not
+   * If context object's local name is not
    *    a valid custom element name, "article", "aside", "blockquote",
    *    "body", "div", "footer", "h1", "h2", "h3", "h4", "h5", "h6",
    *    "header", "main" "nav", "p", "section", or "span",
    *  return false.
    */
   nsAtom* nameAtom = NodeInfo()->NameAtom();
   if (!(nsContentUtils::IsCustomElementName(nameAtom,
                                             NodeInfo()->NamespaceID()) ||
@@ -1156,19 +1156,19 @@ bool Element::CanAttachShadowDOM() const
 
   return true;
 }
 
 // https://dom.spec.whatwg.org/#dom-element-attachshadow
 already_AddRefed<ShadowRoot> Element::AttachShadow(const ShadowRootInit& aInit,
                                                    ErrorResult& aError) {
   /**
-   * 1. If context object’s namespace is not the HTML namespace,
+   * 1. If context object's namespace is not the HTML namespace,
    *    then throw a "NotSupportedError" DOMException.
-   * 2. If context object’s local name is not valid to attach shadow DOM to,
+   * 2. If context object's local name is not valid to attach shadow DOM to,
    *    then throw a "NotSupportedError" DOMException.
    */
   if (!CanAttachShadowDOM()) {
     aError.Throw(NS_ERROR_DOM_NOT_SUPPORTED_ERR);
     return nullptr;
   }
 
   /**
@@ -1200,28 +1200,28 @@ already_AddRefed<ShadowRoot> Element::At
     if (nsIPresShell* shell = doc->GetShell()) {
       shell->DestroyFramesForAndRestyle(this);
     }
   }
   MOZ_ASSERT(!GetPrimaryFrame());
 
   /**
    * 4. Let shadow be a new shadow root whose node document is
-   *    context object’s node document, host is context object,
-   *    and mode is init’s mode.
+   *    context object's node document, host is context object,
+   *    and mode is init's mode.
    */
   RefPtr<ShadowRoot> shadowRoot =
       new ShadowRoot(this, aMode, nodeInfo.forget());
 
   if (NodeOrAncestorHasDirAuto()) {
     shadowRoot->SetAncestorHasDirAuto();
   }
 
   /**
-   * 5. Set context object’s shadow root to shadow.
+   * 5. Set context object's shadow root to shadow.
    */
   SetShadowRoot(shadowRoot);
 
   // Dispatch a "shadowrootattached" event for devtools.
   {
     AsyncEventDispatcher* dispatcher = new AsyncEventDispatcher(
         this, NS_LITERAL_STRING("shadowrootattached"), CanBubble::eYes,
         ChromeOnlyDispatch::eYes, Composed::eYes);