OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 // Reset the document's scrollbars back to our defaults before we yield the
floor. | 298 // Reset the document's scrollbars back to our defaults before we yield the
floor. |
299 m_firstLayout = true; | 299 m_firstLayout = true; |
300 setScrollbarsSuppressed(true); | 300 setScrollbarsSuppressed(true); |
301 if (m_canHaveScrollbars) | 301 if (m_canHaveScrollbars) |
302 setScrollbarModes(ScrollbarAuto, ScrollbarAuto); | 302 setScrollbarModes(ScrollbarAuto, ScrollbarAuto); |
303 else | 303 else |
304 setScrollbarModes(ScrollbarAlwaysOff, ScrollbarAlwaysOff); | 304 setScrollbarModes(ScrollbarAlwaysOff, ScrollbarAlwaysOff); |
305 setScrollbarsSuppressed(false); | 305 setScrollbarsSuppressed(false); |
306 } | 306 } |
307 | 307 |
308 void FrameView::resetScrollbarsAndClearContentsSize() | |
309 { | |
310 resetScrollbars(); | |
311 | |
312 setScrollbarsSuppressed(true); | |
313 setContentsSize(IntSize()); | |
314 setScrollbarsSuppressed(false); | |
315 } | |
316 | |
317 void FrameView::init() | 308 void FrameView::init() |
318 { | 309 { |
319 reset(); | 310 reset(); |
320 | 311 |
321 m_margins = LayoutSize(-1, -1); // undefined | 312 m_margins = LayoutSize(-1, -1); // undefined |
322 m_size = LayoutSize(); | 313 m_size = LayoutSize(); |
323 | 314 |
324 // Propagate the marginwidth/height and scrolling modes to the view. | 315 // Propagate the marginwidth/height and scrolling modes to the view. |
325 Element* ownerElement = m_frame ? m_frame->ownerElement() : 0; | 316 Element* ownerElement = m_frame ? m_frame->ownerElement() : 0; |
326 if (ownerElement && (ownerElement->hasTagName(frameTag) || ownerElement->has
TagName(iframeTag))) { | 317 if (ownerElement && (ownerElement->hasTagName(frameTag) || ownerElement->has
TagName(iframeTag))) { |
(...skipping 3055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3382 } | 3373 } |
3383 | 3374 |
3384 AXObjectCache* FrameView::axObjectCache() const | 3375 AXObjectCache* FrameView::axObjectCache() const |
3385 { | 3376 { |
3386 if (frame() && frame()->document()) | 3377 if (frame() && frame()->document()) |
3387 return frame()->document()->existingAXObjectCache(); | 3378 return frame()->document()->existingAXObjectCache(); |
3388 return 0; | 3379 return 0; |
3389 } | 3380 } |
3390 | 3381 |
3391 } // namespace WebCore | 3382 } // namespace WebCore |
OLD | NEW |