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

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: rebase 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 #if ENABLE(ASSERT) 231 #if ENABLE(ASSERT)
232 , m_hasAXObject(false) 232 , m_hasAXObject(false)
233 , m_setNeedsLayoutForbidden(false) 233 , m_setNeedsLayoutForbidden(false)
234 #endif 234 #endif
235 , m_bitfields(node) 235 , m_bitfields(node)
236 { 236 {
237 // TODO(wangxianzhu): Move this into initialization list when we enable the feature by default. 237 // TODO(wangxianzhu): Move this into initialization list when we enable the feature by default.
238 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) 238 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled())
239 m_previousPositionFromPaintInvalidationBacking = uninitializedPaintOffse t(); 239 m_previousPositionFromPaintInvalidationBacking = uninitializedPaintOffse t();
240 InstanceCounters::incrementCounter(InstanceCounters::LayoutObjectCounter); 240 InstanceCounters::incrementCounter(InstanceCounters::LayoutObjectCounter);
241 if (m_node)
242 frameView()->incrementLayoutObjectCount();
241 } 243 }
242 244
243 LayoutObject::~LayoutObject() 245 LayoutObject::~LayoutObject()
244 { 246 {
245 ASSERT(!m_hasAXObject); 247 ASSERT(!m_hasAXObject);
246 InstanceCounters::decrementCounter(InstanceCounters::LayoutObjectCounter); 248 InstanceCounters::decrementCounter(InstanceCounters::LayoutObjectCounter);
247 } 249 }
248 250
249 bool LayoutObject::isDescendantOf(const LayoutObject* obj) const 251 bool LayoutObject::isDescendantOf(const LayoutObject* obj) const
250 { 252 {
(...skipping 3229 matching lines...) Expand 10 before | Expand all | Expand 10 after
3480 const blink::LayoutObject* root = object1; 3482 const blink::LayoutObject* root = object1;
3481 while (root->parent()) 3483 while (root->parent())
3482 root = root->parent(); 3484 root = root->parent();
3483 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3485 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3484 } else { 3486 } else {
3485 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); 3487 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)");
3486 } 3488 }
3487 } 3489 }
3488 3490
3489 #endif 3491 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698