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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.cpp

Issue 1577433003: Statistics of LayoutBox rare data reasons Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: - Created 3 years, 9 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/paint/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index aabe1c5f5f715dabeeb6687319411f2a189aab07..a4e6cd8ef055c9899c304c135659b2a405990ca4 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -774,6 +774,23 @@ void PaintLayer::update3DTransformedDescendantStatus() {
void PaintLayer::updateLayerPosition() {
LayoutPoint localPoint;
+ if (!layoutObject().isOutOfFlowPositioned() && parent() &&
+ parent()->layoutObject().isLayoutInline() &&
+ ((parent()->parent() &&
+ !parent()->parent()->layoutObject().isLayoutBlock()) ||
+ parent()->location() != LayoutPoint())) {
+ auto reason = layoutObject().isFloating() ? ReasonLOFloatLayerBug1
+ : ReasonLOFloatLayerBug2;
+ for (LayoutObject* object = layoutObject().parent();
+ object && object != parent()->layoutObject();
+ object = object->parent()) {
+ if (object->isFloating()) {
+ object->m_rareStat.addReason(reason);
+ LOG(ERROR) << "Found: !!! " << reason;
+ }
+ }
+ }
+
bool didResize = false;
if (layoutObject().isInline() && layoutObject().isLayoutInline()) {
LayoutInline& inlineFlow = toLayoutInline(layoutObject());
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintInvalidator.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayerPainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698