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

Unified Diff: third_party/WebKit/Source/core/dom/Element.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/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index 8fe73cfad61daa029efda25c06a7d829e18af9cc..1c7fe05ff44a778365dca44da44d4f9d7574f666 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -1453,9 +1453,9 @@ bool Element::shouldInvalidateDistributionWhenAttributeChanged(
ClassStringContent::HasClasses) {
const SpaceSplitString& oldClasses = elementData()->classNames();
const SpaceSplitString newClasses(
- newClassString, document().inQuirksMode()
- ? SpaceSplitString::ShouldFoldCase
- : SpaceSplitString::ShouldNotFoldCase);
+ newClassString,
+ document().inQuirksMode() ? SpaceSplitString::ShouldFoldCase
+ : SpaceSplitString::ShouldNotFoldCase);
if (featureSet.checkSelectorsForClassChange(oldClasses, newClasses))
return true;
} else {
@@ -2129,8 +2129,9 @@ void Element::setNeedsAnimationStyleRecalc() {
if (getStyleChangeType() != NoStyleChange)
return;
- setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::create(
- StyleChangeReason::Animation));
+ setNeedsStyleRecalc(
+ LocalStyleChange,
+ StyleChangeReasonForTracing::create(StyleChangeReason::Animation));
setAnimationStyleChange(true);
}
@@ -2915,9 +2916,10 @@ Node* Element::insertAdjacent(const String& where,
}
exceptionState.throwDOMException(
- SyntaxError, "The value provided ('" + where +
- "') is not one of 'beforeBegin', 'afterBegin', "
- "'beforeEnd', or 'afterEnd'.");
+ SyntaxError,
+ "The value provided ('" + where +
+ "') is not one of 'beforeBegin', 'afterBegin', "
+ "'beforeEnd', or 'afterEnd'.");
return nullptr;
}
@@ -2968,9 +2970,10 @@ static Element* contextElementForInsertion(const String& where,
equalIgnoringCase(where, "beforeEnd"))
return element;
exceptionState.throwDOMException(
- SyntaxError, "The value provided ('" + where +
- "') is not one of 'beforeBegin', 'afterBegin', "
- "'beforeEnd', or 'afterEnd'.");
+ SyntaxError,
+ "The value provided ('" + where +
+ "') is not one of 'beforeBegin', 'afterBegin', "
+ "'beforeEnd', or 'afterEnd'.");
return nullptr;
}
@@ -3170,8 +3173,9 @@ const ComputedStyle* Element::ensureComputedStyle(
RefPtr<ComputedStyle> result =
document().ensureStyleResolver().pseudoStyleForElement(
- this, PseudoStyleRequest(pseudoElementSpecifier,
- PseudoStyleRequest::ForComputedStyle),
+ this,
+ PseudoStyleRequest(pseudoElementSpecifier,
+ PseudoStyleRequest::ForComputedStyle),
elementStyle);
DCHECK(result);
return elementStyle->addCachedPseudoStyle(result.release());
@@ -3217,8 +3221,9 @@ void Element::updatePseudoElement(PseudoId pseudoId, StyleRecalcChange change) {
DCHECK(!needsStyleRecalc());
PseudoElement* element = pseudoElement(pseudoId);
- if (element && (change == UpdatePseudoElements ||
- element->shouldCallRecalcStyle(change))) {
+ if (element &&
+ (change == UpdatePseudoElements ||
+ element->shouldCallRecalcStyle(change))) {
if (pseudoId == PseudoIdFirstLetter && updateFirstLetter(element))
return;
@@ -3909,8 +3914,9 @@ void Element::styleAttributeChanged(
void Element::inlineStyleChanged() {
DCHECK(isStyledElement());
- setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::create(
- StyleChangeReason::Inline));
+ setNeedsStyleRecalc(
+ LocalStyleChange,
+ StyleChangeReasonForTracing::create(StyleChangeReason::Inline));
DCHECK(elementData());
elementData()->m_styleAttributeIsDirty = true;
InspectorInstrumentation::didInvalidateStyleAttr(this);

Powered by Google App Engine
This is Rietveld 408576698