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

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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 // W3C API 568 // W3C API
569 void webkitRequestFullscreen(); 569 void webkitRequestFullscreen();
570 570
571 bool isInTopLayer() const; 571 bool isInTopLayer() const;
572 void setIsInTopLayer(bool); 572 void setIsInTopLayer(bool);
573 573
574 void webkitRequestPointerLock(); 574 void webkitRequestPointerLock();
575 575
576 bool isSpellCheckingEnabled() const; 576 bool isSpellCheckingEnabled() const;
577 577
578 PassRefPtr<RenderStyle> styleForRenderer(); 578 PassRefPtr<RenderStyle> styleForRenderer(int childIndex = 0);
579 PassRefPtr<RenderStyle> originalStyleForRenderer(); 579 PassRefPtr<RenderStyle> originalStyleForRenderer(int childIndex = 0);
580 580
581 RenderRegion* renderRegion() const; 581 RenderRegion* renderRegion() const;
582 const AtomicString& webkitRegionOverset() const; 582 const AtomicString& webkitRegionOverset() const;
583 Vector<RefPtr<Range> > webkitGetRegionFlowRanges() const; 583 Vector<RefPtr<Range> > webkitGetRegionFlowRanges() const;
584 584
585 bool hasID() const; 585 bool hasID() const;
586 bool hasClass() const; 586 bool hasClass() const;
587 const SpaceSplitString& classNames() const; 587 const SpaceSplitString& classNames() const;
588 588
589 IntSize savedLayerScrollOffset() const; 589 IntSize savedLayerScrollOffset() const;
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 996
997 inline const Attribute* ElementData::attributeItem(unsigned index) const 997 inline const Attribute* ElementData::attributeItem(unsigned index) const
998 { 998 {
999 RELEASE_ASSERT(index < length()); 999 RELEASE_ASSERT(index < length());
1000 return attributeBase() + index; 1000 return attributeBase() + index;
1001 } 1001 }
1002 1002
1003 } // namespace 1003 } // namespace
1004 1004
1005 #endif 1005 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698