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

Side by Side Diff: Source/core/rendering/RenderObject.h

Issue 474793002: Add GraphicsLayerDebugInfo::includesNewPaintInvalidation to distinguish paint from new RenderObjects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: reset from FrameView Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 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) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 bool isTablePart() const { return isTableCell() || isRenderTableCol() || isT ableCaption() || isTableRow() || isTableSection(); } 424 bool isTablePart() const { return isTableCell() || isRenderTableCol() || isT ableCaption() || isTableRow() || isTableSection(); }
425 425
426 inline bool isBeforeContent() const; 426 inline bool isBeforeContent() const;
427 inline bool isAfterContent() const; 427 inline bool isAfterContent() const;
428 inline bool isBeforeOrAfterContent() const; 428 inline bool isBeforeOrAfterContent() const;
429 static inline bool isAfterContent(const RenderObject* obj) { return obj && o bj->isAfterContent(); } 429 static inline bool isAfterContent(const RenderObject* obj) { return obj && o bj->isAfterContent(); }
430 430
431 bool hasCounterNodeMap() const { return m_bitfields.hasCounterNodeMap(); } 431 bool hasCounterNodeMap() const { return m_bitfields.hasCounterNodeMap(); }
432 void setHasCounterNodeMap(bool hasCounterNodeMap) { m_bitfields.setHasCounte rNodeMap(hasCounterNodeMap); } 432 void setHasCounterNodeMap(bool hasCounterNodeMap) { m_bitfields.setHasCounte rNodeMap(hasCounterNodeMap); }
433 bool everHadLayout() const { return m_bitfields.everHadLayout(); } 433 bool everHadLayout() const { return m_bitfields.everHadLayout(); }
434 bool hadPaintInvalidation() const { return m_bitfields.hadPaintInvalidation( ); }
434 435
435 bool childrenInline() const { return m_bitfields.childrenInline(); } 436 bool childrenInline() const { return m_bitfields.childrenInline(); }
436 void setChildrenInline(bool b) { m_bitfields.setChildrenInline(b); } 437 void setChildrenInline(bool b) { m_bitfields.setChildrenInline(b); }
437 bool hasColumns() const { return m_bitfields.hasColumns(); } 438 bool hasColumns() const { return m_bitfields.hasColumns(); }
438 void setHasColumns(bool b = true) { m_bitfields.setHasColumns(b); } 439 void setHasColumns(bool b = true) { m_bitfields.setHasColumns(b); }
439 440
440 bool alwaysCreateLineBoxesForRenderInline() const 441 bool alwaysCreateLineBoxesForRenderInline() const
441 { 442 {
442 ASSERT(isRenderInline()); 443 ASSERT(isRenderInline());
443 return m_bitfields.alwaysCreateLineBoxesForRenderInline(); 444 return m_bitfields.alwaysCreateLineBoxesForRenderInline();
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
1292 ADD_BOOLEAN_BITFIELD(horizontalWritingMode, HorizontalWritingMode); 1293 ADD_BOOLEAN_BITFIELD(horizontalWritingMode, HorizontalWritingMode);
1293 ADD_BOOLEAN_BITFIELD(isDragging, IsDragging); 1294 ADD_BOOLEAN_BITFIELD(isDragging, IsDragging);
1294 1295
1295 ADD_BOOLEAN_BITFIELD(hasLayer, HasLayer); 1296 ADD_BOOLEAN_BITFIELD(hasLayer, HasLayer);
1296 ADD_BOOLEAN_BITFIELD(hasOverflowClip, HasOverflowClip); // Set in the ca se of overflow:auto/scroll/hidden 1297 ADD_BOOLEAN_BITFIELD(hasOverflowClip, HasOverflowClip); // Set in the ca se of overflow:auto/scroll/hidden
1297 ADD_BOOLEAN_BITFIELD(hasTransform, HasTransform); 1298 ADD_BOOLEAN_BITFIELD(hasTransform, HasTransform);
1298 ADD_BOOLEAN_BITFIELD(hasReflection, HasReflection); 1299 ADD_BOOLEAN_BITFIELD(hasReflection, HasReflection);
1299 1300
1300 ADD_BOOLEAN_BITFIELD(hasCounterNodeMap, HasCounterNodeMap); 1301 ADD_BOOLEAN_BITFIELD(hasCounterNodeMap, HasCounterNodeMap);
1301 ADD_BOOLEAN_BITFIELD(everHadLayout, EverHadLayout); 1302 ADD_BOOLEAN_BITFIELD(everHadLayout, EverHadLayout);
1303 ADD_BOOLEAN_BITFIELD(hadPaintInvalidation, HadPaintInvalidation);
1302 ADD_BOOLEAN_BITFIELD(ancestorLineBoxDirty, AncestorLineBoxDirty); 1304 ADD_BOOLEAN_BITFIELD(ancestorLineBoxDirty, AncestorLineBoxDirty);
1303 1305
1304 ADD_BOOLEAN_BITFIELD(layoutDidGetCalled, LayoutDidGetCalled); 1306 ADD_BOOLEAN_BITFIELD(layoutDidGetCalled, LayoutDidGetCalled);
1305 1307
1306 ADD_BOOLEAN_BITFIELD(hasPendingResourceUpdate, HasPendingResourceUpdate) ; 1308 ADD_BOOLEAN_BITFIELD(hasPendingResourceUpdate, HasPendingResourceUpdate) ;
1307 1309
1308 // from RenderBlock 1310 // from RenderBlock
1309 ADD_BOOLEAN_BITFIELD(childrenInline, ChildrenInline); 1311 ADD_BOOLEAN_BITFIELD(childrenInline, ChildrenInline);
1310 ADD_BOOLEAN_BITFIELD(hasColumns, HasColumns); 1312 ADD_BOOLEAN_BITFIELD(hasColumns, HasColumns);
1311 1313
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1344 1346
1345 RenderObjectBitfields m_bitfields; 1347 RenderObjectBitfields m_bitfields;
1346 1348
1347 void setSelfNeedsLayout(bool b) { m_bitfields.setSelfNeedsLayout(b); } 1349 void setSelfNeedsLayout(bool b) { m_bitfields.setSelfNeedsLayout(b); }
1348 void setNeedsPositionedMovementLayout(bool b) { m_bitfields.setNeedsPosition edMovementLayout(b); } 1350 void setNeedsPositionedMovementLayout(bool b) { m_bitfields.setNeedsPosition edMovementLayout(b); }
1349 void setNormalChildNeedsLayout(bool b) { m_bitfields.setNormalChildNeedsLayo ut(b); } 1351 void setNormalChildNeedsLayout(bool b) { m_bitfields.setNormalChildNeedsLayo ut(b); }
1350 void setPosChildNeedsLayout(bool b) { m_bitfields.setPosChildNeedsLayout(b); } 1352 void setPosChildNeedsLayout(bool b) { m_bitfields.setPosChildNeedsLayout(b); }
1351 void setNeedsSimplifiedNormalFlowLayout(bool b) { m_bitfields.setNeedsSimpli fiedNormalFlowLayout(b); } 1353 void setNeedsSimplifiedNormalFlowLayout(bool b) { m_bitfields.setNeedsSimpli fiedNormalFlowLayout(b); }
1352 void setIsDragging(bool b) { m_bitfields.setIsDragging(b); } 1354 void setIsDragging(bool b) { m_bitfields.setIsDragging(b); }
1353 void setEverHadLayout(bool b) { m_bitfields.setEverHadLayout(b); } 1355 void setEverHadLayout(bool b) { m_bitfields.setEverHadLayout(b); }
1356 void setHadPaintInvalidation(bool b) { m_bitfields.setHadPaintInvalidation(b ); }
1354 void setShouldInvalidateOverflowForPaint(bool b) { m_bitfields.setShouldInva lidateOverflowForPaint(b); } 1357 void setShouldInvalidateOverflowForPaint(bool b) { m_bitfields.setShouldInva lidateOverflowForPaint(b); }
1355 void setSelfNeedsOverflowRecalcAfterStyleChange(bool b) { m_bitfields.setSel fNeedsOverflowRecalcAfterStyleChange(b); } 1358 void setSelfNeedsOverflowRecalcAfterStyleChange(bool b) { m_bitfields.setSel fNeedsOverflowRecalcAfterStyleChange(b); }
1356 void setChildNeedsOverflowRecalcAfterStyleChange(bool b) { m_bitfields.setCh ildNeedsOverflowRecalcAfterStyleChange(b); } 1359 void setChildNeedsOverflowRecalcAfterStyleChange(bool b) { m_bitfields.setCh ildNeedsOverflowRecalcAfterStyleChange(b); }
1357 1360
1358 private: 1361 private:
1359 // Store state between styleWillChange and styleDidChange 1362 // Store state between styleWillChange and styleDidChange
1360 static bool s_affectsParentBlock; 1363 static bool s_affectsParentBlock;
1361 1364
1362 // This stores the paint invalidation rect from the previous layout. 1365 // This stores the paint invalidation rect from the previous layout.
1363 LayoutRect m_previousPaintInvalidationRect; 1366 LayoutRect m_previousPaintInvalidationRect;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1571 void showTree(const blink::RenderObject*); 1574 void showTree(const blink::RenderObject*);
1572 void showLineTree(const blink::RenderObject*); 1575 void showLineTree(const blink::RenderObject*);
1573 void showRenderTree(const blink::RenderObject* object1); 1576 void showRenderTree(const blink::RenderObject* object1);
1574 // We don't make object2 an optional parameter so that showRenderTree 1577 // We don't make object2 an optional parameter so that showRenderTree
1575 // can be called from gdb easily. 1578 // can be called from gdb easily.
1576 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 1579 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
1577 1580
1578 #endif 1581 #endif
1579 1582
1580 #endif // RenderObject_h 1583 #endif // RenderObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698