#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/core/css/active_style_sheets.h"
#include "third_party/blink/renderer/core/css/css_style_sheet.h"
#include "third_party/blink/renderer/core/css/resolver/scoped_style_resolver.h"
#include "third_party/blink/renderer/core/css/rule_set.h"
#include "third_party/blink/renderer/core/css/style_change_reason.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/dom/container_node.h"
namespace blink {
ActiveSheetsChange CompareActiveStyleSheets(
const ActiveStyleSheetVector& old_style_sheets,
const ActiveStyleSheetVector& new_style_sheets,
const HeapVector<Member<RuleSetDiff>>& diffs,
HeapHashSet<Member<RuleSet>>& changed_rule_sets) { … }
namespace {
bool HasMediaQueries(const ActiveStyleSheetVector& active_style_sheets) { … }
bool HasSizeDependentMediaQueries(
const ActiveStyleSheetVector& active_style_sheets) { … }
bool HasDynamicViewportDependentMediaQueries(
const ActiveStyleSheetVector& active_style_sheets) { … }
}
bool AffectedByMediaValueChange(const ActiveStyleSheetVector& active_sheets,
MediaValueChange change) { … }
}