Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Side by Side Diff: Source/WebCore/page/FrameView.h

Issue 10116046: Merge 113287 - Auto-size may not work on first load (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/dom/Document.cpp ('k') | Source/WebCore/page/FrameView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 bool m_firstVisuallyNonEmptyLayoutCallbackPending; 501 bool m_firstVisuallyNonEmptyLayoutCallbackPending;
502 502
503 RefPtr<Node> m_maintainScrollPositionAnchor; 503 RefPtr<Node> m_maintainScrollPositionAnchor;
504 504
505 // Renderer to hold our custom scroll corner. 505 // Renderer to hold our custom scroll corner.
506 RenderScrollbarPart* m_scrollCorner; 506 RenderScrollbarPart* m_scrollCorner;
507 507
508 // If true, automatically resize the frame view around its content. 508 // If true, automatically resize the frame view around its content.
509 bool m_shouldAutoSize; 509 bool m_shouldAutoSize;
510 bool m_inAutoSize; 510 bool m_inAutoSize;
511 // True if autosize has been run since m_shouldAutoSize was set.
512 bool m_didRunAutosize;
511 // The lower bound on the size when autosizing. 513 // The lower bound on the size when autosizing.
512 IntSize m_minAutoSize; 514 IntSize m_minAutoSize;
513 // The upper bound on the size when autosizing. 515 // The upper bound on the size when autosizing.
514 IntSize m_maxAutoSize; 516 IntSize m_maxAutoSize;
515 517
516 OwnPtr<ScrollableAreaSet> m_scrollableAreas; 518 OwnPtr<ScrollableAreaSet> m_scrollableAreas;
517 519
518 static double s_deferredRepaintDelay; 520 static double s_deferredRepaintDelay;
519 static double s_initialDeferredRepaintDelayDuringLoading; 521 static double s_initialDeferredRepaintDelayDuringLoading;
520 static double s_maxDeferredRepaintDelayDuringLoading; 522 static double s_maxDeferredRepaintDelayDuringLoading;
(...skipping 29 matching lines...) Expand all
550 } 552 }
551 553
552 inline LayoutUnit FrameView::mapFromCSSToLayoutUnits(int value) 554 inline LayoutUnit FrameView::mapFromCSSToLayoutUnits(int value)
553 { 555 {
554 return value * m_frame->pageZoomFactor() * m_frame->frameScaleFactor(); 556 return value * m_frame->pageZoomFactor() * m_frame->frameScaleFactor();
555 } 557 }
556 558
557 } // namespace WebCore 559 } // namespace WebCore
558 560
559 #endif // FrameView_h 561 #endif // FrameView_h
OLDNEW
« no previous file with comments | « Source/WebCore/dom/Document.cpp ('k') | Source/WebCore/page/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698