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

Side by Side Diff: Source/core/layout/TextAutosizer.h

Issue 1231673007: Don't zoom in TextFinder if autosizing is disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: removed frame() helper from test Created 5 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 | « no previous file | Source/core/layout/TextAutosizer.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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 { 58 {
59 return adoptPtrWillBeNoop(new TextAutosizer(document)); 59 return adoptPtrWillBeNoop(new TextAutosizer(document));
60 } 60 }
61 static float computeAutosizedFontSize(float specifiedSize, float multiplier) ; 61 static float computeAutosizedFontSize(float specifiedSize, float multiplier) ;
62 62
63 void updatePageInfoInAllFrames(); 63 void updatePageInfoInAllFrames();
64 void updatePageInfo(); 64 void updatePageInfo();
65 void record(const LayoutBlock*); 65 void record(const LayoutBlock*);
66 void destroy(const LayoutBlock*); 66 void destroy(const LayoutBlock*);
67 67
68 bool pageNeedsAutosizing() const;
69
68 DECLARE_TRACE(); 70 DECLARE_TRACE();
69 71
70 class LayoutScope { 72 class LayoutScope {
71 public: 73 public:
72 explicit LayoutScope(LayoutBlock*); 74 explicit LayoutScope(LayoutBlock*);
73 ~LayoutScope(); 75 ~LayoutScope();
74 protected: 76 protected:
75 TextAutosizer* m_textAutosizer; 77 TextAutosizer* m_textAutosizer;
76 LayoutBlock* m_block; 78 LayoutBlock* m_block;
77 }; 79 };
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 FingerprintMapper m_fingerprintMapper; 308 FingerprintMapper m_fingerprintMapper;
307 Vector<RefPtr<ComputedStyle>> m_stylesRetainedDuringLayout; 309 Vector<RefPtr<ComputedStyle>> m_stylesRetainedDuringLayout;
308 // FIXME: All frames should share the same m_pageInfo instance. 310 // FIXME: All frames should share the same m_pageInfo instance.
309 PageInfo m_pageInfo; 311 PageInfo m_pageInfo;
310 bool m_updatePageInfoDeferred; 312 bool m_updatePageInfoDeferred;
311 }; 313 };
312 314
313 } // namespace blink 315 } // namespace blink
314 316
315 #endif // TextAutosizer_h 317 #endif // TextAutosizer_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/TextAutosizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698