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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2039363003: FirstMeaningfulPaint UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ready for review Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 #if ENABLE(ASSERT) 230 #if ENABLE(ASSERT)
231 , m_hasAXObject(false) 231 , m_hasAXObject(false)
232 , m_setNeedsLayoutForbidden(false) 232 , m_setNeedsLayoutForbidden(false)
233 #endif 233 #endif
234 , m_bitfields(node) 234 , m_bitfields(node)
235 { 235 {
236 // TODO(wangxianzhu): Move this into initialization list when we enable the feature by default. 236 // TODO(wangxianzhu): Move this into initialization list when we enable the feature by default.
237 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) 237 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled())
238 m_previousPositionFromPaintInvalidationBacking = uninitializedPaintOffse t(); 238 m_previousPositionFromPaintInvalidationBacking = uninitializedPaintOffse t();
239 InstanceCounters::incrementCounter(InstanceCounters::LayoutObjectCounter); 239 InstanceCounters::incrementCounter(InstanceCounters::LayoutObjectCounter);
240 if (m_node)
241 frameView()->incrementLayoutObjectCount();
240 } 242 }
241 243
242 LayoutObject::~LayoutObject() 244 LayoutObject::~LayoutObject()
243 { 245 {
244 ASSERT(!m_hasAXObject); 246 ASSERT(!m_hasAXObject);
245 InstanceCounters::decrementCounter(InstanceCounters::LayoutObjectCounter); 247 InstanceCounters::decrementCounter(InstanceCounters::LayoutObjectCounter);
246 } 248 }
247 249
248 bool LayoutObject::isDescendantOf(const LayoutObject* obj) const 250 bool LayoutObject::isDescendantOf(const LayoutObject* obj) const
249 { 251 {
(...skipping 3424 matching lines...) Expand 10 before | Expand all | Expand 10 after
3674 const blink::LayoutObject* root = object1; 3676 const blink::LayoutObject* root = object1;
3675 while (root->parent()) 3677 while (root->parent())
3676 root = root->parent(); 3678 root = root->parent();
3677 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3679 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3678 } else { 3680 } else {
3679 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); 3681 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)");
3680 } 3682 }
3681 } 3683 }
3682 3684
3683 #endif 3685 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698