Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 785247e3f1d650d27c2fc9653e0881307fdae98e
https://github.com/WebKit/WebKit/commit/785247e3f1d650d27c2fc9653e0881307fdae98e
Author: Cole Carley <[email protected]>
Date: 2026-09-02 (Wed, 02 Sep 2026)
Changed paths:
M Source/WebCore/page/QuirkNames.h
M Source/WebCore/page/QuirkTable.cpp
M Source/WebCore/page/QuirkTable.h
Log Message:
-----------
[Quirks] Reduce compile flags in Quirks table
https://bugs.webkit.org/show_bug.cgi?id=323025
rdar://186290524
Reviewed by Brent Fulgham.
There are many compile flags in the Quirks table, which makes it
difficult to read and reason about. Instead of having many compile
flags, we make the availability of the behavior or quirk data
returned from a function or on the Quirk. This significantly cleans
up the table and more closely models what we'll see when we switch
to defining quirks in a data file.
Quirks that are unavailable for the current platform are still compiled
out of the binary to reduce code bloat by pruning the table at compile
time.
* Source/WebCore/page/QuirkNames.h:
* Source/WebCore/page/QuirkTable.cpp:
(WebCore::SiteSpecificQuirks::listsEveryQuirkOnce):
(WebCore::SiteSpecificQuirks::computeUnavailableQuirks):
(WebCore::Quirk::apply const):
(WebCore::resolveSiteSpecificQuirks):
(WebCore::SiteSpecificQuirks::shouldEmit):
(WebCore::SiteSpecificQuirks::emittedQuirkCount):
(WebCore::SiteSpecificQuirks::emittedQuirkIndices):
(WebCore::SiteSpecificQuirks::maskedQuirk):
(WebCore::SiteSpecificQuirks::prunedTable):
(WebCore::SiteSpecificQuirks::everyEmittedQuirkIsUsable):
* Source/WebCore/page/QuirkTable.h:
(WebCore::QuirkBehaviors::exclude):
Canonical link: https://commits.webkit.org/320338@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications