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

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

Issue 967213004: Removed FrameView's windowToContents and contentsToWindow methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 9 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 | « Source/core/inspector/InspectorDOMAgent.cpp ('k') | Source/core/layout/LayoutBox.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 virtual int verticalScrollbarWidth() const; 486 virtual int verticalScrollbarWidth() const;
487 int horizontalScrollbarHeight() const; 487 int horizontalScrollbarHeight() const;
488 int intrinsicScrollbarLogicalWidth() const; 488 int intrinsicScrollbarLogicalWidth() const;
489 int scrollbarLogicalWidth() const { return style()->isHorizontalWritingMode( ) ? verticalScrollbarWidth() : horizontalScrollbarHeight(); } 489 int scrollbarLogicalWidth() const { return style()->isHorizontalWritingMode( ) ? verticalScrollbarWidth() : horizontalScrollbarHeight(); }
490 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode () ? horizontalScrollbarHeight() : verticalScrollbarWidth(); } 490 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode () ? horizontalScrollbarHeight() : verticalScrollbarWidth(); }
491 virtual bool scroll(ScrollDirection, ScrollGranularity, float delta = 1); 491 virtual bool scroll(ScrollDirection, ScrollGranularity, float delta = 1);
492 bool canBeScrolledAndHasScrollableArea() const; 492 bool canBeScrolledAndHasScrollableArea() const;
493 virtual bool canBeProgramaticallyScrolled() const; 493 virtual bool canBeProgramaticallyScrolled() const;
494 virtual void autoscroll(const IntPoint&); 494 virtual void autoscroll(const IntPoint&);
495 bool canAutoscroll() const; 495 bool canAutoscroll() const;
496 IntSize calculateAutoscrollDirection(const IntPoint& windowPoint) const; 496 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const ;
497 static LayoutBox* findAutoscrollable(LayoutObject*); 497 static LayoutBox* findAutoscrollable(LayoutObject*);
498 virtual void stopAutoscroll() { } 498 virtual void stopAutoscroll() { }
499 virtual void panScroll(const IntPoint&); 499 virtual void panScroll(const IntPoint&);
500 500
501 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style() ->overflowY() == OAUTO || style()->overflowY() == OPAGEDY || style()->overflowY( ) == OOVERLAY); } 501 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style() ->overflowY() == OAUTO || style()->overflowY() == OPAGEDY || style()->overflowY( ) == OOVERLAY); }
502 bool hasAutoHorizontalScrollbar() const { return hasOverflowClip() && (style ()->overflowX() == OAUTO || style()->overflowX() == OOVERLAY); } 502 bool hasAutoHorizontalScrollbar() const { return hasOverflowClip() && (style ()->overflowX() == OAUTO || style()->overflowX() == OOVERLAY); }
503 bool scrollsOverflow() const { return scrollsOverflowX() || scrollsOverflowY (); } 503 bool scrollsOverflow() const { return scrollsOverflowX() || scrollsOverflowY (); }
504 504
505 bool hasScrollableOverflowX() const { return scrollsOverflowX() && pixelSnap pedScrollWidth() != pixelSnappedClientWidth(); } 505 bool hasScrollableOverflowX() const { return scrollsOverflowX() && pixelSnap pedScrollWidth() != pixelSnappedClientWidth(); }
506 bool hasScrollableOverflowY() const { return scrollsOverflowY() && pixelSnap pedScrollHeight() != pixelSnappedClientHeight(); } 506 bool hasScrollableOverflowY() const { return scrollsOverflowY() && pixelSnap pedScrollHeight() != pixelSnappedClientHeight(); }
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 if (UNLIKELY(inlineBoxWrapper() != 0)) 856 if (UNLIKELY(inlineBoxWrapper() != 0))
857 deleteLineBoxWrapper(); 857 deleteLineBoxWrapper();
858 } 858 }
859 859
860 ensureRareData().m_inlineBoxWrapper = boxWrapper; 860 ensureRareData().m_inlineBoxWrapper = boxWrapper;
861 } 861 }
862 862
863 } // namespace blink 863 } // namespace blink
864 864
865 #endif // LayoutBox_h 865 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDOMAgent.cpp ('k') | Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698