| OLD | NEW |
| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 #include "core/rendering/compositing/RenderLayerCompositor.h" | 78 #include "core/rendering/compositing/RenderLayerCompositor.h" |
| 79 #include "core/rendering/style/ContentData.h" | 79 #include "core/rendering/style/ContentData.h" |
| 80 #include "core/rendering/style/ShadowList.h" | 80 #include "core/rendering/style/ShadowList.h" |
| 81 #include "platform/JSONValues.h" | 81 #include "platform/JSONValues.h" |
| 82 #include "platform/Partitions.h" | 82 #include "platform/Partitions.h" |
| 83 #include "platform/RuntimeEnabledFeatures.h" | 83 #include "platform/RuntimeEnabledFeatures.h" |
| 84 #include "platform/TraceEvent.h" | 84 #include "platform/TraceEvent.h" |
| 85 #include "platform/TracedValue.h" | 85 #include "platform/TracedValue.h" |
| 86 #include "platform/geometry/TransformState.h" | 86 #include "platform/geometry/TransformState.h" |
| 87 #include "platform/graphics/GraphicsContext.h" | 87 #include "platform/graphics/GraphicsContext.h" |
| 88 #include "platform/graphics/paint/DisplayItemList.h" |
| 88 #include "wtf/RefCountedLeakCounter.h" | 89 #include "wtf/RefCountedLeakCounter.h" |
| 89 #include "wtf/text/StringBuilder.h" | 90 #include "wtf/text/StringBuilder.h" |
| 90 #include "wtf/text/WTFString.h" | 91 #include "wtf/text/WTFString.h" |
| 91 #include <algorithm> | 92 #include <algorithm> |
| 92 #ifndef NDEBUG | 93 #ifndef NDEBUG |
| 93 #include <stdio.h> | 94 #include <stdio.h> |
| 94 #endif | 95 #endif |
| 95 | 96 |
| 96 namespace blink { | 97 namespace blink { |
| 97 | 98 |
| (...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1114 return value; | 1115 return value; |
| 1115 } | 1116 } |
| 1116 | 1117 |
| 1117 LayoutRect RenderObject::computePaintInvalidationRect(const RenderLayerModelObje
ct* paintInvalidationContainer, const PaintInvalidationState* paintInvalidationS
tate) const | 1118 LayoutRect RenderObject::computePaintInvalidationRect(const RenderLayerModelObje
ct* paintInvalidationContainer, const PaintInvalidationState* paintInvalidationS
tate) const |
| 1118 { | 1119 { |
| 1119 return clippedOverflowRectForPaintInvalidation(paintInvalidationContainer, p
aintInvalidationState); | 1120 return clippedOverflowRectForPaintInvalidation(paintInvalidationContainer, p
aintInvalidationState); |
| 1120 } | 1121 } |
| 1121 | 1122 |
| 1122 void RenderObject::invalidatePaintUsingContainer(const RenderLayerModelObject* p
aintInvalidationContainer, const LayoutRect& r, PaintInvalidationReason invalida
tionReason) const | 1123 void RenderObject::invalidatePaintUsingContainer(const RenderLayerModelObject* p
aintInvalidationContainer, const LayoutRect& r, PaintInvalidationReason invalida
tionReason) const |
| 1123 { | 1124 { |
| 1124 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) | 1125 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) { |
| 1125 view()->viewDisplayList().invalidate(this); | 1126 if (RenderLayer* container = enclosingLayer()->enclosingLayerForPaintInv
alidationCrossingFrameBoundaries()) |
| 1127 container->graphicsLayerBacking()->displayItemList().invalidate(disp
layItemClient()); |
| 1128 } |
| 1126 | 1129 |
| 1127 if (r.isEmpty()) | 1130 if (r.isEmpty()) |
| 1128 return; | 1131 return; |
| 1129 | 1132 |
| 1130 RELEASE_ASSERT(isRooted()); | 1133 RELEASE_ASSERT(isRooted()); |
| 1131 | 1134 |
| 1132 // FIXME: Unify "devtools.timeline.invalidationTracking" and "blink.invalida
tion". crbug.com/413527. | 1135 // FIXME: Unify "devtools.timeline.invalidationTracking" and "blink.invalida
tion". crbug.com/413527. |
| 1133 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidati
onTracking"), | 1136 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidati
onTracking"), |
| 1134 "PaintInvalidationTracking", | 1137 "PaintInvalidationTracking", |
| 1135 "data", InspectorPaintInvalidationTrackingEvent::data(this, paintInvalid
ationContainer)); | 1138 "data", InspectorPaintInvalidationTrackingEvent::data(this, paintInvalid
ationContainer)); |
| (...skipping 2014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3150 { | 3153 { |
| 3151 if (object1) { | 3154 if (object1) { |
| 3152 const blink::RenderObject* root = object1; | 3155 const blink::RenderObject* root = object1; |
| 3153 while (root->parent()) | 3156 while (root->parent()) |
| 3154 root = root->parent(); | 3157 root = root->parent(); |
| 3155 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3158 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
| 3156 } | 3159 } |
| 3157 } | 3160 } |
| 3158 | 3161 |
| 3159 #endif | 3162 #endif |
| OLD | NEW |