Chromium Code Reviews| OLD | NEW | 
|---|---|
| 1 /* | 1 /* | 
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. | 
| 3 * | 3 * | 
| 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 
| 5 * | 5 * | 
| 6 * Other contributors: | 6 * Other contributors: | 
| 7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> | 
| 8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> | 
| 9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> | 
| 10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> | 
| (...skipping 2226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2237 } else if (!parentLayer && renderer()->isBox() && renderBox()->canBePrograma ticallyScrolled()) { | 2237 } else if (!parentLayer && renderer()->isBox() && renderBox()->canBePrograma ticallyScrolled()) { | 
| 2238 if (frameView) { | 2238 if (frameView) { | 
| 2239 Element* ownerElement = 0; | 2239 Element* ownerElement = 0; | 
| 2240 if (renderer()->document()) | 2240 if (renderer()->document()) | 
| 2241 ownerElement = renderer()->document()->ownerElement(); | 2241 ownerElement = renderer()->document()->ownerElement(); | 
| 2242 | 2242 | 
| 2243 if (ownerElement && ownerElement->renderer()) { | 2243 if (ownerElement && ownerElement->renderer()) { | 
| 2244 HTMLFrameElement* frameElement = 0; | 2244 HTMLFrameElement* frameElement = 0; | 
| 2245 | 2245 | 
| 2246 if (ownerElement->hasTagName(frameTag) || ownerElement->hasTagNa me(iframeTag)) | 2246 if (ownerElement->hasTagName(frameTag) || ownerElement->hasTagNa me(iframeTag)) | 
| 2247 frameElement = static_cast<HTMLFrameElement*>(ownerElement); | 2247 frameElement = toHTMLFrameElement(ownerElement); | 
| 
 
tkent
2013/07/17 21:17:45
We have a bad cast here though it is harmless.
ow
 
 | |
| 2248 | 2248 | 
| 2249 if (frameElementAndViewPermitScroll(frameElement, frameView)) { | 2249 if (frameElementAndViewPermitScroll(frameElement, frameView)) { | 
| 2250 LayoutRect viewRect = frameView->visibleContentRect(); | 2250 LayoutRect viewRect = frameView->visibleContentRect(); | 
| 2251 LayoutRect exposeRect = getRectToExpose(viewRect, rect, alig nX, alignY); | 2251 LayoutRect exposeRect = getRectToExpose(viewRect, rect, alig nX, alignY); | 
| 2252 | 2252 | 
| 2253 int xOffset = roundToInt(exposeRect.x()); | 2253 int xOffset = roundToInt(exposeRect.x()); | 
| 2254 int yOffset = roundToInt(exposeRect.y()); | 2254 int yOffset = roundToInt(exposeRect.y()); | 
| 2255 // Adjust offsets if they're outside of the allowable range. | 2255 // Adjust offsets if they're outside of the allowable range. | 
| 2256 xOffset = max(0, min(frameView->contentsWidth(), xOffset)); | 2256 xOffset = max(0, min(frameView->contentsWidth(), xOffset)); | 
| 2257 yOffset = max(0, min(frameView->contentsHeight(), yOffset)); | 2257 yOffset = max(0, min(frameView->contentsHeight(), yOffset)); | 
| (...skipping 4134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6392 } | 6392 } | 
| 6393 } | 6393 } | 
| 6394 | 6394 | 
| 6395 void showLayerTree(const WebCore::RenderObject* renderer) | 6395 void showLayerTree(const WebCore::RenderObject* renderer) | 
| 6396 { | 6396 { | 
| 6397 if (!renderer) | 6397 if (!renderer) | 
| 6398 return; | 6398 return; | 
| 6399 showLayerTree(renderer->enclosingLayer()); | 6399 showLayerTree(renderer->enclosingLayer()); | 
| 6400 } | 6400 } | 
| 6401 #endif | 6401 #endif | 
| OLD | NEW |