Remove CXFA_LayoutProcessor::GetRootLayoutItem(). It is not called. The view layout processor is called directly as needed. Change-Id: Id27489db3e7a9e2c534f8e404f7e6bfec645ce84 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/64590 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/xfa/fxfa/layout/cxfa_layoutprocessor.cpp b/xfa/fxfa/layout/cxfa_layoutprocessor.cpp index e84c262..bb38fbe 100644 --- a/xfa/fxfa/layout/cxfa_layoutprocessor.cpp +++ b/xfa/fxfa/layout/cxfa_layoutprocessor.cpp
@@ -128,11 +128,6 @@ m_rgChangedContainers.push_back(pContainer); } -CXFA_ViewLayoutItem* CXFA_LayoutProcessor::GetRootLayoutItem() const { - return m_pViewLayoutProcessor ? m_pViewLayoutProcessor->GetRootLayoutItem() - : nullptr; -} - bool CXFA_LayoutProcessor::NeedLayout() const { return m_bNeedLayout || !m_rgChangedContainers.empty(); }
diff --git a/xfa/fxfa/layout/cxfa_layoutprocessor.h b/xfa/fxfa/layout/cxfa_layoutprocessor.h index fab6746..18dc208 100644 --- a/xfa/fxfa/layout/cxfa_layoutprocessor.h +++ b/xfa/fxfa/layout/cxfa_layoutprocessor.h
@@ -37,7 +37,6 @@ int32_t CountPages() const; CXFA_ViewLayoutItem* GetPage(int32_t index) const; CXFA_LayoutItem* GetLayoutItem(CXFA_Node* pFormItem); - CXFA_ViewLayoutItem* GetRootLayoutItem() const; CXFA_ContentLayoutProcessor* GetRootContentLayoutProcessor() const { return m_pContentLayoutProcessor.get(); }