| Index: third_party/WebKit/Source/core/testing/Internals.cpp
|
| diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| index 840546dac12637633adb9895e7f155badceeb735..15ac31f992139311810f649b9187a79b1782e102 100644
|
| --- a/third_party/WebKit/Source/core/testing/Internals.cpp
|
| +++ b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| @@ -432,6 +432,18 @@ int Internals::getResourcePriority(const String& url, Document* document) {
|
| return resource->resourceRequest().priority();
|
| }
|
|
|
| +String Internals::getResourceHeader(const String& url,
|
| + const String& header,
|
| + Document* document) {
|
| + if (!document)
|
| + return String();
|
| + Resource* resource = document->fetcher()->allResources().get(
|
| + URLTestHelpers::toKURL(url.utf8().data()));
|
| + if (!resource)
|
| + return String();
|
| + return resource->resourceRequest().httpHeaderField(header.utf8().data());
|
| +}
|
| +
|
| bool Internals::isSharingStyle(Element* element1, Element* element2) const {
|
| ASSERT(element1 && element2);
|
| return element1->computedStyle() == element2->computedStyle();
|
|
|