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

Side by Side Diff: Source/core/page/PrintContext.h

Issue 955583002: InlinedVisitor: Migrate page to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/page/PointerLockController.cpp ('k') | Source/core/page/PrintContext.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) 2007 Alp Toker <alp@atoker.com> 2 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
3 * Copyright (C) 2007 Apple Inc. 3 * Copyright (C) 2007 Apple Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // Return to screen mode. 67 // Return to screen mode.
68 virtual void end(); 68 virtual void end();
69 69
70 // Used by layout tests. 70 // Used by layout tests.
71 static int pageNumberForElement(Element*, const FloatSize& pageSizeInPixels) ; // Returns -1 if page isn't found. 71 static int pageNumberForElement(Element*, const FloatSize& pageSizeInPixels) ; // Returns -1 if page isn't found.
72 static String pageProperty(LocalFrame* frame, const char* propertyName, int pageNumber); 72 static String pageProperty(LocalFrame* frame, const char* propertyName, int pageNumber);
73 static bool isPageBoxVisible(LocalFrame* frame, int pageNumber); 73 static bool isPageBoxVisible(LocalFrame* frame, int pageNumber);
74 static String pageSizeAndMarginsInPixels(LocalFrame* frame, int pageNumber, int width, int height, int marginTop, int marginRight, int marginBottom, int mar ginLeft); 74 static String pageSizeAndMarginsInPixels(LocalFrame* frame, int pageNumber, int width, int height, int marginTop, int marginRight, int marginBottom, int mar ginLeft);
75 static int numberOfPages(LocalFrame*, const FloatSize& pageSizeInPixels); 75 static int numberOfPages(LocalFrame*, const FloatSize& pageSizeInPixels);
76 76
77 virtual void trace(Visitor*); 77 DECLARE_VIRTUAL_TRACE();
78 78
79 protected: 79 protected:
80 void outputLinkAndLinkedDestinations(GraphicsContext&, Node*, const IntRect& pageRect); 80 void outputLinkAndLinkedDestinations(GraphicsContext&, Node*, const IntRect& pageRect);
81 81
82 RawPtrWillBeMember<LocalFrame> m_frame; 82 RawPtrWillBeMember<LocalFrame> m_frame;
83 Vector<IntRect> m_pageRects; 83 Vector<IntRect> m_pageRects;
84 84
85 private: 85 private:
86 void computePageRectsWithPageSizeInternal(const FloatSize& pageSizeInPixels, bool allowHorizontalTiling); 86 void computePageRectsWithPageSizeInternal(const FloatSize& pageSizeInPixels, bool allowHorizontalTiling);
87 void collectLinkAndLinkedDestinations(Node*); 87 void collectLinkAndLinkedDestinations(Node*);
88 88
89 // Used to prevent misuses of begin() and end() (e.g., call end without begi n). 89 // Used to prevent misuses of begin() and end() (e.g., call end without begi n).
90 bool m_isPrinting; 90 bool m_isPrinting;
91 91
92 WillBeHeapHashMap<RawPtrWillBeMember<Element>, KURL> m_linkDestinations; 92 WillBeHeapHashMap<RawPtrWillBeMember<Element>, KURL> m_linkDestinations;
93 WillBeHeapHashMap<String, RawPtrWillBeMember<Element>> m_linkedDestinations; 93 WillBeHeapHashMap<String, RawPtrWillBeMember<Element>> m_linkedDestinations;
94 bool m_linkAndLinkedDestinationsValid; 94 bool m_linkAndLinkedDestinationsValid;
95 }; 95 };
96 96
97 } 97 }
98 98
99 #endif 99 #endif
OLDNEW
« no previous file with comments | « Source/core/page/PointerLockController.cpp ('k') | Source/core/page/PrintContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698