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

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

Issue 10700087: Merge 119548 - Special layout handler should be done on top frame being printed. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 5 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/ChangeLog ('k') | Source/WebCore/page/Frame.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) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999-2001 Lars Knoll <knoll@kde.org> 3 * 1999-2001 Lars Knoll <knoll@kde.org>
4 * 1999-2001 Antti Koivisto <koivisto@kde.org> 4 * 1999-2001 Antti Koivisto <koivisto@kde.org>
5 * 2000-2001 Simon Hausmann <hausmann@kde.org> 5 * 2000-2001 Simon Hausmann <hausmann@kde.org>
6 * 2000-2001 Dirk Mueller <mueller@kde.org> 6 * 2000-2001 Dirk Mueller <mueller@kde.org>
7 * 2000 Stefan Schimanski <1Stein@gmx.de> 7 * 2000 Stefan Schimanski <1Stein@gmx.de>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 DOMWindow* domWindow() const; 134 DOMWindow* domWindow() const;
135 DOMWindow* existingDOMWindow() { return m_domWindow.get(); } 135 DOMWindow* existingDOMWindow() { return m_domWindow.get(); }
136 void setDOMWindow(DOMWindow*); 136 void setDOMWindow(DOMWindow*);
137 void clearDOMWindow(); 137 void clearDOMWindow();
138 138
139 static Frame* frameForWidget(const Widget*); 139 static Frame* frameForWidget(const Widget*);
140 140
141 Settings* settings() const; // can be NULL 141 Settings* settings() const; // can be NULL
142 142
143 void setPrinting(bool printing, const FloatSize& pageSize, const FloatSi ze& originalPageSize, float maximumShrinkRatio, AdjustViewSizeOrNot); 143 void setPrinting(bool printing, const FloatSize& pageSize, const FloatSi ze& originalPageSize, float maximumShrinkRatio, AdjustViewSizeOrNot);
144 bool shouldUsePrintingLayout() const;
144 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, con st FloatSize& expectedSize); 145 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, con st FloatSize& expectedSize);
145 146
146 bool inViewSourceMode() const; 147 bool inViewSourceMode() const;
147 void setInViewSourceMode(bool = true); 148 void setInViewSourceMode(bool = true);
148 149
149 void setDocument(PassRefPtr<Document>); 150 void setDocument(PassRefPtr<Document>);
150 151
151 void setPageZoomFactor(float factor); 152 void setPageZoomFactor(float factor);
152 float pageZoomFactor() const { return m_pageZoomFactor; } 153 float pageZoomFactor() const { return m_pageZoomFactor; }
153 void setTextZoomFactor(float factor); 154 void setTextZoomFactor(float factor);
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 } 358 }
358 359
359 inline EventHandler* Frame::eventHandler() const 360 inline EventHandler* Frame::eventHandler() const
360 { 361 {
361 return &m_eventHandler; 362 return &m_eventHandler;
362 } 363 }
363 364
364 } // namespace WebCore 365 } // namespace WebCore
365 366
366 #endif // Frame_h 367 #endif // Frame_h
OLDNEW
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | Source/WebCore/page/Frame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698