#include "third_party/blink/renderer/core/css/css_default_style_sheets.h"
#include "third_party/blink/public/resources/grit/blink_resources.h"
#include "third_party/blink/renderer/core/css/media_query_evaluator.h"
#include "third_party/blink/renderer/core/css/parser/css_parser.h"
#include "third_party/blink/renderer/core/css/rule_set.h"
#include "third_party/blink/renderer/core/css/style_engine.h"
#include "third_party/blink/renderer/core/css/style_sheet_contents.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/execution_context/security_context.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/html/forms/html_select_element.h"
#include "third_party/blink/renderer/core/html/forms/html_select_list_element.h"
#include "third_party/blink/renderer/core/html/html_anchor_element.h"
#include "third_party/blink/renderer/core/html/html_html_element.h"
#include "third_party/blink/renderer/core/html/html_image_element.h"
#include "third_party/blink/renderer/core/html/html_permission_element.h"
#include "third_party/blink/renderer/core/html/media/html_audio_element.h"
#include "third_party/blink/renderer/core/html/media/html_video_element.h"
#include "third_party/blink/renderer/core/layout/layout_theme.h"
#include "third_party/blink/renderer/core/mathml_names.h"
#include "third_party/blink/renderer/platform/data_resource_helper.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "third_party/blink/renderer/platform/wtf/leak_annotations.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"
namespace {
String MaybeRemoveCSSImportant(String string) { … }
}
namespace blink {
CSSDefaultStyleSheets& CSSDefaultStyleSheets::Instance() { … }
static const MediaQueryEvaluator& PrintEval() { … }
static const MediaQueryEvaluator& ForcedColorsEval() { … }
void CSSDefaultStyleSheets::Init() { … }
StyleSheetContents* CSSDefaultStyleSheets::ParseUASheet(const String& str) { … }
const MediaQueryEvaluator& CSSDefaultStyleSheets::ScreenEval() { … }
CSSDefaultStyleSheets::CSSDefaultStyleSheets()
: … { … }
void CSSDefaultStyleSheets::PrepareForLeakDetection() { … }
void CSSDefaultStyleSheets::Reset() { … }
void CSSDefaultStyleSheets::VerifyUniversalRuleCount() { … }
void CSSDefaultStyleSheets::InitializeDefaultStyles() { … }
RuleSet* CSSDefaultStyleSheets::DefaultViewSourceStyle() { … }
RuleSet* CSSDefaultStyleSheets::DefaultJSONDocumentStyle() { … }
static void AddTextTrackCSSProperties(StringBuilder* builder,
CSSPropertyID propertyId,
String value) { … }
void CSSDefaultStyleSheets::AddRulesToDefaultStyleSheets(
StyleSheetContents* rules,
NamespaceType type) { … }
bool CSSDefaultStyleSheets::EnsureDefaultStyleSheetsForElement(
const Element& element) { … }
bool CSSDefaultStyleSheets::EnsureDefaultStyleSheetsForPseudoElement(
PseudoId pseudo_id) { … }
void CSSDefaultStyleSheets::SetMediaControlsStyleSheetLoader(
std::unique_ptr<UAStyleSheetLoader> loader) { … }
void CSSDefaultStyleSheets::EnsureDefaultStyleSheetForFullscreen(
const Element& element) { … }
void CSSDefaultStyleSheets::RebuildFullscreenRuleSetIfMediaQueriesChanged(
const Element& element) { … }
bool CSSDefaultStyleSheets::EnsureDefaultStyleSheetForForcedColors() { … }
void CSSDefaultStyleSheets::CollectFeaturesTo(const Document& document,
RuleFeatureSet& features) { … }
void CSSDefaultStyleSheets::Trace(Visitor* visitor) const { … }
CSSDefaultStyleSheets::TestingScope::TestingScope() = default;
CSSDefaultStyleSheets::TestingScope::~TestingScope() { … }
}