Rename CFXA_FFNotify::GetHDOC() to GetFFDoc()

There's no such class as an HDOC.

- Fully automatic change.
- No functional change intended.

Change-Id: I0c8baf43b828dfcc18bf27dc7566e7eafaf1512f
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/71371
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/fxjs/xfa/cfxjse_engine.cpp b/fxjs/xfa/cfxjse_engine.cpp
index a471733..cb2f055 100644
--- a/fxjs/xfa/cfxjse_engine.cpp
+++ b/fxjs/xfa/cfxjse_engine.cpp
@@ -214,7 +214,7 @@
   if (!pNotify)
     return;
 
-  CXFA_FFDoc* hDoc = pNotify->GetHDOC();
+  CXFA_FFDoc* hDoc = pNotify->GetFFDoc();
   auto* pCJSRuntime =
       static_cast<CJS_Runtime*>(hDoc->GetDocEnvironment()->GetIJSRuntime(hDoc));
   if (!pCJSRuntime)
@@ -283,7 +283,7 @@
   if (!pNotify)
     return;
 
-  CXFA_FFDoc* hDoc = pNotify->GetHDOC();
+  CXFA_FFDoc* hDoc = pNotify->GetFFDoc();
   auto* pCJSRuntime =
       static_cast<CJS_Runtime*>(hDoc->GetDocEnvironment()->GetIJSRuntime(hDoc));
   if (!pCJSRuntime)
@@ -379,7 +379,7 @@
   if (!pNotify)
     return;
 
-  CXFA_FFDoc* hDoc = pNotify->GetHDOC();
+  CXFA_FFDoc* hDoc = pNotify->GetFFDoc();
   auto* pCJSRuntime =
       static_cast<CJS_Runtime*>(hDoc->GetDocEnvironment()->GetIJSRuntime(hDoc));
   if (!pCJSRuntime)
diff --git a/fxjs/xfa/cjx_hostpseudomodel.cpp b/fxjs/xfa/cjx_hostpseudomodel.cpp
index 1263a14..19db515 100644
--- a/fxjs/xfa/cjx_hostpseudomodel.cpp
+++ b/fxjs/xfa/cjx_hostpseudomodel.cpp
@@ -97,7 +97,7 @@
   if (!pNotify)
     return;
 
-  CXFA_FFDoc* hDoc = pNotify->GetHDOC();
+  CXFA_FFDoc* hDoc = pNotify->GetFFDoc();
   if (bSetting) {
     hDoc->GetDocEnvironment()->SetCalculationsEnabled(hDoc,
                                                       pValue->ToBoolean());
@@ -113,7 +113,7 @@
   if (!pNotify)
     return;
 
-  CXFA_FFDoc* hDoc = pNotify->GetHDOC();
+  CXFA_FFDoc* hDoc = pNotify->GetFFDoc();
   if (bSetting) {
     hDoc->GetDocEnvironment()->SetCurrentPage(hDoc, pValue->ToInteger());
     return;
@@ -143,7 +143,7 @@
   if (!pNotify)
     return;
 
-  CXFA_FFDoc* hDoc = pNotify->GetHDOC();
+  CXFA_FFDoc* hDoc = pNotify->GetFFDoc();
   if (bSetting) {
     ThrowException(WideString::FromASCII("Unable to set numPages value."));
     return;
@@ -176,7 +176,7 @@
   if (!pNotify)
     return;
 
-  CXFA_FFDoc* hDoc = pNotify->GetHDOC();
+  CXFA_FFDoc* hDoc = pNotify->GetFFDoc();
   if (bSetting) {
     hDoc->GetDocEnvironment()->SetTitle(hDoc, pValue->ToWideString());
     return;
@@ -194,7 +194,7 @@
   if (!pNotify)
     return;
 
-  CXFA_FFDoc* hDoc = pNotify->GetHDOC();
+  CXFA_FFDoc* hDoc = pNotify->GetFFDoc();
   if (bSetting) {
     hDoc->GetDocEnvironment()->SetValidationsEnabled(hDoc, pValue->ToBoolean());
     return;
@@ -255,7 +255,7 @@
   if (!pNotify)
     return CJS_Result::Success();
 
-  CXFA_FFDoc* hDoc = pNotify->GetHDOC();
+  CXFA_FFDoc* hDoc = pNotify->GetFFDoc();
   WideString URL = runtime->ToWideString(params[0]);
   hDoc->GetDocEnvironment()->GotoURL(hDoc, URL);
   return CJS_Result::Success();
@@ -542,7 +542,7 @@
   int32_t nStartPage = runtime->ToInt32(params[1]);
   int32_t nEndPage = runtime->ToInt32(params[2]);
 
-  CXFA_FFDoc* hDoc = pNotify->GetHDOC();
+  CXFA_FFDoc* hDoc = pNotify->GetFFDoc();
   hDoc->GetDocEnvironment()->Print(hDoc, nStartPage, nEndPage, dwOptions);
   return CJS_Result::Success();
 }
@@ -574,7 +574,7 @@
   if (params.size() >= 2)
     XDP = runtime->ToBoolean(params[1]);
 
-  CXFA_FFDoc* hDoc = pNotify->GetHDOC();
+  CXFA_FFDoc* hDoc = pNotify->GetFFDoc();
   hDoc->GetDocEnvironment()->ExportData(hDoc, filePath, XDP);
   return CJS_Result::Success();
 }
@@ -586,7 +586,7 @@
   if (!pNotify)
     return CJS_Result::Success();
 
-  CXFA_FFDoc* hDoc = pNotify->GetHDOC();
+  CXFA_FFDoc* hDoc = pNotify->GetFFDoc();
   int32_t nCurPage = hDoc->GetDocEnvironment()->GetCurrentPage(hDoc);
   int32_t nNewPage = 0;
   if (nCurPage <= 1)
@@ -604,7 +604,7 @@
   if (!pNotify)
     return CJS_Result::Success();
 
-  CXFA_FFDoc* hDoc = pNotify->GetHDOC();
+  CXFA_FFDoc* hDoc = pNotify->GetFFDoc();
   int32_t nCurPage = hDoc->GetDocEnvironment()->GetCurrentPage(hDoc);
   int32_t nPageCount = hDoc->GetDocEnvironment()->CountPages(hDoc);
   if (!nPageCount || nCurPage == nPageCount)
diff --git a/fxjs/xfa/cjx_node.cpp b/fxjs/xfa/cjx_node.cpp
index 56a9035..92ff4a1 100644
--- a/fxjs/xfa/cjx_node.cpp
+++ b/fxjs/xfa/cjx_node.cpp
@@ -274,7 +274,7 @@
     return CJS_Result::Success();
 
   CFX_XMLDocument* top_xml_doc =
-      GetXFANode()->GetDocument()->GetNotify()->GetHDOC()->GetXMLDocument();
+      GetXFANode()->GetDocument()->GetNotify()->GetFFDoc()->GetXMLDocument();
   top_xml_doc->AppendNodesFrom(pParser->GetXMLDoc().get());
 
   if (bIgnoreRoot &&
diff --git a/fxjs/xfa/cjx_packet.cpp b/fxjs/xfa/cjx_packet.cpp
index 1200d02..f7bb538 100644
--- a/fxjs/xfa/cjx_packet.cpp
+++ b/fxjs/xfa/cjx_packet.cpp
@@ -87,7 +87,7 @@
           GetXFANode()
               ->GetDocument()
               ->GetNotify()
-              ->GetHDOC()
+              ->GetFFDoc()
               ->GetXMLDocument()
               ->CreateNode<CFX_XMLText>(pValue->ToWideString()));
     }
diff --git a/xfa/fxfa/cxfa_ffnotify.cpp b/xfa/fxfa/cxfa_ffnotify.cpp
index 60894ef..b728205 100644
--- a/xfa/fxfa/cxfa_ffnotify.cpp
+++ b/xfa/fxfa/cxfa_ffnotify.cpp
@@ -247,7 +247,7 @@
 
   // SetFocusWidget() may destroy |hWidget| object by JS callback.
   ObservedPtr<CXFA_FFWidget> pObservedWidget(hWidget);
-  CXFA_FFDoc* hDoc = GetHDOC();
+  CXFA_FFDoc* hDoc = GetFFDoc();
   hDoc->GetDocEnvironment()->SetFocusWidget(hDoc, hWidget);
   if (!pObservedWidget)
     return;
diff --git a/xfa/fxfa/cxfa_ffnotify.h b/xfa/fxfa/cxfa_ffnotify.h
index 52fae1d..295472d 100644
--- a/xfa/fxfa/cxfa_ffnotify.h
+++ b/xfa/fxfa/cxfa_ffnotify.h
@@ -62,7 +62,7 @@
                                       bool bIsFormReady,
                                       bool bRecursive);
   void AddCalcValidate(CXFA_Node* pNode);
-  CXFA_FFDoc* GetHDOC() const { return m_pDoc.Get(); }
+  CXFA_FFDoc* GetFFDoc() const { return m_pDoc.Get(); }
   IXFA_AppProvider* GetAppProvider();
   CXFA_FFWidgetHandler* GetWidgetHandler();
   void OpenDropDownList(CXFA_Node* pNode);
diff --git a/xfa/fxfa/layout/cxfa_contentlayoutprocessor.cpp b/xfa/fxfa/layout/cxfa_contentlayoutprocessor.cpp
index 51c07e9..47ae391 100644
--- a/xfa/fxfa/layout/cxfa_contentlayoutprocessor.cpp
+++ b/xfa/fxfa/layout/cxfa_contentlayoutprocessor.cpp
@@ -490,7 +490,7 @@
         bChanged = false;
         {
           Optional<float> fRelSplitPos = pFormNode->FindSplitPos(
-              pNotify->GetHDOC()->GetDocView(), pLayoutItem->GetIndex(),
+              pNotify->GetFFDoc()->GetDocView(), pLayoutItem->GetIndex(),
               *fProposedSplitPos - fCurVerticalOffset);
           if (fRelSplitPos.has_value()) {
             bAnyChanged = true;
diff --git a/xfa/fxfa/parser/cxfa_document.cpp b/xfa/fxfa/parser/cxfa_document.cpp
index 5c39152..b62d94c 100644
--- a/xfa/fxfa/parser/cxfa_document.cpp
+++ b/xfa/fxfa/parser/cxfa_document.cpp
@@ -1454,7 +1454,7 @@
 }
 
 FormType CXFA_Document::GetFormType() const {
-  return GetNotify()->GetHDOC()->GetFormType();
+  return GetNotify()->GetFFDoc()->GetFormType();
 }
 
 CXFA_Node* CXFA_Document::GetNodeByID(CXFA_Node* pRoot,
@@ -1614,7 +1614,7 @@
   if (!pDatasetsRoot) {
     // Ownership will be passed in the AppendChild below to the XML tree.
     auto* pDatasetsXMLNode =
-        notify_->GetHDOC()->GetXMLDocument()->CreateNode<CFX_XMLElement>(
+        notify_->GetFFDoc()->GetXMLDocument()->CreateNode<CFX_XMLElement>(
             L"xfa:datasets");
     pDatasetsXMLNode->SetAttribute(L"xmlns:xfa",
                                    L"http://www.xfa.org/schema/xfa-data/1.0/");
@@ -1663,7 +1663,7 @@
     pDataRoot->JSObject()->SetCData(XFA_Attribute::Name, L"data", false, false);
 
     auto* elem =
-        notify_->GetHDOC()->GetXMLDocument()->CreateNode<CFX_XMLElement>(
+        notify_->GetFFDoc()->GetXMLDocument()->CreateNode<CFX_XMLElement>(
             L"xfa:data");
     pDataRoot->SetXMLMappingNode(elem);
     pDatasetsRoot->InsertChildAndNotify(pDataRoot, nullptr);
@@ -1721,7 +1721,7 @@
                                         false, false);
 
     auto* elem =
-        notify_->GetHDOC()->GetXMLDocument()->CreateNode<CFX_XMLElement>(
+        notify_->GetFFDoc()->GetXMLDocument()->CreateNode<CFX_XMLElement>(
             wsDataTopLevelName);
     pDataTopLevel->SetXMLMappingNode(elem);
 
diff --git a/xfa/fxfa/parser/cxfa_node.cpp b/xfa/fxfa/parser/cxfa_node.cpp
index 33e7bf6..0d49f4f 100644
--- a/xfa/fxfa/parser/cxfa_node.cpp
+++ b/xfa/fxfa/parser/cxfa_node.cpp
@@ -5083,7 +5083,7 @@
 }
 
 CFX_XMLDocument* CXFA_Node::GetXMLDocument() const {
-  return GetDocument()->GetNotify()->GetHDOC()->GetXMLDocument();
+  return GetDocument()->GetNotify()->GetFFDoc()->GetXMLDocument();
 }
 
 // static