Commit 21e0f910 authored by Mason Freed's avatar Mason Freed Committed by Commit Bot

Remove unnecessary code

This seems like a leftover - likely there used to be more
after the if().

Change-Id: I4671f52e73de2e5e573e267de6d5444a03caf2f3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2424523
Auto-Submit: Mason Freed <masonfreed@chromium.org>
Commit-Queue: Yu Han <yuzhehan@chromium.org>
Reviewed-by: default avatarYu Han <yuzhehan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#809470}
parent 27cf5ec1
...@@ -2960,12 +2960,6 @@ void Document::GetPageDescription(uint32_t page_index, ...@@ -2960,12 +2960,6 @@ void Document::GetPageDescription(uint32_t page_index,
description->orientation = style->GetPageOrientation(); description->orientation = style->GetPageOrientation();
} }
void Document::SetIsViewSource(bool is_view_source) {
is_view_source_ = is_view_source;
if (!is_view_source_)
return;
}
void Document::SetIsXrOverlay(bool val, Element* overlay_element) { void Document::SetIsXrOverlay(bool val, Element* overlay_element) {
if (!documentElement()) if (!documentElement())
return; return;
......
...@@ -504,7 +504,9 @@ class CORE_EXPORT Document : public ContainerNode, ...@@ -504,7 +504,9 @@ class CORE_EXPORT Document : public ContainerNode,
StyleResolver& GetStyleResolver() const; StyleResolver& GetStyleResolver() const;
bool IsViewSource() const { return is_view_source_; } bool IsViewSource() const { return is_view_source_; }
void SetIsViewSource(bool); void SetIsViewSource(bool is_view_source) {
is_view_source_ = is_view_source;
}
// WebXR DOM Overlay support, cf https://immersive-web.github.io/dom-overlays/ // WebXR DOM Overlay support, cf https://immersive-web.github.io/dom-overlays/
// True if there's an ongoing "immersive-ar" WebXR session with a DOM Overlay // True if there's an ongoing "immersive-ar" WebXR session with a DOM Overlay
......
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