| Index: third_party/WebKit/Source/core/timing/PerformanceUserTiming.cpp
|
| diff --git a/third_party/WebKit/Source/core/timing/PerformanceUserTiming.cpp b/third_party/WebKit/Source/core/timing/PerformanceUserTiming.cpp
|
| index 81b6c4fa1a5c10ecf12732586eee59b775cc8151..1d24228d774f52329ba70d116fa755df2d50d096 100644
|
| --- a/third_party/WebKit/Source/core/timing/PerformanceUserTiming.cpp
|
| +++ b/third_party/WebKit/Source/core/timing/PerformanceUserTiming.cpp
|
| @@ -108,9 +108,10 @@ PerformanceEntry* UserTiming::mark(const String& markName,
|
| ExceptionState& exceptionState) {
|
| if (restrictedKeyMap().contains(markName)) {
|
| exceptionState.throwDOMException(
|
| - SyntaxError, "'" + markName +
|
| - "' is part of the PerformanceTiming interface, and "
|
| - "cannot be used as a mark name.");
|
| + SyntaxError,
|
| + "'" + markName +
|
| + "' is part of the PerformanceTiming interface, and "
|
| + "cannot be used as a mark name.");
|
| return nullptr;
|
| }
|
|
|
| @@ -139,10 +140,11 @@ double UserTiming::findExistingMarkStartTime(const String& markName,
|
| (m_performance->timing()->*(restrictedKeyMap().get(markName)))());
|
| if (!value) {
|
| exceptionState.throwDOMException(
|
| - InvalidAccessError, "'" + markName +
|
| - "' is empty: either the event hasn't "
|
| - "happened yet, or it would provide "
|
| - "cross-origin timing information.");
|
| + InvalidAccessError,
|
| + "'" + markName +
|
| + "' is empty: either the event hasn't "
|
| + "happened yet, or it would provide "
|
| + "cross-origin timing information.");
|
| return 0.0;
|
| }
|
| return value - m_performance->timing()->navigationStart();
|
|
|