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

Unified Diff: third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp

Issue 2398833004: Reflow comments in core/css/invalidation. (Closed)
Patch Set: Created 4 years, 2 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/css/invalidation/StyleInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp b/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp
index 05fdd5b1755b21a25b44f3e4c76336fab50a3912..2152061607512bef84d54ec3cb01db25da984d7e 100644
--- a/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp
+++ b/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp
@@ -225,7 +225,8 @@ bool StyleInvalidator::SiblingData::matchCurrentInvalidationSets(
unsigned index = 0;
while (index < m_invalidationEntries.size()) {
if (m_elementIndex > m_invalidationEntries[index].m_invalidationLimit) {
- // m_invalidationEntries[index] only applies to earlier siblings. Remove it.
+ // m_invalidationEntries[index] only applies to earlier siblings. Remove
+ // it.
m_invalidationEntries[index] = m_invalidationEntries.last();
m_invalidationEntries.removeLast();
continue;
@@ -374,7 +375,8 @@ bool StyleInvalidator::invalidate(Element& element,
StyleChangeReason::StyleInvalidator));
} else if (recursionData.hasInvalidationSets() &&
someChildrenNeedStyleRecalc) {
- // Clone the ComputedStyle in order to preserve correct style sharing, if possible. Otherwise recalc style.
+ // Clone the ComputedStyle in order to preserve correct style sharing, if
+ // possible. Otherwise recalc style.
if (LayoutObject* layoutObject = element.layoutObject()) {
layoutObject->setStyleInternal(
ComputedStyle::clone(layoutObject->styleRef()));

Powered by Google App Engine
This is Rietveld 408576698