Title: [88657] trunk/Source/WebCore
Revision
88657
Author
simon.fra...@apple.com
Date
2011-06-13 11:18:12 -0700 (Mon, 13 Jun 2011)

Log Message

2011-06-13  Simon Fraser  <simon.fra...@apple.com>

        Reviewed by Adele Peterson.

        Add utility method to report whether a RenderLayer has any scrollbars
        https://bugs.webkit.org/show_bug.cgi?id=62579

        New method that returns true with either scrollbar is present.

        * rendering/RenderLayer.h:
        (WebCore::RenderLayer::hasScrollbars):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (88656 => 88657)


--- trunk/Source/WebCore/ChangeLog	2011-06-13 18:10:54 UTC (rev 88656)
+++ trunk/Source/WebCore/ChangeLog	2011-06-13 18:18:12 UTC (rev 88657)
@@ -1,3 +1,15 @@
+2011-06-13  Simon Fraser  <simon.fra...@apple.com>
+
+        Reviewed by Adele Peterson.
+
+        Add utility method to report whether a RenderLayer has any scrollbars
+        https://bugs.webkit.org/show_bug.cgi?id=62579
+        
+        New method that returns true with either scrollbar is present.
+
+        * rendering/RenderLayer.h:
+        (WebCore::RenderLayer::hasScrollbars):
+
 2011-06-11  Jer Noble  <jer.no...@apple.com>
 
         Reviewed by Anders Carlsson.

Modified: trunk/Source/WebCore/rendering/RenderLayer.h (88656 => 88657)


--- trunk/Source/WebCore/rendering/RenderLayer.h	2011-06-13 18:10:54 UTC (rev 88656)
+++ trunk/Source/WebCore/rendering/RenderLayer.h	2011-06-13 18:18:12 UTC (rev 88657)
@@ -242,6 +242,7 @@
 
     bool scrollsOverflow() const;
     bool allowsScrolling() const; // Returns true if at least one scrollbar is visible and enabled.
+    bool hasScrollbars() const { return m_hBar || m_vBar; }
     virtual void didAddHorizontalScrollbar(Scrollbar*);
     virtual void willRemoveHorizontalScrollbar(Scrollbar*);
     void setHasHorizontalScrollbar(bool);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to