Changeset 127538 in webkit


Ignore:
Timestamp:
Sep 4, 2012 6:31:38 PM (12 years ago)
Author:
tony@chromium.org
Message:

Use TrackedRendererListHashSet typedef for percentHeightDescendants()
https://bugs.webkit.org/show_bug.cgi?id=95791

Reviewed by Ojan Vafai.

There were a couple callers that were using ListHashSet<RenderBox*> instead of the typedef.

No new tests, this is just a refactor.

  • rendering/RenderTableSection.cpp:

(WebCore::RenderTableSection::layoutRows):

  • rendering/RenderView.cpp:

(WebCore::RenderView::setFixedPositionedObjectsNeedLayout):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r127535 r127538  
     12012-09-04  Tony Chang  <tony@chromium.org>
     2
     3        Use TrackedRendererListHashSet typedef for percentHeightDescendants()
     4        https://bugs.webkit.org/show_bug.cgi?id=95791
     5
     6        Reviewed by Ojan Vafai.
     7
     8        There were a couple callers that were using ListHashSet<RenderBox*> instead of the typedef.
     9
     10        No new tests, this is just a refactor.
     11
     12        * rendering/RenderTableSection.cpp:
     13        (WebCore::RenderTableSection::layoutRows):
     14        * rendering/RenderView.cpp:
     15        (WebCore::RenderView::setFixedPositionedObjectsNeedLayout):
     16
    1172012-09-04  Alec Flett  <alecflett@chromium.org>
    218
  • trunk/Source/WebCore/rendering/RenderTableSection.cpp

    r126926 r127538  
    580580            }
    581581
    582             if (ListHashSet<RenderBox*>* percentHeightDescendants = cell->percentHeightDescendants()) {
    583                 ListHashSet<RenderBox*>::iterator end = percentHeightDescendants->end();
    584                 for (ListHashSet<RenderBox*>::iterator it = percentHeightDescendants->begin(); it != end; ++it) {
     582            if (TrackedRendererListHashSet* percentHeightDescendants = cell->percentHeightDescendants()) {
     583                TrackedRendererListHashSet::iterator end = percentHeightDescendants->end();
     584                for (TrackedRendererListHashSet::iterator it = percentHeightDescendants->begin(); it != end; ++it) {
    585585                    RenderBox* box = *it;
    586586                    if (!box->isReplaced() && !box->scrollsOverflow() && !flexAllChildren)
  • trunk/Source/WebCore/rendering/RenderView.cpp

    r127267 r127538  
    942942    ASSERT(m_frameView);
    943943
    944     ListHashSet<RenderBox*>* positionedObjects = this->positionedObjects();
     944    TrackedRendererListHashSet* positionedObjects = this->positionedObjects();
    945945    if (!positionedObjects)
    946946        return;
    947947
    948     ListHashSet<RenderBox*>::const_iterator end = positionedObjects->end();
    949     for (ListHashSet<RenderBox*>::const_iterator it = positionedObjects->begin(); it != end; ++it) {
     948    TrackedRendererListHashSet::const_iterator end = positionedObjects->end();
     949    for (TrackedRendererListHashSet::const_iterator it = positionedObjects->begin(); it != end; ++it) {
    950950        RenderBox* currBox = *it;
    951951        currBox->setNeedsLayout(true);
Note: See TracChangeset for help on using the changeset viewer.