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) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. |
8 * All rights reserved. | 8 * All rights reserved. |
9 * (C) 2007 Eric Seidel (eric@webkit.org) | 9 * (C) 2007 Eric Seidel (eric@webkit.org) |
10 * | 10 * |
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1113 IntRect rect(0, 0, viewportSize.width(), viewportSize.height()); | 1113 IntRect rect(0, 0, viewportSize.width(), viewportSize.height()); |
1114 // We don't use absoluteBoundingBoxRect() because it can return an IntRect | 1114 // We don't use absoluteBoundingBoxRect() because it can return an IntRect |
1115 // larger the actual size by 1px. crbug.com/470503 | 1115 // larger the actual size by 1px. crbug.com/470503 |
1116 rect.intersect(document().view()->contentsToViewport( | 1116 rect.intersect(document().view()->contentsToViewport( |
1117 roundedIntRect(layoutObject()->absoluteBoundingBoxFloatRect()))); | 1117 roundedIntRect(layoutObject()->absoluteBoundingBoxFloatRect()))); |
1118 return rect; | 1118 return rect; |
1119 } | 1119 } |
1120 | 1120 |
1121 void Element::clientQuads(Vector<FloatQuad>& quads) { | 1121 void Element::clientQuads(Vector<FloatQuad>& quads) { |
1122 document().updateStyleAndLayoutIgnorePendingStylesheetsForNode(this); | 1122 document().updateStyleAndLayoutIgnorePendingStylesheetsForNode(this); |
1123 FrameView* view = document().view(); | |
flackr
2017/01/18 21:11:10
nit: We tend to use the following style to scope c
smcgruer
2017/01/18 21:17:13
Done.
| |
1124 if (view) | |
1125 view->updateLifecycleToCompositingCleanPlusScrolling(); | |
flackr
2017/01/18 21:11:10
Was this call necessary? Does updateAllLifecyclePh
smcgruer
2017/01/18 21:17:13
I was aiming for minimal lifecycle update. updateA
flackr
2017/01/18 21:38:05
Oops, you are right, this function seems to advanc
| |
1123 | 1126 |
1124 LayoutObject* elementLayoutObject = layoutObject(); | 1127 LayoutObject* elementLayoutObject = layoutObject(); |
1125 if (!elementLayoutObject) | 1128 if (!elementLayoutObject) |
1126 return; | 1129 return; |
1127 | 1130 |
1128 if (isSVGElement() && !elementLayoutObject->isSVGRoot()) { | 1131 if (isSVGElement() && !elementLayoutObject->isSVGRoot()) { |
1129 // Get the bounding rectangle from the SVG model. | 1132 // Get the bounding rectangle from the SVG model. |
1130 if (toSVGElement(this)->isSVGGraphicsElement()) | 1133 if (toSVGElement(this)->isSVGGraphicsElement()) |
1131 quads.push_back(elementLayoutObject->localToAbsoluteQuad( | 1134 quads.push_back(elementLayoutObject->localToAbsoluteQuad( |
1132 elementLayoutObject->objectBoundingBox())); | 1135 elementLayoutObject->objectBoundingBox())); |
(...skipping 2997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4130 } | 4133 } |
4131 | 4134 |
4132 DEFINE_TRACE_WRAPPERS(Element) { | 4135 DEFINE_TRACE_WRAPPERS(Element) { |
4133 if (hasRareData()) { | 4136 if (hasRareData()) { |
4134 visitor->traceWrappers(elementRareData()); | 4137 visitor->traceWrappers(elementRareData()); |
4135 } | 4138 } |
4136 ContainerNode::traceWrappers(visitor); | 4139 ContainerNode::traceWrappers(visitor); |
4137 } | 4140 } |
4138 | 4141 |
4139 } // namespace blink | 4142 } // namespace blink |
OLD | NEW |