| Index: Source/core/dom/ShadowTreeStyleSheetCollection.cpp
|
| diff --git a/Source/core/dom/ShadowTreeStyleSheetCollection.cpp b/Source/core/dom/ShadowTreeStyleSheetCollection.cpp
|
| index 10d74769c07a3e4b0102959a0b367229d4086901..6a74608c5ea5a0763d8bd10e0ecda4c116a17014 100644
|
| --- a/Source/core/dom/ShadowTreeStyleSheetCollection.cpp
|
| +++ b/Source/core/dom/ShadowTreeStyleSheetCollection.cpp
|
| @@ -57,7 +57,7 @@ void ShadowTreeStyleSheetCollection::collectStyleSheets(StyleEngine* engine, Sty
|
| continue;
|
|
|
| Element* element = toElement(node);
|
| - AtomicString title = element->getAttribute(titleAttr);
|
| + const AtomicString& title = element->fastGetAttribute(titleAttr);
|
| bool enabledViaScript = false;
|
|
|
| sheet = toHTMLStyleElement(node)->sheet();
|
| @@ -67,7 +67,7 @@ void ShadowTreeStyleSheetCollection::collectStyleSheets(StyleEngine* engine, Sty
|
| // FIXME: clarify how PREFERRED or ALTERNATE works in shadow trees.
|
| // Should we set preferred/selected stylesheets name in shadow trees and
|
| // use the name in document?
|
| - AtomicString rel = element->getAttribute(relAttr);
|
| + const AtomicString& rel = element->fastGetAttribute(relAttr);
|
| if (!enabledViaScript && sheet && !title.isEmpty()) {
|
| if (engine->preferredStylesheetSetName().isEmpty()) {
|
| if (element->hasLocalName(styleTag) || !rel.contains("alternate")) {
|
|
|