| 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) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. |
| 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "core/editing/Editor.h" | 33 #include "core/editing/Editor.h" |
| 34 #include "core/editing/FrameSelection.h" | 34 #include "core/editing/FrameSelection.h" |
| 35 #include "core/editing/htmlediting.h" | 35 #include "core/editing/htmlediting.h" |
| 36 #include "core/events/OverflowEvent.h" | 36 #include "core/events/OverflowEvent.h" |
| 37 #include "core/fetch/ResourceLoadPriorityOptimizer.h" | 37 #include "core/fetch/ResourceLoadPriorityOptimizer.h" |
| 38 #include "core/frame/FrameView.h" | 38 #include "core/frame/FrameView.h" |
| 39 #include "core/frame/LocalFrame.h" | 39 #include "core/frame/LocalFrame.h" |
| 40 #include "core/frame/Settings.h" | 40 #include "core/frame/Settings.h" |
| 41 #include "core/layout/HitTestLocation.h" | 41 #include "core/layout/HitTestLocation.h" |
| 42 #include "core/layout/HitTestResult.h" | 42 #include "core/layout/HitTestResult.h" |
| 43 #include "core/layout/Layer.h" |
| 43 #include "core/layout/LayoutTableCell.h" | 44 #include "core/layout/LayoutTableCell.h" |
| 44 #include "core/layout/LayoutTheme.h" | 45 #include "core/layout/LayoutTheme.h" |
| 45 #include "core/layout/line/InlineIterator.h" | 46 #include "core/layout/line/InlineIterator.h" |
| 46 #include "core/layout/shapes/ShapeOutsideInfo.h" | 47 #include "core/layout/shapes/ShapeOutsideInfo.h" |
| 47 #include "core/page/Page.h" | 48 #include "core/page/Page.h" |
| 48 #include "core/paint/BlockPainter.h" | 49 #include "core/paint/BlockPainter.h" |
| 49 #include "core/paint/BoxPainter.h" | 50 #include "core/paint/BoxPainter.h" |
| 50 #include "core/paint/RenderDrawingRecorder.h" | 51 #include "core/paint/RenderDrawingRecorder.h" |
| 51 #include "core/rendering/InlineTextBox.h" | 52 #include "core/rendering/InlineTextBox.h" |
| 52 #include "core/rendering/PaintInfo.h" | 53 #include "core/rendering/PaintInfo.h" |
| 53 #include "core/rendering/RenderCombineText.h" | 54 #include "core/rendering/RenderCombineText.h" |
| 54 #include "core/rendering/RenderDeprecatedFlexibleBox.h" | 55 #include "core/rendering/RenderDeprecatedFlexibleBox.h" |
| 55 #include "core/rendering/RenderFlexibleBox.h" | 56 #include "core/rendering/RenderFlexibleBox.h" |
| 56 #include "core/rendering/RenderFlowThread.h" | 57 #include "core/rendering/RenderFlowThread.h" |
| 57 #include "core/rendering/RenderGrid.h" | 58 #include "core/rendering/RenderGrid.h" |
| 58 #include "core/rendering/RenderInline.h" | 59 #include "core/rendering/RenderInline.h" |
| 59 #include "core/rendering/RenderLayer.h" | |
| 60 #include "core/rendering/RenderObjectInlines.h" | 60 #include "core/rendering/RenderObjectInlines.h" |
| 61 #include "core/rendering/RenderRegion.h" | 61 #include "core/rendering/RenderRegion.h" |
| 62 #include "core/rendering/RenderTextControl.h" | 62 #include "core/rendering/RenderTextControl.h" |
| 63 #include "core/rendering/RenderTextFragment.h" | 63 #include "core/rendering/RenderTextFragment.h" |
| 64 #include "core/rendering/RenderView.h" | 64 #include "core/rendering/RenderView.h" |
| 65 #include "core/rendering/TextAutosizer.h" | 65 #include "core/rendering/TextAutosizer.h" |
| 66 #include "core/rendering/style/ContentData.h" | 66 #include "core/rendering/style/ContentData.h" |
| 67 #include "core/rendering/style/RenderStyle.h" | 67 #include "core/rendering/style/RenderStyle.h" |
| 68 #include "platform/geometry/FloatQuad.h" | 68 #include "platform/geometry/FloatQuad.h" |
| 69 #include "platform/geometry/TransformState.h" | 69 #include "platform/geometry/TransformState.h" |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 RenderBox::invalidatePaintOfSubtreesIfNeeded(childPaintInvalidationState); | 365 RenderBox::invalidatePaintOfSubtreesIfNeeded(childPaintInvalidationState); |
| 366 | 366 |
| 367 // Take care of positioned objects. This is required as PaintInvalidationSta
te keeps a single clip rect. | 367 // Take care of positioned objects. This is required as PaintInvalidationSta
te keeps a single clip rect. |
| 368 if (TrackedRendererListHashSet* positionedObjects = this->positionedObjects(
)) { | 368 if (TrackedRendererListHashSet* positionedObjects = this->positionedObjects(
)) { |
| 369 TrackedRendererListHashSet::iterator end = positionedObjects->end(); | 369 TrackedRendererListHashSet::iterator end = positionedObjects->end(); |
| 370 for (TrackedRendererListHashSet::iterator it = positionedObjects->begin(
); it != end; ++it) { | 370 for (TrackedRendererListHashSet::iterator it = positionedObjects->begin(
); it != end; ++it) { |
| 371 RenderBox* box = *it; | 371 RenderBox* box = *it; |
| 372 | 372 |
| 373 // One of the renderers we're skipping over here may be the child's
paint invalidation container, | 373 // One of the renderers we're skipping over here may be the child's
paint invalidation container, |
| 374 // so we can't pass our own paint invalidation container along. | 374 // so we can't pass our own paint invalidation container along. |
| 375 const RenderLayerModelObject& paintInvalidationContainerForChild = *
box->containerForPaintInvalidation(); | 375 const LayoutLayerModelObject& paintInvalidationContainerForChild = *
box->containerForPaintInvalidation(); |
| 376 | 376 |
| 377 // If it's a new paint invalidation container, we won't have properl
y accumulated the offset into the | 377 // If it's a new paint invalidation container, we won't have properl
y accumulated the offset into the |
| 378 // PaintInvalidationState. | 378 // PaintInvalidationState. |
| 379 // FIXME: Teach PaintInvalidationState to handle this case. crbug.co
m/371485 | 379 // FIXME: Teach PaintInvalidationState to handle this case. crbug.co
m/371485 |
| 380 if (paintInvalidationContainerForChild != childPaintInvalidationStat
e.paintInvalidationContainer()) { | 380 if (paintInvalidationContainerForChild != childPaintInvalidationStat
e.paintInvalidationContainer()) { |
| 381 ForceHorriblySlowRectMapping slowRectMapping(&childPaintInvalida
tionState); | 381 ForceHorriblySlowRectMapping slowRectMapping(&childPaintInvalida
tionState); |
| 382 PaintInvalidationState disabledPaintInvalidationState(childPaint
InvalidationState, *this, paintInvalidationContainerForChild); | 382 PaintInvalidationState disabledPaintInvalidationState(childPaint
InvalidationState, *this, paintInvalidationContainerForChild); |
| 383 box->invalidateTreeIfNeeded(disabledPaintInvalidationState); | 383 box->invalidateTreeIfNeeded(disabledPaintInvalidationState); |
| 384 continue; | 384 continue; |
| 385 } | 385 } |
| (...skipping 3084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3470 // https://bugs.webkit.org/show_bug.cgi?id=46781 | 3470 // https://bugs.webkit.org/show_bug.cgi?id=46781 |
| 3471 LayoutRect localRect(LayoutPoint(), size()); | 3471 LayoutRect localRect(LayoutPoint(), size()); |
| 3472 localRect.expand(collapsedMarginBoxLogicalOutsets()); | 3472 localRect.expand(collapsedMarginBoxLogicalOutsets()); |
| 3473 quads.append(localToAbsoluteQuad(FloatRect(localRect), 0 /* mode */, was
Fixed)); | 3473 quads.append(localToAbsoluteQuad(FloatRect(localRect), 0 /* mode */, was
Fixed)); |
| 3474 continuation()->absoluteQuads(quads, wasFixed); | 3474 continuation()->absoluteQuads(quads, wasFixed); |
| 3475 } else { | 3475 } else { |
| 3476 quads.append(RenderBox::localToAbsoluteQuad(FloatRect(0, 0, size().width
().toFloat(), size().height().toFloat()), 0 /* mode */, wasFixed)); | 3476 quads.append(RenderBox::localToAbsoluteQuad(FloatRect(0, 0, size().width
().toFloat(), size().height().toFloat()), 0 /* mode */, wasFixed)); |
| 3477 } | 3477 } |
| 3478 } | 3478 } |
| 3479 | 3479 |
| 3480 LayoutRect RenderBlock::rectWithOutlineForPaintInvalidation(const RenderLayerMod
elObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvali
dationState* paintInvalidationState) const | 3480 LayoutRect RenderBlock::rectWithOutlineForPaintInvalidation(const LayoutLayerMod
elObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvali
dationState* paintInvalidationState) const |
| 3481 { | 3481 { |
| 3482 LayoutRect r(RenderBox::rectWithOutlineForPaintInvalidation(paintInvalidatio
nContainer, outlineWidth, paintInvalidationState)); | 3482 LayoutRect r(RenderBox::rectWithOutlineForPaintInvalidation(paintInvalidatio
nContainer, outlineWidth, paintInvalidationState)); |
| 3483 if (isAnonymousBlockContinuation()) | 3483 if (isAnonymousBlockContinuation()) |
| 3484 r.inflateY(collapsedMarginBefore()); // FIXME: This is wrong for vertica
l writing-modes. | 3484 r.inflateY(collapsedMarginBefore()); // FIXME: This is wrong for vertica
l writing-modes. |
| 3485 return r; | 3485 return r; |
| 3486 } | 3486 } |
| 3487 | 3487 |
| 3488 RenderObject* RenderBlock::hoverAncestor() const | 3488 RenderObject* RenderBlock::hoverAncestor() const |
| 3489 { | 3489 { |
| 3490 return isAnonymousBlockContinuation() ? continuation() : RenderBox::hoverAnc
estor(); | 3490 return isAnonymousBlockContinuation() ? continuation() : RenderBox::hoverAnc
estor(); |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3944 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const | 3944 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const |
| 3945 { | 3945 { |
| 3946 showRenderObject(); | 3946 showRenderObject(); |
| 3947 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) | 3947 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) |
| 3948 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); | 3948 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); |
| 3949 } | 3949 } |
| 3950 | 3950 |
| 3951 #endif | 3951 #endif |
| 3952 | 3952 |
| 3953 } // namespace blink | 3953 } // namespace blink |
| OLD | NEW |