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

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

Powered by Google App Engine
This is Rietveld 408576698