diff options
author | Grace Kloba <klobag@google.com> | 2010-05-28 18:06:43 -0700 |
---|---|---|
committer | Grace Kloba <klobag@google.com> | 2010-05-28 18:06:43 -0700 |
commit | c05b3a990126a5a1de357c025e25e6acd4e4e185 (patch) | |
tree | 134668b4dcc0710c586921213fc5f7811f3121d6 /WebCore/history | |
parent | 27d79a6495971cad26199bdf5dc79abcb1ff1c9e (diff) | |
download | external_webkit-c05b3a990126a5a1de357c025e25e6acd4e4e185.zip external_webkit-c05b3a990126a5a1de357c025e25e6acd4e4e185.tar.gz external_webkit-c05b3a990126a5a1de357c025e25e6acd4e4e185.tar.bz2 |
Code clean up, http://b/issue?id=2724743
Change Widget:screenWidth() to Widget:textWrapWidth()
as the text wrap width may be different than the
screen width after pinch zoom.
Change AndroidWebHistoryBridge's m_screenWidthScale
to m_textWrapScale to reflect its meaning.
Remove unused screenWidth/screenHeight in PlatformBridge.
Merge two restore methods to one. There is a matching
CL in framework/base.
Only setUseFixedLayout if layout width is different
than screen width.
Change from Node* to Ref<Node> to avoid a crash.
Fix http://b/issue?id=2660396
Diffstat (limited to 'WebCore/history')
-rw-r--r-- | WebCore/history/android/AndroidWebHistoryBridge.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/WebCore/history/android/AndroidWebHistoryBridge.h b/WebCore/history/android/AndroidWebHistoryBridge.h index 893d137..b320c4a 100644 --- a/WebCore/history/android/AndroidWebHistoryBridge.h +++ b/WebCore/history/android/AndroidWebHistoryBridge.h @@ -36,23 +36,23 @@ class AndroidWebHistoryBridge : public RefCounted<AndroidWebHistoryBridge> { public: AndroidWebHistoryBridge(HistoryItem* item) : m_scale(0) - , m_screenWidthScale(0) + , m_textWrapScale(0) , m_active(false) , m_historyItem(item) { } virtual ~AndroidWebHistoryBridge() { } virtual void updateHistoryItem(HistoryItem* item) = 0; void setScale(int s) { m_scale = s; } - void setScreenWidthScale(int s) { m_screenWidthScale = s; } + void setTextWrapScale(int s) { m_textWrapScale = s; } int scale() const { return m_scale; } - int screenWidthScale() const { return m_screenWidthScale; } + int textWrapScale() const { return m_textWrapScale; } void detachHistoryItem() { m_historyItem = 0; } HistoryItem* historyItem() const { return m_historyItem; } void setActive() { m_active = true; } protected: int m_scale; - int m_screenWidthScale; + int m_textWrapScale; bool m_active; HistoryItem* m_historyItem; }; |