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

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: wait in renderer 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 3395 matching lines...) Expand 10 before | Expand all | Expand 10 after
3645 const blink::LayoutObject* root = object1; 3647 const blink::LayoutObject* root = object1;
3646 while (root->parent()) 3648 while (root->parent())
3647 root = root->parent(); 3649 root = root->parent();
3648 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3650 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3649 } else { 3651 } else {
3650 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); 3652 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)");
3651 } 3653 }
3652 } 3654 }
3653 3655
3654 #endif 3656 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698