| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 3313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3324 paintScrollbar(scrollableArea->horizontalScrollbar(), builder.context(), | 3324 paintScrollbar(scrollableArea->horizontalScrollbar(), builder.context(), |
| 3325 interestRect); | 3325 interestRect); |
| 3326 } else if (graphicsLayer == layerForVerticalScrollbar()) { | 3326 } else if (graphicsLayer == layerForVerticalScrollbar()) { |
| 3327 paintScrollbar(scrollableArea->verticalScrollbar(), builder.context(), | 3327 paintScrollbar(scrollableArea->verticalScrollbar(), builder.context(), |
| 3328 interestRect); | 3328 interestRect); |
| 3329 } else if (graphicsLayer == layerForScrollCorner()) { | 3329 } else if (graphicsLayer == layerForScrollCorner()) { |
| 3330 // Note that scroll corners always paint into local space, whereas | 3330 // Note that scroll corners always paint into local space, whereas |
| 3331 // scrollbars paint in the space of their containing frame. | 3331 // scrollbars paint in the space of their containing frame. |
| 3332 IntPoint scrollCornerAndResizerLocation = | 3332 IntPoint scrollCornerAndResizerLocation = |
| 3333 scrollableArea->scrollCornerAndResizerRect().location(); | 3333 scrollableArea->scrollCornerAndResizerRect().location(); |
| 3334 CullRect cullRect(enclosingIntRect(interestRect)); | 3334 CullRect cullRect(interestRect); |
| 3335 ScrollableAreaPainter(*scrollableArea) | 3335 ScrollableAreaPainter(*scrollableArea) |
| 3336 .paintScrollCorner(builder.context(), -scrollCornerAndResizerLocation, | 3336 .paintScrollCorner(builder.context(), -scrollCornerAndResizerLocation, |
| 3337 cullRect); | 3337 cullRect); |
| 3338 ScrollableAreaPainter(*scrollableArea) | 3338 ScrollableAreaPainter(*scrollableArea) |
| 3339 .paintResizer(builder.context(), -scrollCornerAndResizerLocation, | 3339 .paintResizer(builder.context(), -scrollCornerAndResizerLocation, |
| 3340 cullRect); | 3340 cullRect); |
| 3341 } | 3341 } |
| 3342 // Replay the painted scrollbar content with the GraphicsLayer backing as the | 3342 // Replay the painted scrollbar content with the GraphicsLayer backing as the |
| 3343 // DisplayItemClient in order for the resulting DrawingDisplayItem to produce | 3343 // DisplayItemClient in order for the resulting DrawingDisplayItem to produce |
| 3344 // the correct visualRect (i.e., the bounds of the involved GraphicsLayer). | 3344 // the correct visualRect (i.e., the bounds of the involved GraphicsLayer). |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3546 } else if (graphicsLayer == m_decorationOutlineLayer.get()) { | 3546 } else if (graphicsLayer == m_decorationOutlineLayer.get()) { |
| 3547 name = "Decoration Layer"; | 3547 name = "Decoration Layer"; |
| 3548 } else { | 3548 } else { |
| 3549 NOTREACHED(); | 3549 NOTREACHED(); |
| 3550 } | 3550 } |
| 3551 | 3551 |
| 3552 return name; | 3552 return name; |
| 3553 } | 3553 } |
| 3554 | 3554 |
| 3555 } // namespace blink | 3555 } // namespace blink |
| OLD | NEW |