| OLD | NEW |
| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #ifndef RenderObject_h | 26 #ifndef RenderObject_h |
| 27 #define RenderObject_h | 27 #define RenderObject_h |
| 28 | 28 |
| 29 #include "core/dom/Document.h" | 29 #include "core/dom/Document.h" |
| 30 #include "core/dom/DocumentLifecycle.h" | 30 #include "core/dom/DocumentLifecycle.h" |
| 31 #include "core/dom/Element.h" | 31 #include "core/dom/Element.h" |
| 32 #include "core/editing/TextAffinity.h" | 32 #include "core/editing/TextAffinity.h" |
| 33 #include "core/fetch/ImageResourceClient.h" | 33 #include "core/fetch/ImageResourceClient.h" |
| 34 #include "core/html/HTMLElement.h" | 34 #include "core/html/HTMLElement.h" |
| 35 #include "core/inspector/InspectorTraceEvents.h" |
| 35 #include "core/rendering/HitTestRequest.h" | 36 #include "core/rendering/HitTestRequest.h" |
| 36 #include "core/rendering/PaintInvalidationState.h" | 37 #include "core/rendering/PaintInvalidationState.h" |
| 37 #include "core/rendering/PaintPhase.h" | 38 #include "core/rendering/PaintPhase.h" |
| 38 #include "core/rendering/RenderObjectChildList.h" | 39 #include "core/rendering/RenderObjectChildList.h" |
| 39 #include "core/rendering/ScrollAlignment.h" | 40 #include "core/rendering/ScrollAlignment.h" |
| 40 #include "core/rendering/SubtreeLayoutScope.h" | 41 #include "core/rendering/SubtreeLayoutScope.h" |
| 41 #include "core/rendering/compositing/CompositingState.h" | 42 #include "core/rendering/compositing/CompositingState.h" |
| 42 #include "core/rendering/compositing/CompositingTriggers.h" | 43 #include "core/rendering/compositing/CompositingTriggers.h" |
| 43 #include "core/rendering/style/RenderStyle.h" | 44 #include "core/rendering/style/RenderStyle.h" |
| 44 #include "core/rendering/style/StyleInheritedData.h" | 45 #include "core/rendering/style/StyleInheritedData.h" |
| (...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1403 } | 1404 } |
| 1404 | 1405 |
| 1405 // setNeedsLayout() won't cause full paint invalidations as | 1406 // setNeedsLayout() won't cause full paint invalidations as |
| 1406 // setNeedsLayoutAndFullPaintInvalidation() does. Otherwise the two methods are
identical. | 1407 // setNeedsLayoutAndFullPaintInvalidation() does. Otherwise the two methods are
identical. |
| 1407 inline void RenderObject::setNeedsLayout(MarkingBehavior markParents, SubtreeLay
outScope* layouter) | 1408 inline void RenderObject::setNeedsLayout(MarkingBehavior markParents, SubtreeLay
outScope* layouter) |
| 1408 { | 1409 { |
| 1409 ASSERT(!isSetNeedsLayoutForbidden()); | 1410 ASSERT(!isSetNeedsLayoutForbidden()); |
| 1410 bool alreadyNeededLayout = m_bitfields.selfNeedsLayout(); | 1411 bool alreadyNeededLayout = m_bitfields.selfNeedsLayout(); |
| 1411 setSelfNeedsLayout(true); | 1412 setSelfNeedsLayout(true); |
| 1412 if (!alreadyNeededLayout) { | 1413 if (!alreadyNeededLayout) { |
| 1414 TRACE_EVENT_INSTANT1( |
| 1415 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"), |
| 1416 "LayoutInvalidationTracking", |
| 1417 "data", |
| 1418 InspectorLayoutInvalidationTrackingEvent::data(this)); |
| 1413 if (markParents == MarkContainingBlockChain && (!layouter || layouter->r
oot() != this)) | 1419 if (markParents == MarkContainingBlockChain && (!layouter || layouter->r
oot() != this)) |
| 1414 markContainingBlocksForLayout(true, 0, layouter); | 1420 markContainingBlocksForLayout(true, 0, layouter); |
| 1415 } | 1421 } |
| 1416 } | 1422 } |
| 1417 | 1423 |
| 1418 inline void RenderObject::setNeedsLayoutAndFullPaintInvalidation(MarkingBehavior
markParents, SubtreeLayoutScope* layouter) | 1424 inline void RenderObject::setNeedsLayoutAndFullPaintInvalidation(MarkingBehavior
markParents, SubtreeLayoutScope* layouter) |
| 1419 { | 1425 { |
| 1420 setNeedsLayout(markParents, layouter); | 1426 setNeedsLayout(markParents, layouter); |
| 1421 setShouldDoFullPaintInvalidation(true); | 1427 setShouldDoFullPaintInvalidation(true); |
| 1422 } | 1428 } |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1559 void showTree(const blink::RenderObject*); | 1565 void showTree(const blink::RenderObject*); |
| 1560 void showLineTree(const blink::RenderObject*); | 1566 void showLineTree(const blink::RenderObject*); |
| 1561 void showRenderTree(const blink::RenderObject* object1); | 1567 void showRenderTree(const blink::RenderObject* object1); |
| 1562 // We don't make object2 an optional parameter so that showRenderTree | 1568 // We don't make object2 an optional parameter so that showRenderTree |
| 1563 // can be called from gdb easily. | 1569 // can be called from gdb easily. |
| 1564 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); | 1570 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); |
| 1565 | 1571 |
| 1566 #endif | 1572 #endif |
| 1567 | 1573 |
| 1568 #endif // RenderObject_h | 1574 #endif // RenderObject_h |
| OLD | NEW |