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

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

Issue 18147020: Remove broken sibling selector optimization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/resolver/StyleResolverState.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, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e 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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 void cloneDataFromElement(const Element&); 429 void cloneDataFromElement(const Element&);
430 430
431 bool hasEquivalentAttributes(const Element* other) const; 431 bool hasEquivalentAttributes(const Element* other) const;
432 432
433 virtual void copyNonAttributePropertiesFromElement(const Element&) { } 433 virtual void copyNonAttributePropertiesFromElement(const Element&) { }
434 434
435 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; 435 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
436 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; 436 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE;
437 virtual RenderObject* createRenderer(RenderStyle*); 437 virtual RenderObject* createRenderer(RenderStyle*);
438 virtual bool rendererIsNeeded(const NodeRenderingContext&); 438 virtual bool rendererIsNeeded(const NodeRenderingContext&);
439 bool recalcStyle(StyleChange = NoChange, int childIndex = 0); 439 bool recalcStyle(StyleChange = NoChange);
440 void didAffectSelector(AffectedSelectorMask); 440 void didAffectSelector(AffectedSelectorMask);
441 441
442 ElementShadow* shadow() const; 442 ElementShadow* shadow() const;
443 ElementShadow* ensureShadow(); 443 ElementShadow* ensureShadow();
444 PassRefPtr<ShadowRoot> createShadowRoot(ExceptionCode&); 444 PassRefPtr<ShadowRoot> createShadowRoot(ExceptionCode&);
445 ShadowRoot* shadowRoot() const; 445 ShadowRoot* shadowRoot() const;
446 void ensureDistribution(); 446 void ensureDistribution();
447 447
448 bool hasAuthorShadowRoot() const { return shadowRoot(); } 448 bool hasAuthorShadowRoot() const { return shadowRoot(); }
449 449
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 // W3C API 601 // W3C API
602 void webkitRequestFullscreen(); 602 void webkitRequestFullscreen();
603 603
604 bool isInTopLayer() const; 604 bool isInTopLayer() const;
605 void setIsInTopLayer(bool); 605 void setIsInTopLayer(bool);
606 606
607 void webkitRequestPointerLock(); 607 void webkitRequestPointerLock();
608 608
609 bool isSpellCheckingEnabled() const; 609 bool isSpellCheckingEnabled() const;
610 610
611 PassRefPtr<RenderStyle> styleForRenderer(int childIndex = 0); 611 PassRefPtr<RenderStyle> styleForRenderer();
612 PassRefPtr<RenderStyle> originalStyleForRenderer(int childIndex = 0); 612 PassRefPtr<RenderStyle> originalStyleForRenderer();
613 613
614 RenderRegion* renderRegion() const; 614 RenderRegion* renderRegion() const;
615 virtual bool shouldMoveToFlowThread(RenderStyle*) const; 615 virtual bool shouldMoveToFlowThread(RenderStyle*) const;
616 const AtomicString& webkitRegionOverset() const; 616 const AtomicString& webkitRegionOverset() const;
617 Vector<RefPtr<Range> > webkitGetRegionFlowRanges() const; 617 Vector<RefPtr<Range> > webkitGetRegionFlowRanges() const;
618 618
619 bool hasID() const; 619 bool hasID() const;
620 bool hasClass() const; 620 bool hasClass() const;
621 const SpaceSplitString& classNames() const; 621 const SpaceSplitString& classNames() const;
622 622
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 1063
1064 inline const Attribute* ElementData::attributeItem(unsigned index) const 1064 inline const Attribute* ElementData::attributeItem(unsigned index) const
1065 { 1065 {
1066 RELEASE_ASSERT(index < length()); 1066 RELEASE_ASSERT(index < length());
1067 return attributeBase() + index; 1067 return attributeBase() + index;
1068 } 1068 }
1069 1069
1070 } // namespace 1070 } // namespace
1071 1071
1072 #endif 1072 #endif
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleResolverState.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698