| 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) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
| 7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 7 * Copyright (C) 2013 Adobe Systems Incorporated. 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 newRect = layer()->scrollableArea()->exposeRect(rect, alignX, alignY); | 263 newRect = layer()->scrollableArea()->exposeRect(rect, alignX, alignY); |
| 264 } | 264 } |
| 265 | 265 |
| 266 if (frame()->page()->autoscrollController().autoscrollInProgress()) | 266 if (frame()->page()->autoscrollController().autoscrollInProgress()) |
| 267 parentBox = enclosingScrollableBox(); | 267 parentBox = enclosingScrollableBox(); |
| 268 | 268 |
| 269 if (parentBox) | 269 if (parentBox) |
| 270 parentBox->scrollRectToVisible(newRect, alignX, alignY); | 270 parentBox->scrollRectToVisible(newRect, alignX, alignY); |
| 271 } | 271 } |
| 272 | 272 |
| 273 void RenderBox::absoluteRects(Vector<IntRect>& rects, const LayoutPoint& accumul
atedOffset) const | |
| 274 { | |
| 275 rects.append(pixelSnappedIntRect(accumulatedOffset, size())); | |
| 276 } | |
| 277 | |
| 278 void RenderBox::absoluteQuads(Vector<FloatQuad>& quads) const | 273 void RenderBox::absoluteQuads(Vector<FloatQuad>& quads) const |
| 279 { | 274 { |
| 280 quads.append(localToAbsoluteQuad(FloatRect(0, 0, width().toFloat(), height()
.toFloat()), 0 /* mode */)); | 275 quads.append(localToAbsoluteQuad(FloatRect(0, 0, width().toFloat(), height()
.toFloat()), 0 /* mode */)); |
| 281 } | 276 } |
| 282 | 277 |
| 283 void RenderBox::updateLayerTransformAfterLayout() | 278 void RenderBox::updateLayerTransformAfterLayout() |
| 284 { | 279 { |
| 285 // Transform-origin depends on box size, so we need to update the layer tran
sform after layout. | 280 // Transform-origin depends on box size, so we need to update the layer tran
sform after layout. |
| 286 if (hasLayer()) | 281 if (hasLayer()) |
| 287 layer()->updateTransformationMatrix(); | 282 layer()->updateTransformationMatrix(); |
| (...skipping 2657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2945 | 2940 |
| 2946 RenderBox::BoxDecorationData::BoxDecorationData(const RenderStyle& style) | 2941 RenderBox::BoxDecorationData::BoxDecorationData(const RenderStyle& style) |
| 2947 { | 2942 { |
| 2948 backgroundColor = style.colorIncludingFallback(CSSPropertyBackgroundColor); | 2943 backgroundColor = style.colorIncludingFallback(CSSPropertyBackgroundColor); |
| 2949 hasBackground = backgroundColor.alpha() || style.hasBackgroundImage(); | 2944 hasBackground = backgroundColor.alpha() || style.hasBackgroundImage(); |
| 2950 ASSERT(hasBackground == style.hasBackground()); | 2945 ASSERT(hasBackground == style.hasBackground()); |
| 2951 hasBorder = style.hasBorder(); | 2946 hasBorder = style.hasBorder(); |
| 2952 } | 2947 } |
| 2953 | 2948 |
| 2954 } // namespace blink | 2949 } // namespace blink |
| OLD | NEW |