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

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

Issue 1508223005: Client side display item cache flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 4 years, 7 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 struct SameSizeAsLayoutObject { 133 struct SameSizeAsLayoutObject {
134 virtual ~SameSizeAsLayoutObject() { } // Allocate vtable pointer. 134 virtual ~SameSizeAsLayoutObject() { } // Allocate vtable pointer.
135 void* pointers[6]; 135 void* pointers[6];
136 #if ENABLE(ASSERT) 136 #if ENABLE(ASSERT)
137 unsigned m_debugBitfields : 2; 137 unsigned m_debugBitfields : 2;
138 #endif 138 #endif
139 unsigned m_bitfields; 139 unsigned m_bitfields;
140 unsigned m_bitfields2; 140 unsigned m_bitfields2;
141 LayoutRect rect; // Stores the previous paint invalidation rect. 141 LayoutRect rect; // Stores the previous paint invalidation rect.
142 LayoutPoint position; // Stores the previous position from the paint invalid ation container. 142 LayoutPoint position; // Stores the previous position from the paint invalid ation container.
143 DisplayItemCacheGeneration cacheGeneration;
143 }; 144 };
144 145
145 static_assert(sizeof(LayoutObject) == sizeof(SameSizeAsLayoutObject), "LayoutObj ect should stay small"); 146 static_assert(sizeof(LayoutObject) == sizeof(SameSizeAsLayoutObject), "LayoutObj ect should stay small");
146 147
147 bool LayoutObject::s_affectsParentBlock = false; 148 bool LayoutObject::s_affectsParentBlock = false;
148 149
149 typedef HashMap<const LayoutObject*, LayoutRect> SelectionPaintInvalidationMap; 150 typedef HashMap<const LayoutObject*, LayoutRect> SelectionPaintInvalidationMap;
150 static SelectionPaintInvalidationMap* selectionPaintInvalidationMap = nullptr; 151 static SelectionPaintInvalidationMap* selectionPaintInvalidationMap = nullptr;
151 152
152 // The pointer to paint properties is implemented as a global hash map temporari ly, 153 // The pointer to paint properties is implemented as a global hash map temporari ly,
(...skipping 3534 matching lines...) Expand 10 before | Expand all | Expand 10 after
3687 const blink::LayoutObject* root = object1; 3688 const blink::LayoutObject* root = object1;
3688 while (root->parent()) 3689 while (root->parent())
3689 root = root->parent(); 3690 root = root->parent();
3690 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3691 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3691 } else { 3692 } else {
3692 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); 3693 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n");
3693 } 3694 }
3694 } 3695 }
3695 3696
3696 #endif 3697 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698