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

Side by Side Diff: Source/core/style/ComputedStyle.h

Issue 1269123002: Preparation for combining paths of focus rings and outlines (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove debug from fast/css/focus-ring-recursive-continuations.html Created 5 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 | Annotate | Revision Log
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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 int borderTopWidth() const { return surround->border.borderTopWidth(); } 522 int borderTopWidth() const { return surround->border.borderTopWidth(); }
523 EBorderStyle borderTopStyle() const { return surround->border.top().style(); } 523 EBorderStyle borderTopStyle() const { return surround->border.top().style(); }
524 int borderBottomWidth() const { return surround->border.borderBottomWidth(); } 524 int borderBottomWidth() const { return surround->border.borderBottomWidth(); }
525 EBorderStyle borderBottomStyle() const { return surround->border.bottom().st yle(); } 525 EBorderStyle borderBottomStyle() const { return surround->border.bottom().st yle(); }
526 526
527 int borderBeforeWidth() const; 527 int borderBeforeWidth() const;
528 int borderAfterWidth() const; 528 int borderAfterWidth() const;
529 int borderStartWidth() const; 529 int borderStartWidth() const;
530 int borderEndWidth() const; 530 int borderEndWidth() const;
531 531
532 int outlineSize() const { return max(0, outlineWidth() + outlineOffset()); }
533 int outlineWidth() const 532 int outlineWidth() const
534 { 533 {
535 if (m_background->outline().style() == BNONE) 534 if (m_background->outline().style() == BNONE)
536 return 0; 535 return 0;
537 return m_background->outline().width(); 536 return m_background->outline().width();
538 } 537 }
539 bool hasOutline() const { return outlineWidth() > 0 && outlineStyle() > BHID DEN; } 538 bool hasOutline() const { return outlineWidth() > 0 && outlineStyle() > BHID DEN; }
540 EBorderStyle outlineStyle() const { return m_background->outline().style(); } 539 EBorderStyle outlineStyle() const { return m_background->outline().style(); }
541 OutlineIsAuto outlineStyleIsAuto() const { return static_cast<OutlineIsAuto> (m_background->outline().isAuto()); } 540 OutlineIsAuto outlineStyleIsAuto() const { return static_cast<OutlineIsAuto> (m_background->outline().isAuto()); }
542 int outlineOutset() const; 541 int outlineOutsetExtent() const;
543 542
544 EOverflow overflowX() const { return static_cast<EOverflow>(noninherited_fla gs.overflowX); } 543 EOverflow overflowX() const { return static_cast<EOverflow>(noninherited_fla gs.overflowX); }
545 EOverflow overflowY() const { return static_cast<EOverflow>(noninherited_fla gs.overflowY); } 544 EOverflow overflowY() const { return static_cast<EOverflow>(noninherited_fla gs.overflowY); }
546 // It's sufficient to just check one direction, since it's illegal to have v isible on only one overflow value. 545 // It's sufficient to just check one direction, since it's illegal to have v isible on only one overflow value.
547 bool isOverflowVisible() const { ASSERT(overflowX() != OVISIBLE || overflowX () == overflowY()); return overflowX() == OVISIBLE; } 546 bool isOverflowVisible() const { ASSERT(overflowX() != OVISIBLE || overflowX () == overflowY()); return overflowX() == OVISIBLE; }
548 bool isOverflowPaged() const { return overflowY() == OPAGEDX || overflowY() == OPAGEDY; } 547 bool isOverflowPaged() const { return overflowY() == OPAGEDX || overflowY() == OPAGEDY; }
549 548
550 EVisibility visibility() const { return static_cast<EVisibility>(inherited_f lags._visibility); } 549 EVisibility visibility() const { return static_cast<EVisibility>(inherited_f lags._visibility); }
551 EVerticalAlign verticalAlign() const { return static_cast<EVerticalAlign>(no ninherited_flags.verticalAlign); } 550 EVerticalAlign verticalAlign() const { return static_cast<EVerticalAlign>(no ninherited_flags.verticalAlign); }
552 const Length& verticalAlignLength() const { return m_box->verticalAlign(); } 551 const Length& verticalAlignLength() const { return m_box->verticalAlign(); }
(...skipping 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after
1947 } 1946 }
1948 1947
1949 inline bool ComputedStyle::hasPseudoElementStyle() const 1948 inline bool ComputedStyle::hasPseudoElementStyle() const
1950 { 1949 {
1951 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1950 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
1952 } 1951 }
1953 1952
1954 } // namespace blink 1953 } // namespace blink
1955 1954
1956 #endif // ComputedStyle_h 1955 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698