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

Side by Side Diff: Source/core/rendering/RenderBox.h

Issue 22488004: Made text inside <input> elements scrollable using touch gestures (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Layout test minor fix Created 7 years, 4 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
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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 bool autoscrollInProgress() const; 450 bool autoscrollInProgress() const;
451 bool canAutoscroll() const; 451 bool canAutoscroll() const;
452 IntSize calculateAutoscrollDirection(const IntPoint& windowPoint) const; 452 IntSize calculateAutoscrollDirection(const IntPoint& windowPoint) const;
453 static RenderBox* findAutoscrollable(RenderObject*); 453 static RenderBox* findAutoscrollable(RenderObject*);
454 virtual void stopAutoscroll() { } 454 virtual void stopAutoscroll() { }
455 virtual void panScroll(const IntPoint&); 455 virtual void panScroll(const IntPoint&);
456 456
457 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style() ->overflowY() == OAUTO || style()->overflowY() == OOVERLAY); } 457 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style() ->overflowY() == OAUTO || style()->overflowY() == OOVERLAY); }
458 bool hasAutoHorizontalScrollbar() const { return hasOverflowClip() && (style ()->overflowX() == OAUTO || style()->overflowX() == OOVERLAY); } 458 bool hasAutoHorizontalScrollbar() const { return hasOverflowClip() && (style ()->overflowX() == OAUTO || style()->overflowX() == OOVERLAY); }
459 bool scrollsOverflow() const { return scrollsOverflowX() || scrollsOverflowY (); } 459 bool scrollsOverflow() const { return scrollsOverflowX() || scrollsOverflowY (); }
460 bool scrollsOverflowX() const { return hasOverflowClip() && (style()->overfl owX() == OSCROLL || hasAutoHorizontalScrollbar()); } 460 virtual bool scrollsOverflowX() const { return hasOverflowClip() && (style() ->overflowX() == OSCROLL || hasAutoHorizontalScrollbar()); }
461 bool scrollsOverflowY() const { return hasOverflowClip() && (style()->overfl owY() == OSCROLL || hasAutoVerticalScrollbar()); } 461 virtual bool scrollsOverflowY() const { return hasOverflowClip() && (style() ->overflowY() == OSCROLL || hasAutoVerticalScrollbar()); }
462 bool usesCompositedScrolling() const; 462 bool usesCompositedScrolling() const;
463 463
464 bool hasUnsplittableScrollingOverflow() const; 464 bool hasUnsplittableScrollingOverflow() const;
465 bool isUnsplittableForPagination() const; 465 bool isUnsplittableForPagination() const;
466 466
467 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e xtraWidthToEndOfLine = 0); 467 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e xtraWidthToEndOfLine = 0);
468 468
469 virtual LayoutRect overflowClipRect(const LayoutPoint& location, RenderRegio n*, OverlayScrollbarSizeRelevancy = IgnoreOverlayScrollbarSize); 469 virtual LayoutRect overflowClipRect(const LayoutPoint& location, RenderRegio n*, OverlayScrollbarSizeRelevancy = IgnoreOverlayScrollbarSize);
470 LayoutRect clipRect(const LayoutPoint& location, RenderRegion*); 470 LayoutRect clipRect(const LayoutPoint& location, RenderRegion*);
471 virtual bool hasControlClip() const { return false; } 471 virtual bool hasControlClip() const { return false; }
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 if (UNLIKELY(m_inlineBoxWrapper != 0)) 743 if (UNLIKELY(m_inlineBoxWrapper != 0))
744 deleteLineBoxWrapper(); 744 deleteLineBoxWrapper();
745 } 745 }
746 746
747 m_inlineBoxWrapper = boxWrapper; 747 m_inlineBoxWrapper = boxWrapper;
748 } 748 }
749 749
750 } // namespace WebCore 750 } // namespace WebCore
751 751
752 #endif // RenderBox_h 752 #endif // RenderBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698