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

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

Issue 15871005: Avoid N^2 walk placing renderers when building the render tree (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Merging ToT Created 7 years, 6 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
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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 void cloneDataFromElement(const Element&); 403 void cloneDataFromElement(const Element&);
404 404
405 bool hasEquivalentAttributes(const Element* other) const; 405 bool hasEquivalentAttributes(const Element* other) const;
406 406
407 virtual void copyNonAttributePropertiesFromElement(const Element&) { } 407 virtual void copyNonAttributePropertiesFromElement(const Element&) { }
408 408
409 virtual void attach(); 409 virtual void attach();
410 virtual void detach(); 410 virtual void detach();
411 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); 411 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
412 virtual bool rendererIsNeeded(const NodeRenderingContext&); 412 virtual bool rendererIsNeeded(const NodeRenderingContext&);
413 void recalcStyle(StyleChange = NoChange); 413 void recalcStyle(StyleChange = NoChange, int childIndex = 0);
414 void didAffectSelector(AffectedSelectorMask); 414 void didAffectSelector(AffectedSelectorMask);
415 415
416 ElementShadow* shadow() const; 416 ElementShadow* shadow() const;
417 ElementShadow* ensureShadow(); 417 ElementShadow* ensureShadow();
418 PassRefPtr<ShadowRoot> createShadowRoot(ExceptionCode&); 418 PassRefPtr<ShadowRoot> createShadowRoot(ExceptionCode&);
419 ShadowRoot* shadowRoot() const; 419 ShadowRoot* shadowRoot() const;
420 420
421 bool hasAuthorShadowRoot() const { return shadowRoot(); } 421 bool hasAuthorShadowRoot() const { return shadowRoot(); }
422 422
423 ShadowRoot* userAgentShadowRoot() const; 423 ShadowRoot* userAgentShadowRoot() const;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 // W3C API 569 // W3C API
570 void webkitRequestFullscreen(); 570 void webkitRequestFullscreen();
571 571
572 bool isInTopLayer() const; 572 bool isInTopLayer() const;
573 void setIsInTopLayer(bool); 573 void setIsInTopLayer(bool);
574 574
575 void webkitRequestPointerLock(); 575 void webkitRequestPointerLock();
576 576
577 bool isSpellCheckingEnabled() const; 577 bool isSpellCheckingEnabled() const;
578 578
579 PassRefPtr<RenderStyle> styleForRenderer(); 579 PassRefPtr<RenderStyle> styleForRenderer(int childIndex = 0);
580 PassRefPtr<RenderStyle> originalStyleForRenderer(); 580 PassRefPtr<RenderStyle> originalStyleForRenderer(int childIndex = 0);
581 581
582 RenderRegion* renderRegion() const; 582 RenderRegion* renderRegion() const;
583 const AtomicString& webkitRegionOverset() const; 583 const AtomicString& webkitRegionOverset() const;
584 Vector<RefPtr<Range> > webkitGetRegionFlowRanges() const; 584 Vector<RefPtr<Range> > webkitGetRegionFlowRanges() const;
585 585
586 bool hasID() const; 586 bool hasID() const;
587 bool hasClass() const; 587 bool hasClass() const;
588 const SpaceSplitString& classNames() const; 588 const SpaceSplitString& classNames() const;
589 589
590 IntSize savedLayerScrollOffset() const; 590 IntSize savedLayerScrollOffset() const;
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 997
998 inline const Attribute* ElementData::attributeItem(unsigned index) const 998 inline const Attribute* ElementData::attributeItem(unsigned index) const
999 { 999 {
1000 RELEASE_ASSERT(index < length()); 1000 RELEASE_ASSERT(index < length());
1001 return attributeBase() + index; 1001 return attributeBase() + index;
1002 } 1002 }
1003 1003
1004 } // namespace 1004 } // namespace
1005 1005
1006 #endif 1006 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698