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

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

Issue 2393803004: blink: Enforce comment formatting (except in core/layout, for now) (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/dom/Text.cpp
diff --git a/third_party/WebKit/Source/core/dom/Text.cpp b/third_party/WebKit/Source/core/dom/Text.cpp
index 2f232f049d775ca332450479b5ec77960cbc16f0..4280dffd70ba3ad33c9d62e06ca58f80f23848ce 100644
--- a/third_party/WebKit/Source/core/dom/Text.cpp
+++ b/third_party/WebKit/Source/core/dom/Text.cpp
@@ -286,8 +286,9 @@ bool Text::textLayoutObjectIsNeeded(const ComputedStyle& style,
if (document().childNeedsDistributionRecalc())
return true;
- // Avoiding creation of a layoutObject for the text node is a non-essential memory optimization.
- // So to avoid blowing up on very wide DOMs, we limit the number of siblings to visit.
+ // Avoiding creation of a layoutObject for the text node is a non-essential
+ // memory optimization. So to avoid blowing up on very wide DOMs, we limit
+ // the number of siblings to visit.
unsigned maxSiblingsToVisit = 50;
const LayoutObject* prev =
@@ -305,11 +306,6 @@ bool Text::textLayoutObjectIsNeeded(const ComputedStyle& style,
(!prev || !prev->isInline()))
return false;
- // Avoiding creation of a layoutObject for the text node is a non-essential
- // memory optimization. So to avoid blowing up on very wide DOMs, we limit
- // the number of siblings to visit.
- unsigned maxSiblingsToVisit = 50;
Nico 2016/10/06 15:21:04 It looks like https://codereview.chromium.org/2379
-
LayoutObject* first = parent.slowFirstChild();
for (; first && first->isFloatingOrOutOfFlowPositioned() &&
maxSiblingsToVisit;
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/html/HTMLEmbedElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698