| Index: third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp b/third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp
|
| index 393a0eae0cf5616eb33844ae44059fa123cfad97..88234560d230aee74a91d3b2ef28e10d921e2d0f 100644
|
| --- a/third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp
|
| @@ -234,14 +234,14 @@ bool ElementShadow::hasSameStyles(const ElementShadow* other) const
|
| if (!root || !otherRoot)
|
| return false;
|
|
|
| - StyleSheetList* list = root->styleSheets();
|
| - StyleSheetList* otherList = otherRoot->styleSheets();
|
| + StyleSheetList& list = root->styleSheets();
|
| + StyleSheetList& otherList = otherRoot->styleSheets();
|
|
|
| - if (list->length() != otherList->length())
|
| + if (list.length() != otherList.length())
|
| return false;
|
|
|
| - for (size_t i = 0; i < list->length(); i++) {
|
| - if (toCSSStyleSheet(list->item(i))->contents() != toCSSStyleSheet(otherList->item(i))->contents())
|
| + for (size_t i = 0; i < list.length(); i++) {
|
| + if (toCSSStyleSheet(list.item(i))->contents() != toCSSStyleSheet(otherList.item(i))->contents())
|
| return false;
|
| }
|
| root = root->olderShadowRoot();
|
|
|