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

Side by Side Diff: Source/core/css/resolver/StyleResolver.h

Issue 672953002: Convert first letter into a pseudo element. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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/core.gypi ('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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 void matchPageRulesForList(WillBeHeapVector<RawPtrWillBeMember<StyleRulePage > >& matchedRules, const WillBeHeapVector<RawPtrWillBeMember<StyleRulePage> >&, bool isLeftPage, bool isFirstPage, const String& pageName); 255 void matchPageRulesForList(WillBeHeapVector<RawPtrWillBeMember<StyleRulePage > >& matchedRules, const WillBeHeapVector<RawPtrWillBeMember<StyleRulePage> >&, bool isLeftPage, bool isFirstPage, const String& pageName);
256 void collectViewportRules(); 256 void collectViewportRules();
257 257
258 bool isLeftPage(int pageIndex) const; 258 bool isLeftPage(int pageIndex) const;
259 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } 259 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); }
260 bool isFirstPage(int pageIndex) const; 260 bool isFirstPage(int pageIndex) const;
261 String pageName(int pageIndex) const; 261 String pageName(int pageIndex) const;
262 262
263 bool pseudoStyleForElementInternal(Element&, const PseudoStyleRequest&, Rend erStyle* parentStyle, StyleResolverState&); 263 bool pseudoStyleForElementInternal(Element&, const PseudoStyleRequest&, Rend erStyle* parentStyle, StyleResolverState&);
264 264
265 PassRefPtrWillBeRawPtr<PseudoElement> createPseudoElement(Element* parent, P seudoId);
266
265 Document& document() { return *m_document; } 267 Document& document() { return *m_document; }
266 268
267 // FIXME: This likely belongs on RuleSet. 269 // FIXME: This likely belongs on RuleSet.
268 typedef WillBeHeapHashMap<StringImpl*, RefPtrWillBeMember<StyleRuleKeyframes > > KeyframesRuleMap; 270 typedef WillBeHeapHashMap<StringImpl*, RefPtrWillBeMember<StyleRuleKeyframes > > KeyframesRuleMap;
269 KeyframesRuleMap m_keyframesRuleMap; 271 KeyframesRuleMap m_keyframesRuleMap;
270 272
271 static RenderStyle* s_styleNotYetAvailable; 273 static RenderStyle* s_styleNotYetAvailable;
272 274
273 void cacheBorderAndBackground(); 275 void cacheBorderAndBackground();
274 276
(...skipping 29 matching lines...) Expand all
304 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; 306 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals;
305 unsigned m_styleResolverStatsSequence; 307 unsigned m_styleResolverStatsSequence;
306 308
307 // Use only for Internals::updateStyleAndReturnAffectedElementCount. 309 // Use only for Internals::updateStyleAndReturnAffectedElementCount.
308 unsigned m_accessCount; 310 unsigned m_accessCount;
309 }; 311 };
310 312
311 } // namespace blink 313 } // namespace blink
312 314
313 #endif // StyleResolver_h 315 #endif // StyleResolver_h
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698