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

Side by Side Diff: third_party/WebKit/Source/core/dom/Element.h

Issue 2450093005: Support display: contents for elements, first-line and first-letter pseudos. (Closed)
Patch Set: Support display: contents for elements, first-line and first-letter pseudos. Created 4 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
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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 ShadowRoot& ensureUserAgentShadowRoot(); 432 ShadowRoot& ensureUserAgentShadowRoot();
433 433
434 bool isInDescendantTreeOf(const Element* shadowHost) const; 434 bool isInDescendantTreeOf(const Element* shadowHost) const;
435 435
436 // Returns the Element’s ComputedStyle. If the ComputedStyle is not already 436 // Returns the Element’s ComputedStyle. If the ComputedStyle is not already
437 // stored on the Element, computes the ComputedStyle and stores it on the 437 // stored on the Element, computes the ComputedStyle and stores it on the
438 // Element’s ElementRareData. Used for getComputedStyle when Element is 438 // Element’s ElementRareData. Used for getComputedStyle when Element is
439 // display none. 439 // display none.
440 const ComputedStyle* ensureComputedStyle(PseudoId = PseudoIdNone); 440 const ComputedStyle* ensureComputedStyle(PseudoId = PseudoIdNone);
441 441
442 const ComputedStyle* nonLayoutObjectComputedStyle() const;
443
444 bool hasDisplayContentsStyle() const;
445
446 ComputedStyle* mutableNonLayoutObjectComputedStyle() const {
447 return const_cast<ComputedStyle*>(nonLayoutObjectComputedStyle());
448 }
449
450 bool shouldStoreNonLayoutObjectComputedStyle(const ComputedStyle&) const;
451 void storeNonLayoutObjectComputedStyle(PassRefPtr<ComputedStyle>);
452
442 // Methods for indicating the style is affected by dynamic updates (e.g., 453 // Methods for indicating the style is affected by dynamic updates (e.g.,
443 // children changing, our position changing in our sibling list, etc.) 454 // children changing, our position changing in our sibling list, etc.)
444 bool styleAffectedByEmpty() const { 455 bool styleAffectedByEmpty() const {
445 return hasElementFlag(StyleAffectedByEmpty); 456 return hasElementFlag(StyleAffectedByEmpty);
446 } 457 }
447 void setStyleAffectedByEmpty() { setElementFlag(StyleAffectedByEmpty); } 458 void setStyleAffectedByEmpty() { setElementFlag(StyleAffectedByEmpty); }
448 459
449 void setIsInCanvasSubtree(bool value) { 460 void setIsInCanvasSubtree(bool value) {
450 setElementFlag(IsInCanvasSubtree, value); 461 setElementFlag(IsInCanvasSubtree, value);
451 } 462 }
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1166 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1156 static T* create(const QualifiedName&, Document&) 1167 static T* create(const QualifiedName&, Document&)
1157 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1168 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1158 T* T::create(const QualifiedName& tagName, Document& document) { \ 1169 T* T::create(const QualifiedName& tagName, Document& document) { \
1159 return new T(tagName, document); \ 1170 return new T(tagName, document); \
1160 } 1171 }
1161 1172
1162 } // namespace blink 1173 } // namespace blink
1163 1174
1164 #endif // Element_h 1175 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698