Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(55)

Unified Diff: Source/WebCore/rendering/RenderObject.cpp

Issue 359780043: WIP for IO
Patch Set: 22 tests pass Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/rendering/RenderObject.h ('k') | Source/WebCore/rendering/svg/RenderSVGForeignObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/rendering/RenderObject.cpp
diff --git a/Source/WebCore/rendering/RenderObject.cpp b/Source/WebCore/rendering/RenderObject.cpp
index cdb0262053bb4b7f4270f7aa2fca40af0405251d..45dc57e82792028e9e4bc0551f87f162ed0e4826 100644
--- a/Source/WebCore/rendering/RenderObject.cpp
+++ b/Source/WebCore/rendering/RenderObject.cpp
@@ -972,14 +972,19 @@ LayoutRect RenderObject::computeRectForRepaint(const LayoutRect& rect, const Ren
LayoutRect adjustedRect = rect;
if (parent->hasOverflowClip()) {
- downcast<RenderBox>(*parent).applyCachedClipAndScrollPositionForRepaint(adjustedRect);
- if (adjustedRect.isEmpty())
+ bool intersects = true;
+ downcast<RenderBox>(*parent).applyCachedClipAndScrollPositionForRepaint(adjustedRect, context.m_useInclusiveIntersection, &intersects);
+ if (context.m_useInclusiveIntersection)
+ *context.m_intersects = intersects;
+ else
+ intersects = !adjustedRect.isEmpty();
+ if (!intersects)
return adjustedRect;
}
return parent->computeRectForRepaint(adjustedRect, repaintContainer, context);
}
-FloatRect RenderObject::computeFloatRectForRepaint(const FloatRect&, const RenderLayerModelObject*, bool) const
+FloatRect RenderObject::computeFloatRectForRepaint(const FloatRect&, const RenderLayerModelObject*, bool, bool, bool*) const
{
ASSERT_NOT_REACHED();
return FloatRect();
« no previous file with comments | « Source/WebCore/rendering/RenderObject.h ('k') | Source/WebCore/rendering/svg/RenderSVGForeignObject.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b