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

Side by Side Diff: Source/core/rendering/style/RenderStyle.h

Issue 157553002: Remove the Pagination struct, clean up viewport scroll policy propagation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 return m_background->outline().width(); 531 return m_background->outline().width();
532 } 532 }
533 bool hasOutline() const { return outlineWidth() > 0 && outlineStyle() > BHID DEN; } 533 bool hasOutline() const { return outlineWidth() > 0 && outlineStyle() > BHID DEN; }
534 EBorderStyle outlineStyle() const { return m_background->outline().style(); } 534 EBorderStyle outlineStyle() const { return m_background->outline().style(); }
535 OutlineIsAuto outlineStyleIsAuto() const { return static_cast<OutlineIsAuto> (m_background->outline().isAuto()); } 535 OutlineIsAuto outlineStyleIsAuto() const { return static_cast<OutlineIsAuto> (m_background->outline().isAuto()); }
536 536
537 EOverflow overflowX() const { return static_cast<EOverflow>(noninherited_fla gs._overflowX); } 537 EOverflow overflowX() const { return static_cast<EOverflow>(noninherited_fla gs._overflowX); }
538 EOverflow overflowY() const { return static_cast<EOverflow>(noninherited_fla gs._overflowY); } 538 EOverflow overflowY() const { return static_cast<EOverflow>(noninherited_fla gs._overflowY); }
539 // It's sufficient to just check one direction, since it's illegal to have v isible on only one overflow value. 539 // It's sufficient to just check one direction, since it's illegal to have v isible on only one overflow value.
540 bool isOverflowVisible() const { ASSERT(overflowX() != OVISIBLE || overflowX () == overflowY()); return overflowX() == OVISIBLE; } 540 bool isOverflowVisible() const { ASSERT(overflowX() != OVISIBLE || overflowX () == overflowY()); return overflowX() == OVISIBLE; }
541 bool isOverflowPaged() const { return overflowY() == OPAGEDX || overflowY() == OPAGEDY; }
541 542
542 EVisibility visibility() const { return static_cast<EVisibility>(inherited_f lags._visibility); } 543 EVisibility visibility() const { return static_cast<EVisibility>(inherited_f lags._visibility); }
543 EVerticalAlign verticalAlign() const { return static_cast<EVerticalAlign>(no ninherited_flags._vertical_align); } 544 EVerticalAlign verticalAlign() const { return static_cast<EVerticalAlign>(no ninherited_flags._vertical_align); }
544 Length verticalAlignLength() const { return m_box->verticalAlign(); } 545 Length verticalAlignLength() const { return m_box->verticalAlign(); }
545 546
546 Length clipLeft() const { return visual->clip.left(); } 547 Length clipLeft() const { return visual->clip.left(); }
547 Length clipRight() const { return visual->clip.right(); } 548 Length clipRight() const { return visual->clip.right(); }
548 Length clipTop() const { return visual->clip.top(); } 549 Length clipTop() const { return visual->clip.top(); }
549 Length clipBottom() const { return visual->clip.bottom(); } 550 Length clipBottom() const { return visual->clip.bottom(); }
550 LengthBox clip() const { return visual->clip; } 551 LengthBox clip() const { return visual->clip; }
(...skipping 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1898 } 1899 }
1899 1900
1900 inline bool RenderStyle::hasPseudoElementStyle() const 1901 inline bool RenderStyle::hasPseudoElementStyle() const
1901 { 1902 {
1902 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; 1903 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK;
1903 } 1904 }
1904 1905
1905 } // namespace WebCore 1906 } // namespace WebCore
1906 1907
1907 #endif // RenderStyle_h 1908 #endif // RenderStyle_h
OLDNEW
« Source/core/rendering/RenderLayer.cpp ('K') | « Source/core/rendering/RenderView.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698