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

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

Issue 2767853002: Remove default argument on ComputedStyle::setHasViewportUnits(). (Closed)
Patch Set: Rebase Created 3 years, 8 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 | « third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp ('k') | no next file » | 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) 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 2328 matching lines...) Expand 10 before | Expand all | Expand 10 after
2339 // Callback selectors. 2339 // Callback selectors.
2340 const Vector<String>& callbackSelectors() const { 2340 const Vector<String>& callbackSelectors() const {
2341 return m_rareNonInheritedData->m_callbackSelectors; 2341 return m_rareNonInheritedData->m_callbackSelectors;
2342 } 2342 }
2343 void addCallbackSelector(const String& selector); 2343 void addCallbackSelector(const String& selector);
2344 2344
2345 // Non-property flags. 2345 // Non-property flags.
2346 bool hasViewportUnits() const { 2346 bool hasViewportUnits() const {
2347 return m_nonInheritedData.m_hasViewportUnits; 2347 return m_nonInheritedData.m_hasViewportUnits;
2348 } 2348 }
2349 void setHasViewportUnits(bool hasViewportUnits = true) { 2349 // TODO(shend): This function should take no arguments.
2350 void setHasViewportUnits(bool hasViewportUnits) {
2350 m_nonInheritedData.m_hasViewportUnits = hasViewportUnits; 2351 m_nonInheritedData.m_hasViewportUnits = hasViewportUnits;
2351 } 2352 }
2352 2353
2353 bool hasRemUnits() const { return m_nonInheritedData.m_hasRemUnits; } 2354 bool hasRemUnits() const { return m_nonInheritedData.m_hasRemUnits; }
2354 void setHasRemUnits() { m_nonInheritedData.m_hasRemUnits = true; } 2355 void setHasRemUnits() { m_nonInheritedData.m_hasRemUnits = true; }
2355 2356
2356 bool emptyState() const { return m_emptyState; } 2357 bool emptyState() const { return m_emptyState; }
2357 void setEmptyState(bool b) { 2358 void setEmptyState(bool b) {
2358 setUnique(); 2359 setUnique();
2359 m_emptyState = b; 2360 m_emptyState = b;
(...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after
3740 m_pseudoBits |= 1 << (pseudo - FirstPublicPseudoId); 3741 m_pseudoBits |= 1 << (pseudo - FirstPublicPseudoId);
3741 } 3742 }
3742 3743
3743 inline bool ComputedStyle::hasPseudoElementStyle() const { 3744 inline bool ComputedStyle::hasPseudoElementStyle() const {
3744 return m_pseudoBits & ElementPseudoIdMask; 3745 return m_pseudoBits & ElementPseudoIdMask;
3745 } 3746 }
3746 3747
3747 } // namespace blink 3748 } // namespace blink
3748 3749
3749 #endif // ComputedStyle_h 3750 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698