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

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

Issue 2386033002: Scale focus outline thickness with zoom level. (Closed)
Patch Set: merge conflicts Created 4 years, 2 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 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 3461 matching lines...) Expand 10 before | Expand all | Expand 10 after
3472 // the same. 3472 // the same.
3473 if (!otherStyle) 3473 if (!otherStyle)
3474 return !hasOutline(); 3474 return !hasOutline();
3475 return m_background->outline().visuallyEqual( 3475 return m_background->outline().visuallyEqual(
3476 otherStyle->m_background->outline()); 3476 otherStyle->m_background->outline());
3477 } 3477 }
3478 void setOutlineFromStyle(const ComputedStyle& o) { 3478 void setOutlineFromStyle(const ComputedStyle& o) {
3479 DCHECK(!isOutlineEquivalent(&o)); 3479 DCHECK(!isOutlineEquivalent(&o));
3480 m_background.access()->m_outline = o.m_background->m_outline; 3480 m_background.access()->m_outline = o.m_background->m_outline;
3481 } 3481 }
3482 float getOutlineStrokeWidthForFocusRing() const;
3482 3483
3483 // Position utility functions. 3484 // Position utility functions.
3484 bool hasOutOfFlowPosition() const { 3485 bool hasOutOfFlowPosition() const {
3485 return position() == AbsolutePosition || position() == FixedPosition; 3486 return position() == AbsolutePosition || position() == FixedPosition;
3486 } 3487 }
3487 bool hasInFlowPosition() const { 3488 bool hasInFlowPosition() const {
3488 return position() == RelativePosition || position() == StickyPosition; 3489 return position() == RelativePosition || position() == StickyPosition;
3489 } 3490 }
3490 bool hasViewportConstrainedPosition() const { 3491 bool hasViewportConstrainedPosition() const {
3491 return position() == FixedPosition || position() == StickyPosition; 3492 return position() == FixedPosition || position() == StickyPosition;
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
4109 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); 4110 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1);
4110 } 4111 }
4111 4112
4112 inline bool ComputedStyle::hasPseudoElementStyle() const { 4113 inline bool ComputedStyle::hasPseudoElementStyle() const {
4113 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; 4114 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask;
4114 } 4115 }
4115 4116
4116 } // namespace blink 4117 } // namespace blink
4117 4118
4118 #endif // ComputedStyle_h 4119 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/ObjectPainter.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698