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

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

Issue 2390543002: Reflow comments in core/dom/. (Closed)
Patch Set: Reformat comments in core/dom/. 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/dom/IntersectionObserver.cpp
diff --git a/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp b/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp
index 49d165925bc3a4040f3aeb6d0e84dd422b140a2e..e0ce10e279328c551b3a2e01dd91bf9d1d6b062a 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp
+++ b/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp
@@ -63,7 +63,8 @@ class IntersectionObserverCallbackImpl final
void parseRootMargin(String rootMarginParameter,
Vector<Length>& rootMargin,
ExceptionState& exceptionState) {
- // TODO(szager): Make sure this exact syntax and behavior is spec-ed somewhere.
+ // TODO(szager): Make sure this exact syntax and behavior is spec-ed
+ // somewhere.
// The root margin argument accepts syntax similar to that for CSS margin:
//
@@ -404,8 +405,8 @@ static LayoutUnit computeMargin(const Length& length,
}
void IntersectionObserver::applyRootMargin(LayoutRect& rect) const {
- // TODO(szager): Make sure the spec is clear that left/right margins are resolved against
- // width and not height.
+ // TODO(szager): Make sure the spec is clear that left/right margins are
+ // resolved against width and not height.
LayoutUnit topMargin = computeMargin(m_topMargin, rect.height());
LayoutUnit rightMargin = computeMargin(m_rightMargin, rect.width());
LayoutUnit bottomMargin = computeMargin(m_bottomMargin, rect.height());

Powered by Google App Engine
This is Rietveld 408576698