Skip to content

Commit

Permalink
Remove Document::setDesignMode overload
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=259389

Reviewed by Darin Adler.

Remove the setDesignMode that is not actually used.

* Source/WebCore/dom/Document.cpp:
(WebCore::Document::setDesignMode):
* Source/WebCore/dom/Document.h:

Canonical link: https://commits.webkit.org/266285@main
  • Loading branch information
rwlbuis committed Jul 25, 2023
1 parent b60e4db commit 0ddbfa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 2 additions & 7 deletions Source/WebCore/dom/Document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6305,12 +6305,6 @@ void Document::setTransformSource(std::unique_ptr<TransformSource> source)

#endif

void Document::setDesignMode(DesignMode value)
{
m_designMode = value;
scheduleFullStyleRebuild();
}

String Document::designMode() const
{
return inDesignMode() ? onAtom() : offAtom();
Expand All @@ -6319,7 +6313,8 @@ String Document::designMode() const
void Document::setDesignMode(const String& value)
{
DesignMode mode = equalLettersIgnoringASCIICase(value, "on"_s) ? DesignMode::On : DesignMode::Off;
setDesignMode(mode);
m_designMode = mode;
scheduleFullStyleRebuild();
}

Document* Document::parentDocument() const
Expand Down
1 change: 0 additions & 1 deletion Source/WebCore/dom/Document.h
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,6 @@ class Document

// designMode support
enum class DesignMode : bool { Off, On };
void setDesignMode(DesignMode value);
bool inDesignMode() const { return m_designMode == DesignMode::On; }
WEBCORE_EXPORT String designMode() const;
WEBCORE_EXPORT void setDesignMode(const String&);
Expand Down

0 comments on commit 0ddbfa3

Please sign in to comment.