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

Side by Side Diff: Source/core/css/PseudoStyleRequest.h

Issue 17654008: Implement the ::backdrop pseudo-element for modal <dialog>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: use element directly Created 7 years, 5 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
« no previous file with comments | « Source/core/css/CSSSelector.cpp ('k') | Source/core/css/resolver/StyleResolver.cpp » ('j') | 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 20 matching lines...) Expand all
31 31
32 class PseudoStyleRequest { 32 class PseudoStyleRequest {
33 public: 33 public:
34 PseudoStyleRequest(PseudoId pseudoId, RenderScrollbar* scrollbar = 0, Scroll barPart scrollbarPart = NoPart) 34 PseudoStyleRequest(PseudoId pseudoId, RenderScrollbar* scrollbar = 0, Scroll barPart scrollbarPart = NoPart)
35 : pseudoId(pseudoId) 35 : pseudoId(pseudoId)
36 , scrollbarPart(scrollbarPart) 36 , scrollbarPart(scrollbarPart)
37 , scrollbar(scrollbar) 37 , scrollbar(scrollbar)
38 { 38 {
39 } 39 }
40 40
41 // The spec disallows inheritance for ::backdrop.
42 bool allowsInheritance(const RenderStyle* parentStyle) const
43 {
44 return parentStyle && pseudoId != BACKDROP;
45 }
46
41 PseudoId pseudoId; 47 PseudoId pseudoId;
42 ScrollbarPart scrollbarPart; 48 ScrollbarPart scrollbarPart;
43 RenderScrollbar* scrollbar; 49 RenderScrollbar* scrollbar;
44 }; 50 };
45 51
46 } // namespace WebCore 52 } // namespace WebCore
47 53
48 #endif // PseudoStyleRequest_h 54 #endif // PseudoStyleRequest_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSSelector.cpp ('k') | Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698