Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp ('k') | third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698