| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 3285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3296 if (isLayoutView()) { | 3296 if (isLayoutView()) { |
| 3297 DoublePoint position = toLayoutView(this)->frameView()->scrollPositionDo
uble(); | 3297 DoublePoint position = toLayoutView(this)->frameView()->scrollPositionDo
uble(); |
| 3298 adjustedLocation.move(position.x(), position.y()); | 3298 adjustedLocation.move(position.x(), position.y()); |
| 3299 } | 3299 } |
| 3300 | 3300 |
| 3301 const FloatingObjectSet& floatingObjectSet = m_floatingObjects->set(); | 3301 const FloatingObjectSet& floatingObjectSet = m_floatingObjects->set(); |
| 3302 FloatingObjectSetIterator begin = floatingObjectSet.begin(); | 3302 FloatingObjectSetIterator begin = floatingObjectSet.begin(); |
| 3303 for (FloatingObjectSetIterator it = floatingObjectSet.end(); it != begin;) { | 3303 for (FloatingObjectSetIterator it = floatingObjectSet.end(); it != begin;) { |
| 3304 --it; | 3304 --it; |
| 3305 const FloatingObject& floatingObject = *it->get(); | 3305 const FloatingObject& floatingObject = *it->get(); |
| 3306 if (floatingObject.shouldPaint()) { | 3306 if (floatingObject.shouldPaint() && !floatingObject.layoutObject()->hasS
elfPaintingLayer()) { |
| 3307 LayoutUnit xOffset = xPositionForFloatIncludingMargin(floatingObject
) - floatingObject.layoutObject()->location().x(); | 3307 LayoutUnit xOffset = xPositionForFloatIncludingMargin(floatingObject
) - floatingObject.layoutObject()->location().x(); |
| 3308 LayoutUnit yOffset = yPositionForFloatIncludingMargin(floatingObject
) - floatingObject.layoutObject()->location().y(); | 3308 LayoutUnit yOffset = yPositionForFloatIncludingMargin(floatingObject
) - floatingObject.layoutObject()->location().y(); |
| 3309 LayoutPoint childPoint = flipFloatForWritingModeForChild(floatingObj
ect, adjustedLocation + LayoutSize(xOffset, yOffset)); | 3309 LayoutPoint childPoint = flipFloatForWritingModeForChild(floatingObj
ect, adjustedLocation + LayoutSize(xOffset, yOffset)); |
| 3310 if (floatingObject.layoutObject()->hitTest(result, locationInContain
er, childPoint)) { | 3310 if (floatingObject.layoutObject()->hitTest(result, locationInContain
er, childPoint)) { |
| 3311 updateHitTestResult(result, locationInContainer.point() - toLayo
utSize(childPoint)); | 3311 updateHitTestResult(result, locationInContainer.point() - toLayo
utSize(childPoint)); |
| 3312 return true; | 3312 return true; |
| 3313 } | 3313 } |
| 3314 } | 3314 } |
| 3315 } | 3315 } |
| 3316 | 3316 |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3775 if (!rect.isEmpty()) | 3775 if (!rect.isEmpty()) |
| 3776 rects.append(rect); | 3776 rects.append(rect); |
| 3777 } | 3777 } |
| 3778 } | 3778 } |
| 3779 | 3779 |
| 3780 if (inlineElementContinuation) | 3780 if (inlineElementContinuation) |
| 3781 inlineElementContinuation->addOutlineRects(rects, additionalOffset + (in
lineElementContinuation->containingBlock()->location() - location()), includeBlo
ckOverflows); | 3781 inlineElementContinuation->addOutlineRects(rects, additionalOffset + (in
lineElementContinuation->containingBlock()->location() - location()), includeBlo
ckOverflows); |
| 3782 } | 3782 } |
| 3783 | 3783 |
| 3784 } // namespace blink | 3784 } // namespace blink |
| OLD | NEW |