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

Side by Side Diff: sky/engine/core/rendering/style/RenderStyle.h

Issue 883443003: Remove PseudoId. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 StyleDifference visualInvalidationDiff(const RenderStyle&) const; 294 StyleDifference visualInvalidationDiff(const RenderStyle&) const;
295 295
296 enum IsAtShadowBoundary { 296 enum IsAtShadowBoundary {
297 AtShadowBoundary, 297 AtShadowBoundary,
298 NotAtShadowBoundary, 298 NotAtShadowBoundary,
299 }; 299 };
300 300
301 void inheritFrom(const RenderStyle* inheritParent, IsAtShadowBoundary = NotA tShadowBoundary); 301 void inheritFrom(const RenderStyle* inheritParent, IsAtShadowBoundary = NotA tShadowBoundary);
302 void copyNonInheritedFrom(const RenderStyle*); 302 void copyNonInheritedFrom(const RenderStyle*);
303 303
304 // FIXME(sky): Remove this.
305 PseudoId styleType() const { return NOPSEUDO; }
306
307 void setHasViewportUnits(bool hasViewportUnits = true) const { noninherited_ flags.hasViewportUnits = hasViewportUnits; } 304 void setHasViewportUnits(bool hasViewportUnits = true) const { noninherited_ flags.hasViewportUnits = hasViewportUnits; }
308 bool hasViewportUnits() const { return noninherited_flags.hasViewportUnits; } 305 bool hasViewportUnits() const { return noninherited_flags.hasViewportUnits; }
309 306
310 bool affectedByFocus() const { return noninherited_flags.affectedByFocus; } 307 bool affectedByFocus() const { return noninherited_flags.affectedByFocus; }
311 bool affectedByHover() const { return noninherited_flags.affectedByHover; } 308 bool affectedByHover() const { return noninherited_flags.affectedByHover; }
312 bool affectedByActive() const { return noninherited_flags.affectedByActive; } 309 bool affectedByActive() const { return noninherited_flags.affectedByActive; }
313 310
314 void setAffectedByFocus() { noninherited_flags.affectedByFocus = true; } 311 void setAffectedByFocus() { noninherited_flags.affectedByFocus = true; }
315 void setAffectedByHover() { noninherited_flags.affectedByHover = true; } 312 void setAffectedByHover() { noninherited_flags.affectedByHover = true; }
316 void setAffectedByActive() { noninherited_flags.affectedByActive = true; } 313 void setAffectedByActive() { noninherited_flags.affectedByActive = true; }
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 1378
1382 rareInheritedData.access()->m_textOrientation = textOrientation; 1379 rareInheritedData.access()->m_textOrientation = textOrientation;
1383 return true; 1380 return true;
1384 } 1381 }
1385 1382
1386 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&); 1383 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&);
1387 1384
1388 } // namespace blink 1385 } // namespace blink
1389 1386
1390 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLE_H_ 1387 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLE_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderObject.cpp ('k') | sky/engine/core/rendering/style/RenderStyleConstants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698