| Index: third_party/WebKit/Source/core/dom/Document.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
|
| index bab0b6ed7e0395e7c5b2cd33274ab8919e608690..b7ca13864d62826e2df615ce14a842ca6ccd14d8 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -1258,8 +1258,9 @@ void Document::setContentLanguage(const AtomicString& language) {
|
| m_contentLanguage = language;
|
|
|
| // Document's style depends on the content language.
|
| - setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(
|
| - StyleChangeReason::Language));
|
| + setNeedsStyleRecalc(
|
| + SubtreeStyleChange,
|
| + StyleChangeReasonForTracing::create(StyleChangeReason::Language));
|
| }
|
|
|
| void Document::setXMLVersion(const String& version,
|
| @@ -1886,8 +1887,9 @@ void Document::inheritHtmlAndBodyElementStyles(StyleRecalcChange change) {
|
| if (style->direction() != rootDirection ||
|
| style->getWritingMode() != rootWritingMode)
|
| documentElement()->setNeedsStyleRecalc(
|
| - SubtreeStyleChange, StyleChangeReasonForTracing::create(
|
| - StyleChangeReason::WritingModeChange));
|
| + SubtreeStyleChange,
|
| + StyleChangeReasonForTracing::create(
|
| + StyleChangeReason::WritingModeChange));
|
| }
|
| }
|
|
|
| @@ -2939,8 +2941,9 @@ void Document::implicitClose() {
|
| // necessary and can in fact be actively harmful if pages are loading at a
|
| // rate of > 60fps
|
| // (if your platform is syncing flushes and limiting them to 60fps).
|
| - if (!localOwner() || (localOwner()->layoutObject() &&
|
| - !localOwner()->layoutObject()->needsLayout())) {
|
| + if (!localOwner() ||
|
| + (localOwner()->layoutObject() &&
|
| + !localOwner()->layoutObject()->needsLayout())) {
|
| updateStyleAndLayoutTree();
|
|
|
| // Always do a layout after loading if needed.
|
| @@ -3443,9 +3446,10 @@ void Document::maybeHandleHttpRefresh(const String& content,
|
|
|
| double delay;
|
| String refreshURLString;
|
| - if (!parseHTTPRefresh(content, httpRefreshType == HttpRefreshFromMetaTag
|
| - ? isHTMLSpace<UChar>
|
| - : nullptr,
|
| + if (!parseHTTPRefresh(content,
|
| + httpRefreshType == HttpRefreshFromMetaTag
|
| + ? isHTMLSpace<UChar>
|
| + : nullptr,
|
| delay, refreshURLString))
|
| return;
|
| KURL refreshURL =
|
| @@ -4091,8 +4095,9 @@ SetFocusedElementDone:
|
| }
|
|
|
| void Document::clearFocusedElement() {
|
| - setFocusedElement(nullptr, FocusParams(SelectionBehaviorOnFocus::None,
|
| - WebFocusTypeNone, nullptr));
|
| + setFocusedElement(
|
| + nullptr,
|
| + FocusParams(SelectionBehaviorOnFocus::None, WebFocusTypeNone, nullptr));
|
| }
|
|
|
| void Document::setSequentialFocusNavigationStartingPoint(Node* node) {
|
| @@ -5110,8 +5115,9 @@ void Document::setDesignMode(const String& value) {
|
| if (newValue == m_designMode)
|
| return;
|
| m_designMode = newValue;
|
| - setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(
|
| - StyleChangeReason::DesignMode));
|
| + setNeedsStyleRecalc(
|
| + SubtreeStyleChange,
|
| + StyleChangeReasonForTracing::create(StyleChangeReason::DesignMode));
|
| }
|
|
|
| Document* Document::parentDocument() const {
|
| @@ -6404,12 +6410,13 @@ bool Document::isSecureContext(
|
| bool isSecure = isSecureContextImpl(privilegeContextCheck);
|
| if (getSandboxFlags() != SandboxNone) {
|
| UseCounter::count(
|
| - *this, isSecure
|
| - ? UseCounter::SecureContextCheckForSandboxedOriginPassed
|
| - : UseCounter::SecureContextCheckForSandboxedOriginFailed);
|
| + *this,
|
| + isSecure ? UseCounter::SecureContextCheckForSandboxedOriginPassed
|
| + : UseCounter::SecureContextCheckForSandboxedOriginFailed);
|
| }
|
| - UseCounter::count(*this, isSecure ? UseCounter::SecureContextCheckPassed
|
| - : UseCounter::SecureContextCheckFailed);
|
| + UseCounter::count(*this,
|
| + isSecure ? UseCounter::SecureContextCheckPassed
|
| + : UseCounter::SecureContextCheckFailed);
|
| return isSecure;
|
| }
|
|
|
|
|