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

Side by Side Diff: Source/core/dom/Element.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/css/resolver/StyleResolver.cpp ('k') | Source/core/dom/Element.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 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved.
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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 548
549 void inlineStyleChanged(); 549 void inlineStyleChanged();
550 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper(); 550 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper();
551 void setInlineStyleFromString(const AtomicString&); 551 void setInlineStyleFromString(const AtomicString&);
552 552
553 StyleRecalcChange recalcOwnStyle(StyleRecalcChange); 553 StyleRecalcChange recalcOwnStyle(StyleRecalcChange);
554 554
555 inline void checkForEmptyStyleChange(); 555 inline void checkForEmptyStyleChange();
556 556
557 void updatePseudoElement(PseudoId, StyleRecalcChange); 557 void updatePseudoElement(PseudoId, StyleRecalcChange);
558 bool updateFirstLetter(Element*);
558 559
559 inline void createPseudoElementIfNeeded(PseudoId); 560 inline void createPseudoElementIfNeeded(PseudoId);
560 561
561 // FIXME: Everyone should allow author shadows. 562 // FIXME: Everyone should allow author shadows.
562 virtual bool areAuthorShadowsAllowed() const { return true; } 563 virtual bool areAuthorShadowsAllowed() const { return true; }
563 virtual void didAddUserAgentShadowRoot(ShadowRoot&) { } 564 virtual void didAddUserAgentShadowRoot(ShadowRoot&) { }
564 virtual bool alwaysCreateUserAgentShadowRoot() const { return false; } 565 virtual bool alwaysCreateUserAgentShadowRoot() const { return false; }
565 566
566 // FIXME: Remove the need for Attr to call willModifyAttribute/didModifyAttr ibute. 567 // FIXME: Remove the need for Attr to call willModifyAttribute/didModifyAttr ibute.
567 friend class Attr; 568 friend class Attr;
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 864 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
864 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 865 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
865 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 866 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
866 { \ 867 { \
867 return adoptRefWillBeNoop(new T(tagName, document)); \ 868 return adoptRefWillBeNoop(new T(tagName, document)); \
868 } 869 }
869 870
870 } // namespace 871 } // namespace
871 872
872 #endif // Element_h 873 #endif // Element_h
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698