#include "core/css/StylePropertySet.h"
#include "core/dom/Document.h"
#include "core/editing/FrameSelection.h"
-#include "core/html/HTMLElement.h"
-#include "core/frame/Frame.h"
#include "core/frame/FrameView.h"
+#include "core/frame/LocalFrame.h"
+#include "core/html/HTMLElement.h"
#include "core/page/PrintContext.h"
-#include "core/rendering/CompositedLayerMapping.h"
#include "core/rendering/FlowThreadController.h"
#include "core/rendering/InlineTextBox.h"
#include "core/rendering/RenderBR.h"
#include "core/rendering/RenderTableCell.h"
#include "core/rendering/RenderView.h"
#include "core/rendering/RenderWidget.h"
+#include "core/rendering/compositing/CompositedLayerMapping.h"
#include "core/rendering/svg/RenderSVGContainer.h"
#include "core/rendering/svg/RenderSVGGradientStop.h"
#include "core/rendering/svg/RenderSVGImage.h"
static bool isEmptyOrUnstyledAppleStyleSpan(const Node* node)
{
- if (!node || !node->isHTMLElement() || !node->hasTagName(spanTag))
+ if (!isHTMLSpanElement(node))
return false;
- const HTMLElement* elem = toHTMLElement(node);
- if (elem->getAttribute(classAttr) != "Apple-style-span")
+ const HTMLElement& elem = toHTMLElement(*node);
+ if (elem.getAttribute(classAttr) != "Apple-style-span")
return false;
- if (!node->hasChildNodes())
+ if (!elem.hasChildren())
return true;
- const StylePropertySet* inlineStyleDecl = elem->inlineStyle();
+ const StylePropertySet* inlineStyleDecl = elem.inlineStyle();
return (!inlineStyleDecl || inlineStyleDecl->isEmpty());
}
else if (paintPhase == LayerPaintPhaseForeground)
ts << " layerType: foreground only";
+ if (l.blendInfo().childLayerHasBlendMode())
+ ts << " isolatesBlending";
+ if (l.blendInfo().hasBlendMode())
+ ts << " blendMode: " << compositeOperatorName(CompositeSourceOver, l.blendInfo().blendMode());
+
if (behavior & RenderAsTextShowCompositedLayers) {
if (l.hasCompositedLayerMapping()) {
ts << " (composited, bounds="
<< l.compositedLayerMapping()->mainGraphicsLayer()->drawsContent()
<< ", paints into ancestor="
<< l.compositedLayerMapping()->paintsIntoCompositedAncestor()
+ << (l.shouldIsolateCompositedDescendants() ? ", isolatesCompositedBlending" : "")
<< ")";
}
}
return;
Document* doc = toDocument(n);
- Frame* frame = doc->frame();
+ LocalFrame* frame = doc->frame();
if (!frame)
return;
return ts.release();
}
-String externalRepresentation(Frame* frame, RenderAsTextBehavior behavior)
+String externalRepresentation(LocalFrame* frame, RenderAsTextBehavior behavior)
{
if (!(behavior & RenderAsTextDontUpdateLayout))
frame->document()->updateLayout();
PrintContext printContext(frame);
if (behavior & RenderAsTextPrintingMode)
- printContext.begin(toRenderBox(renderer)->width());
+ printContext.begin(toRenderBox(renderer)->width().toFloat());
return externalRepresentation(toRenderBox(renderer), behavior);
}