OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 #include "core/dom/ClientRectList.h" | 48 #include "core/dom/ClientRectList.h" |
49 #include "core/dom/DOMArrayBuffer.h" | 49 #include "core/dom/DOMArrayBuffer.h" |
50 #include "core/dom/DOMPoint.h" | 50 #include "core/dom/DOMPoint.h" |
51 #include "core/dom/DOMStringList.h" | 51 #include "core/dom/DOMStringList.h" |
52 #include "core/dom/Document.h" | 52 #include "core/dom/Document.h" |
53 #include "core/dom/DocumentMarker.h" | 53 #include "core/dom/DocumentMarker.h" |
54 #include "core/dom/DocumentMarkerController.h" | 54 #include "core/dom/DocumentMarkerController.h" |
55 #include "core/dom/Element.h" | 55 #include "core/dom/Element.h" |
56 #include "core/dom/ExceptionCode.h" | 56 #include "core/dom/ExceptionCode.h" |
57 #include "core/dom/Iterator.h" | 57 #include "core/dom/Iterator.h" |
58 #include "core/dom/NodeLayoutStyle.h" | 58 #include "core/dom/NodeComputedStyle.h" |
59 #include "core/dom/PseudoElement.h" | 59 #include "core/dom/PseudoElement.h" |
60 #include "core/dom/Range.h" | 60 #include "core/dom/Range.h" |
61 #include "core/dom/StaticNodeList.h" | 61 #include "core/dom/StaticNodeList.h" |
62 #include "core/dom/StyleEngine.h" | 62 #include "core/dom/StyleEngine.h" |
63 #include "core/dom/TreeScope.h" | 63 #include "core/dom/TreeScope.h" |
64 #include "core/dom/ViewportDescription.h" | 64 #include "core/dom/ViewportDescription.h" |
65 #include "core/dom/shadow/ComposedTreeTraversal.h" | 65 #include "core/dom/shadow/ComposedTreeTraversal.h" |
66 #include "core/dom/shadow/ElementShadow.h" | 66 #include "core/dom/shadow/ElementShadow.h" |
67 #include "core/dom/shadow/SelectRuleFeatureSet.h" | 67 #include "core/dom/shadow/SelectRuleFeatureSet.h" |
68 #include "core/dom/shadow/ShadowRoot.h" | 68 #include "core/dom/shadow/ShadowRoot.h" |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 if (!contextDocument()) | 329 if (!contextDocument()) |
330 return false; | 330 return false; |
331 const String cacheIdentifier = contextDocument()->fetcher()->getCacheIdentif
ier(); | 331 const String cacheIdentifier = contextDocument()->fetcher()->getCacheIdentif
ier(); |
332 Resource* resource = memoryCache()->resourceForURL(contextDocument()->comple
teURL(url), cacheIdentifier); | 332 Resource* resource = memoryCache()->resourceForURL(contextDocument()->comple
teURL(url), cacheIdentifier); |
333 return resource && resource->status() == Resource::Cached; | 333 return resource && resource->status() == Resource::Cached; |
334 } | 334 } |
335 | 335 |
336 bool Internals::isSharingStyle(Element* element1, Element* element2) const | 336 bool Internals::isSharingStyle(Element* element1, Element* element2) const |
337 { | 337 { |
338 ASSERT(element1 && element2); | 338 ASSERT(element1 && element2); |
339 return element1->layoutStyle() == element2->layoutStyle(); | 339 return element1->computedStyle() == element2->computedStyle(); |
340 } | 340 } |
341 | 341 |
342 bool Internals::isValidContentSelect(Element* insertionPoint, ExceptionState& ex
ceptionState) | 342 bool Internals::isValidContentSelect(Element* insertionPoint, ExceptionState& ex
ceptionState) |
343 { | 343 { |
344 ASSERT(insertionPoint); | 344 ASSERT(insertionPoint); |
345 if (!insertionPoint->isInsertionPoint()) { | 345 if (!insertionPoint->isInsertionPoint()) { |
346 exceptionState.throwDOMException(InvalidAccessError, "The element is not
an insertion point."); | 346 exceptionState.throwDOMException(InvalidAccessError, "The element is not
an insertion point."); |
347 return false; | 347 return false; |
348 } | 348 } |
349 | 349 |
(...skipping 1981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2331 { | 2331 { |
2332 return frame()->selection().selectedTextForClipboard(); | 2332 return frame()->selection().selectedTextForClipboard(); |
2333 } | 2333 } |
2334 | 2334 |
2335 ValueIterable<int>::IterationSource* Internals::startIteration(ScriptState*, Exc
eptionState&) | 2335 ValueIterable<int>::IterationSource* Internals::startIteration(ScriptState*, Exc
eptionState&) |
2336 { | 2336 { |
2337 return new InternalsIterationSource(); | 2337 return new InternalsIterationSource(); |
2338 } | 2338 } |
2339 | 2339 |
2340 } // namespace blink | 2340 } // namespace blink |
OLD | NEW |