Expose pageScaleFactor in Chromium's WebHistoryItem
authorfsamuel@chromium.org <fsamuel@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Aug 2011 17:28:12 +0000 (17:28 +0000)
committerfsamuel@chromium.org <fsamuel@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Aug 2011 17:28:12 +0000 (17:28 +0000)
https://bugs.webkit.org/show_bug.cgi?id=66139

Reviewed by Darin Fisher.

* public/WebHistoryItem.h:
* src/WebHistoryItem.cpp:
(WebKit::WebHistoryItem::pageScaleFactor):
(WebKit::WebHistoryItem::setPageScaleFactor):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@92970 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/public/WebHistoryItem.h
Source/WebKit/chromium/src/WebHistoryItem.cpp

index adecab88f6cb4268a243a6f7cba78e5e6a092078..f03acb6f0916879757c7bcfa30a08f7234e88e29 100644 (file)
@@ -1,3 +1,15 @@
+2011-08-12  Fady Samuel  <fsamuel@chromium.org>
+
+        Expose pageScaleFactor in Chromium's WebHistoryItem
+        https://bugs.webkit.org/show_bug.cgi?id=66139
+
+        Reviewed by Darin Fisher.
+
+        * public/WebHistoryItem.h:
+        * src/WebHistoryItem.cpp:
+        (WebKit::WebHistoryItem::pageScaleFactor):
+        (WebKit::WebHistoryItem::setPageScaleFactor):
+
 2011-08-10  Nat Duca  <nduca@chromium.org>
 
         [chromium] Add WebThread to WebKitClient
index 9c948afc8cb1969aac2b593b7831ebe46d1b43b0..6ba1742b5da8d34d2d4595ad87d0cd99fe552313 100644 (file)
@@ -93,6 +93,9 @@ public:
     WEBKIT_EXPORT WebPoint scrollOffset() const;
     WEBKIT_EXPORT void setScrollOffset(const WebPoint&);
 
+    WEBKIT_EXPORT float pageScaleFactor() const;
+    WEBKIT_EXPORT void setPageScaleFactor(float);
+
     WEBKIT_EXPORT bool isTargetItem() const;
     WEBKIT_EXPORT void setIsTargetItem(bool);
 
index cacba1a79b09b82f171491d817ca820250d506f2..7153b32fe10150923a6f997d64d307944ba513c8 100644 (file)
@@ -165,6 +165,17 @@ void WebHistoryItem::setScrollOffset(const WebPoint& scrollOffset)
     m_private->setScrollPoint(scrollOffset);
 }
 
+float WebHistoryItem::pageScaleFactor() const
+{
+    return m_private->pageScaleFactor();
+}
+
+void WebHistoryItem::setPageScaleFactor(float scale)
+{
+    ensureMutable();
+    return m_private->setPageScaleFactor(scale);
+}
+
 bool WebHistoryItem::isTargetItem() const
 {
     return m_private->isTargetItem();