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

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
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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 546
547 void inlineStyleChanged(); 547 void inlineStyleChanged();
548 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper(); 548 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper();
549 void setInlineStyleFromString(const AtomicString&); 549 void setInlineStyleFromString(const AtomicString&);
550 550
551 StyleRecalcChange recalcOwnStyle(StyleRecalcChange); 551 StyleRecalcChange recalcOwnStyle(StyleRecalcChange);
552 552
553 inline void checkForEmptyStyleChange(); 553 inline void checkForEmptyStyleChange();
554 554
555 void updatePseudoElement(PseudoId, StyleRecalcChange); 555 void updatePseudoElement(PseudoId, StyleRecalcChange);
556 bool updateFirstLetter(Element*);
556 557
557 inline void createPseudoElementIfNeeded(PseudoId); 558 inline void createPseudoElementIfNeeded(PseudoId);
558 559
559 // FIXME: Everyone should allow author shadows. 560 // FIXME: Everyone should allow author shadows.
560 virtual bool areAuthorShadowsAllowed() const { return true; } 561 virtual bool areAuthorShadowsAllowed() const { return true; }
561 virtual void didAddUserAgentShadowRoot(ShadowRoot&) { } 562 virtual void didAddUserAgentShadowRoot(ShadowRoot&) { }
562 virtual bool alwaysCreateUserAgentShadowRoot() const { return false; } 563 virtual bool alwaysCreateUserAgentShadowRoot() const { return false; }
563 564
564 // FIXME: Remove the need for Attr to call willModifyAttribute/didModifyAttr ibute. 565 // FIXME: Remove the need for Attr to call willModifyAttribute/didModifyAttr ibute.
565 friend class Attr; 566 friend class Attr;
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 862 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
862 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 863 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
863 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 864 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
864 { \ 865 { \
865 return adoptRefWillBeNoop(new T(tagName, document)); \ 866 return adoptRefWillBeNoop(new T(tagName, document)); \
866 } 867 }
867 868
868 } // namespace 869 } // namespace
869 870
870 #endif // Element_h 871 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698