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

Unified Diff: xfa/fxfa/parser/xfa_document_layout_imp.cpp

Issue 2089443002: Convert XFA_ELEMENT to an enum class (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: More unknown checks Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fxfa/parser/xfa_document_imp.cpp ('k') | xfa/fxfa/parser/xfa_document_serialize.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fxfa/parser/xfa_document_layout_imp.cpp
diff --git a/xfa/fxfa/parser/xfa_document_layout_imp.cpp b/xfa/fxfa/parser/xfa_document_layout_imp.cpp
index 31733bb52d1024d6e7d418087b51a4c769fdf84d..723ae1db6910d90c3674677e2c9191670138b98c 100644
--- a/xfa/fxfa/parser/xfa_document_layout_imp.cpp
+++ b/xfa/fxfa/parser/xfa_document_layout_imp.cpp
@@ -55,7 +55,7 @@ int32_t CXFA_LayoutProcessor::StartLayout(FX_BOOL bForceRestart) {
return -1;
}
CXFA_Node* pFormRoot =
- pFormPacketNode->GetFirstChildByClass(XFA_ELEMENT_Subform);
+ pFormPacketNode->GetFirstChildByClass(XFA_Element::Subform);
if (!pFormRoot) {
return -1;
}
@@ -178,7 +178,7 @@ int32_t CXFA_ContainerLayoutItem::GetPageIndex() const {
void CXFA_ContainerLayoutItem::GetPageSize(CFX_SizeF& size) const {
size.clear();
- CXFA_Node* pMedium = m_pFormNode->GetFirstChildByClass(XFA_ELEMENT_Medium);
+ CXFA_Node* pMedium = m_pFormNode->GetFirstChildByClass(XFA_Element::Medium);
if (!pMedium)
return;
« no previous file with comments | « xfa/fxfa/parser/xfa_document_imp.cpp ('k') | xfa/fxfa/parser/xfa_document_serialize.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698