Commit 3d9c4494 authored by Steve Kobes's avatar Steve Kobes Committed by Commit Bot

Clean up LayoutInstabilityAPI REF.

Bug: 581518
Change-Id: Ibd6a02dadcc9d90d26d20fb827d2c5bdfb52b3d5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1831948Reviewed-by: default avatarNicolás Peña Moreno <npm@chromium.org>
Commit-Queue: Steve Kobes <skobes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#701846}
parent dafb5daa
...@@ -303,9 +303,7 @@ void LayoutShiftTracker::ReportShift(double score_delta, ...@@ -303,9 +303,7 @@ void LayoutShiftTracker::ReportShift(double score_delta,
} }
} }
if (RuntimeEnabledFeatures::LayoutInstabilityAPIEnabled( if (frame.DomWindow()) {
frame.GetDocument()) &&
frame.DomWindow()) {
WindowPerformance* performance = WindowPerformance* performance =
DOMWindowPerformance::performance(*frame.DomWindow()); DOMWindowPerformance::performance(*frame.DomWindow());
if (performance) { if (performance) {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// found in the LICENSE file. // found in the LICENSE file.
// https://wicg.github.io/layout-instability/#sec-layout-shift // https://wicg.github.io/layout-instability/#sec-layout-shift
[Exposed=Window, RuntimeEnabled=LayoutInstabilityAPI] [Exposed=Window]
interface LayoutShift : PerformanceEntry { interface LayoutShift : PerformanceEntry {
readonly attribute double value; readonly attribute double value;
readonly attribute boolean hadRecentInput; readonly attribute boolean hadRecentInput;
......
...@@ -66,8 +66,7 @@ Vector<AtomicString> PerformanceObserver::supportedEntryTypes( ...@@ -66,8 +66,7 @@ Vector<AtomicString> PerformanceObserver::supportedEntryTypes(
supportedEntryTypes.push_back( supportedEntryTypes.push_back(
performance_entry_names::kLargestContentfulPaint); performance_entry_names::kLargestContentfulPaint);
} }
if (RuntimeEnabledFeatures::LayoutInstabilityAPIEnabled(execution_context)) supportedEntryTypes.push_back(performance_entry_names::kLayoutShift);
supportedEntryTypes.push_back(performance_entry_names::kLayoutShift);
supportedEntryTypes.push_back(performance_entry_names::kLongtask); supportedEntryTypes.push_back(performance_entry_names::kLongtask);
} }
supportedEntryTypes.push_back(performance_entry_names::kMark); supportedEntryTypes.push_back(performance_entry_names::kMark);
......
...@@ -425,8 +425,6 @@ void WindowPerformance::DispatchFirstInputTiming( ...@@ -425,8 +425,6 @@ void WindowPerformance::DispatchFirstInputTiming(
void WindowPerformance::AddLayoutShiftValue(double value, void WindowPerformance::AddLayoutShiftValue(double value,
bool input_detected, bool input_detected,
base::TimeTicks input_timestamp) { base::TimeTicks input_timestamp) {
DCHECK(RuntimeEnabledFeatures::LayoutInstabilityAPIEnabled(
GetExecutionContext()));
auto* entry = MakeGarbageCollected<LayoutShift>( auto* entry = MakeGarbageCollected<LayoutShift>(
now(), value, input_detected, now(), value, input_detected,
input_detected ? MonotonicTimeToDOMHighResTimeStamp(input_timestamp) input_detected ? MonotonicTimeToDOMHighResTimeStamp(input_timestamp)
......
...@@ -856,13 +856,6 @@ ...@@ -856,13 +856,6 @@
name: "LargestContentfulPaint", name: "LargestContentfulPaint",
status: "stable", status: "stable",
}, },
{
// Exposes layout shift scores to Javascript. See explainer:
// http://bit.ly/lsm-explainer.
name: "LayoutInstabilityAPI",
origin_trial_feature_name: "LayoutJankAPI",
status: "stable",
},
{ {
name: "LayoutNG", name: "LayoutNG",
implied_by: ["LayoutNGBlockFragmentation", "LayoutNGFieldset", "LayoutNGFlexBox", "LayoutNGFragmentItem", "LayoutNGLineCache", "EditingNG", "BidiCaretAffinity", "LayoutNGTable"], implied_by: ["LayoutNGBlockFragmentation", "LayoutNGFieldset", "LayoutNGFlexBox", "LayoutNGFragmentItem", "LayoutNGLineCache", "EditingNG", "BidiCaretAffinity", "LayoutNGTable"],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment