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

Unified Diff: third_party/WebKit/Source/core/html/HTMLElement.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/html/HTMLElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLElement.cpp b/third_party/WebKit/Source/core/html/HTMLElement.cpp
index 69d1fc0537bfa0aa545342e1c9574c66fb19a3f2..2d7b07f670f35c0f662ad492b6e7b298a315cc75 100644
--- a/third_party/WebKit/Source/core/html/HTMLElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp
@@ -148,8 +148,9 @@ bool HTMLElement::ieForbidsInsertHTML() const {
hasTagName(brTag) || hasTagName(colTag) || hasTagName(embedTag) ||
hasTagName(frameTag) || hasTagName(hrTag) || hasTagName(imageTag) ||
hasTagName(imgTag) || hasTagName(inputTag) || hasTagName(keygenTag) ||
- hasTagName(linkTag) || (RuntimeEnabledFeatures::contextMenuEnabled() &&
- hasTagName(menuitemTag)) ||
+ hasTagName(linkTag) ||
+ (RuntimeEnabledFeatures::contextMenuEnabled() &&
+ hasTagName(menuitemTag)) ||
hasTagName(metaTag) || hasTagName(paramTag) || hasTagName(sourceTag) ||
hasTagName(trackTag) || hasTagName(wbrTag))
return true;
@@ -794,8 +795,9 @@ HTMLFormElement* HTMLElement::findFormAncestor() const {
}
static inline bool elementAffectsDirectionality(const Node* node) {
- return node->isHTMLElement() && (isHTMLBDIElement(toHTMLElement(*node)) ||
- toHTMLElement(*node).hasAttribute(dirAttr));
+ return node->isHTMLElement() &&
+ (isHTMLBDIElement(toHTMLElement(*node)) ||
+ toHTMLElement(*node).hasAttribute(dirAttr));
}
void HTMLElement::childrenChanged(const ChildrenChange& change) {
@@ -904,8 +906,9 @@ void HTMLElement::adjustDirectionalityIfNeededAfterChildAttributeChanged(
elementToAdjust = FlatTreeTraversal::parentElement(*elementToAdjust)) {
if (elementAffectsDirectionality(elementToAdjust)) {
elementToAdjust->setNeedsStyleRecalc(
- LocalStyleChange, StyleChangeReasonForTracing::create(
- StyleChangeReason::WritingModeChange));
+ LocalStyleChange,
+ StyleChangeReasonForTracing::create(
+ StyleChangeReason::WritingModeChange));
return;
}
}

Powered by Google App Engine
This is Rietveld 408576698