Commit a2f67a39 authored by Ankit Kumar 🌪️'s avatar Ankit Kumar 🌪️ Committed by Commit Bot

Removing unused members of the struct PP_PrivateAccessibilityPageInfo

With the introduction of PP_PrivateAccessibilityPageObjects two members
link_count and image_count of PP_PrivateAccessibilityPageInfo are
unused. This CL removes both the members from the struct.

Bug: 1020097
Change-Id: I74d0d8914a98cca12879bf53a59260209f65ab1b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1892637
Commit-Queue: Ankit Kumar 🌪️ <ankk@microsoft.com>
Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Reviewed-by: default avatarKevin Babbitt <kbabbitt@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#715263}
parent eb39fc23
...@@ -168,8 +168,6 @@ class PdfAccessibilityTreeTest : public content::RenderViewTest { ...@@ -168,8 +168,6 @@ class PdfAccessibilityTreeTest : public content::RenderViewTest {
page_info_.page_index = 0; page_info_.page_index = 0;
page_info_.text_run_count = 0; page_info_.text_run_count = 0;
page_info_.char_count = 0; page_info_.char_count = 0;
page_info_.link_count = 0;
page_info_.image_count = 0;
page_info_.bounds = PP_MakeRectFromXYWH(0, 0, 1, 1); page_info_.bounds = PP_MakeRectFromXYWH(0, 0, 1, 1);
} }
...@@ -255,8 +253,6 @@ TEST_F(PdfAccessibilityTreeTest, TestPdfAccessibilityTreeCreation) { ...@@ -255,8 +253,6 @@ TEST_F(PdfAccessibilityTreeTest, TestPdfAccessibilityTreeCreation) {
page_info_.text_run_count = text_runs_.size(); page_info_.text_run_count = text_runs_.size();
page_info_.char_count = chars_.size(); page_info_.char_count = chars_.size();
page_info_.link_count = links_.size();
page_info_.image_count = images_.size();
content::RenderFrame* render_frame = view_->GetMainRenderFrame(); content::RenderFrame* render_frame = view_->GetMainRenderFrame();
render_frame->SetAccessibilityModeForTest(ui::AXMode::kWebContents); render_frame->SetAccessibilityModeForTest(ui::AXMode::kWebContents);
...@@ -353,7 +349,6 @@ TEST_F(PdfAccessibilityTreeTest, TestPreviousNextOnLine) { ...@@ -353,7 +349,6 @@ TEST_F(PdfAccessibilityTreeTest, TestPreviousNextOnLine) {
page_info_.text_run_count = text_runs_.size(); page_info_.text_run_count = text_runs_.size();
page_info_.char_count = chars_.size(); page_info_.char_count = chars_.size();
page_info_.link_count = links_.size();
content::RenderFrame* render_frame = view_->GetMainRenderFrame(); content::RenderFrame* render_frame = view_->GetMainRenderFrame();
render_frame->SetAccessibilityModeForTest(ui::AXMode::kWebContents); render_frame->SetAccessibilityModeForTest(ui::AXMode::kWebContents);
...@@ -512,7 +507,6 @@ TEST_F(PdfAccessibilityTreeTest, UnsortedLinkVector) { ...@@ -512,7 +507,6 @@ TEST_F(PdfAccessibilityTreeTest, UnsortedLinkVector) {
page_info_.text_run_count = text_runs_.size(); page_info_.text_run_count = text_runs_.size();
page_info_.char_count = chars_.size(); page_info_.char_count = chars_.size();
page_info_.link_count = links_.size();
content::RenderFrame* render_frame = view_->GetMainRenderFrame(); content::RenderFrame* render_frame = view_->GetMainRenderFrame();
render_frame->SetAccessibilityModeForTest(ui::AXMode::kWebContents); render_frame->SetAccessibilityModeForTest(ui::AXMode::kWebContents);
...@@ -548,7 +542,6 @@ TEST_F(PdfAccessibilityTreeTest, OutOfBoundLink) { ...@@ -548,7 +542,6 @@ TEST_F(PdfAccessibilityTreeTest, OutOfBoundLink) {
page_info_.text_run_count = text_runs_.size(); page_info_.text_run_count = text_runs_.size();
page_info_.char_count = chars_.size(); page_info_.char_count = chars_.size();
page_info_.link_count = links_.size();
content::RenderFrame* render_frame = view_->GetMainRenderFrame(); content::RenderFrame* render_frame = view_->GetMainRenderFrame();
render_frame->SetAccessibilityModeForTest(ui::AXMode::kWebContents); render_frame->SetAccessibilityModeForTest(ui::AXMode::kWebContents);
...@@ -592,7 +585,6 @@ TEST_F(PdfAccessibilityTreeTest, UnsortedImageVector) { ...@@ -592,7 +585,6 @@ TEST_F(PdfAccessibilityTreeTest, UnsortedImageVector) {
page_info_.text_run_count = text_runs_.size(); page_info_.text_run_count = text_runs_.size();
page_info_.char_count = chars_.size(); page_info_.char_count = chars_.size();
page_info_.image_count = images_.size();
content::RenderFrame* render_frame = view_->GetMainRenderFrame(); content::RenderFrame* render_frame = view_->GetMainRenderFrame();
render_frame->SetAccessibilityModeForTest(ui::AXMode::kWebContents); render_frame->SetAccessibilityModeForTest(ui::AXMode::kWebContents);
...@@ -627,7 +619,6 @@ TEST_F(PdfAccessibilityTreeTest, OutOfBoundImage) { ...@@ -627,7 +619,6 @@ TEST_F(PdfAccessibilityTreeTest, OutOfBoundImage) {
page_info_.text_run_count = text_runs_.size(); page_info_.text_run_count = text_runs_.size();
page_info_.char_count = chars_.size(); page_info_.char_count = chars_.size();
page_info_.image_count = images_.size();
content::RenderFrame* render_frame = view_->GetMainRenderFrame(); content::RenderFrame* render_frame = view_->GetMainRenderFrame();
render_frame->SetAccessibilityModeForTest(ui::AXMode::kWebContents); render_frame->SetAccessibilityModeForTest(ui::AXMode::kWebContents);
...@@ -739,7 +730,6 @@ TEST_F(PdfAccessibilityTreeTest, TestClickActionDataConversion) { ...@@ -739,7 +730,6 @@ TEST_F(PdfAccessibilityTreeTest, TestClickActionDataConversion) {
page_info_.text_run_count = text_runs_.size(); page_info_.text_run_count = text_runs_.size();
page_info_.char_count = chars_.size(); page_info_.char_count = chars_.size();
page_info_.link_count = links_.size();
content::RenderFrame* render_frame = view_->GetMainRenderFrame(); content::RenderFrame* render_frame = view_->GetMainRenderFrame();
render_frame->SetAccessibilityModeForTest(ui::AXMode::kWebContents); render_frame->SetAccessibilityModeForTest(ui::AXMode::kWebContents);
......
...@@ -63,8 +63,6 @@ struct PP_PrivateAccessibilityPageInfo { ...@@ -63,8 +63,6 @@ struct PP_PrivateAccessibilityPageInfo {
struct PP_Rect bounds; struct PP_Rect bounds;
uint32_t text_run_count; uint32_t text_run_count;
uint32_t char_count; uint32_t char_count;
uint32_t link_count;
uint32_t image_count;
}; };
// See PDF Reference 1.7, page 402, table 5.3. // See PDF Reference 1.7, page 402, table 5.3.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment