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

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

Issue 1363613002: Save previous paint offset in LayoutObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: No union (many compilers don't allow constructors); Fix a typo perhaps caused by switching to combiā€¦ Created 5 years, 3 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 | Annotate | Revision Log
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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 , m_node(node) 232 , m_node(node)
233 , m_parent(nullptr) 233 , m_parent(nullptr)
234 , m_previous(nullptr) 234 , m_previous(nullptr)
235 , m_next(nullptr) 235 , m_next(nullptr)
236 #if ENABLE(ASSERT) 236 #if ENABLE(ASSERT)
237 , m_hasAXObject(false) 237 , m_hasAXObject(false)
238 , m_setNeedsLayoutForbidden(false) 238 , m_setNeedsLayoutForbidden(false)
239 #endif 239 #endif
240 , m_bitfields(node) 240 , m_bitfields(node)
241 { 241 {
242 // TODO(wangxianzhu): Move this into initialization list when we enable the feature by default.
243 if (RuntimeEnabledFeatures::slimmingPaintOffsetCachingEnabled())
244 m_previousPositionFromPaintInvalidationBacking = uninitializedPaintOffse t();
245
242 #ifndef NDEBUG 246 #ifndef NDEBUG
243 layoutObjectCounter.increment(); 247 layoutObjectCounter.increment();
244 #endif 248 #endif
245 InstanceCounters::incrementCounter(InstanceCounters::LayoutObjectCounter); 249 InstanceCounters::incrementCounter(InstanceCounters::LayoutObjectCounter);
246 } 250 }
247 251
248 LayoutObject::~LayoutObject() 252 LayoutObject::~LayoutObject()
249 { 253 {
250 ASSERT(!m_hasAXObject); 254 ASSERT(!m_hasAXObject);
251 #ifndef NDEBUG 255 #ifndef NDEBUG
(...skipping 3139 matching lines...) Expand 10 before | Expand all | Expand 10 after
3391 const blink::LayoutObject* root = object1; 3395 const blink::LayoutObject* root = object1;
3392 while (root->parent()) 3396 while (root->parent())
3393 root = root->parent(); 3397 root = root->parent();
3394 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3398 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3395 } else { 3399 } else {
3396 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); 3400 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n");
3397 } 3401 }
3398 } 3402 }
3399 3403
3400 #endif 3404 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/paint/BlockPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698