Reparse user stylesheets when _useSystemAppearance changes
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Jul 2018 03:50:56 +0000 (03:50 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Jul 2018 03:50:56 +0000 (03:50 +0000)
commitb9445ded149a228a8e779d44269f5dafd6045444
treed7b657c51ebbd0a8991a2048100450a45989e5ce
parent7fc2c7b486079f8d927b856632f593a8253e6b7d
Reparse user stylesheets when _useSystemAppearance changes
https://bugs.webkit.org/show_bug.cgi?id=187312
<rdar://problem/38565834>

Reviewed by Tim Horton.

Source/WebCore:

This setting may affect user stylesheet parsing. Reparse if it changes.

Test: fast/media/use-system-appearance-user-stylesheet-parsing.html

* page/Page.cpp:
(WebCore::Page::setUseSystemAppearance):
* page/Page.h:
(WebCore::Page::setUseSystemAppearance): Deleted.
* testing/Internals.cpp:
(WebCore::Internals::setUseSystemAppearance):
* testing/Internals.h:
* testing/Internals.idl:

LayoutTests:

* fast/media/use-system-appearance-user-stylesheet-parsing-expected.txt: Added.
* fast/media/use-system-appearance-user-stylesheet-parsing.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233510 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/media/use-system-appearance-user-stylesheet-parsing-expected.txt [new file with mode: 0644]
LayoutTests/fast/media/use-system-appearance-user-stylesheet-parsing.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/page/Page.cpp
Source/WebCore/page/Page.h
Source/WebCore/testing/Internals.cpp
Source/WebCore/testing/Internals.h
Source/WebCore/testing/Internals.idl